# Docs

> Generate documentation

- Skill: `mgoodman60/docs` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mgoodman60/docs`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mgoodman60/docs/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: mgoodman60 (https://skillmd.com/u/mgoodman60)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mgoodman60/docs

---


Generate documentation for specified code.

## Usage

- `/docs lib/rag.ts` - Document specific file
- `/docs api` - Document API endpoints
- `/docs` - Update CLAUDE.md

## Documentation Types

### JSDoc for Functions
```typescript
/**
 * Brief description.
 *
 * @param name - Parameter description
 * @returns Return value description
 * @throws {Error} When this happens
 */
```

### API Documentation
```markdown
## POST /api/endpoint

Description of what it does.

### Request
### Response
### Errors
```

## Output

Generate documentation that is:
- Accurate to the code
- Concise but complete
- Following existing patterns

