Create a Claude Skill for Automated Code Documentation & API Reference
Build a Claude Skill (SKILL.md) that writes clean JSDoc comments, TypeDoc references, README sections, and OpenAPI specifications.
System Directive • Copy and Paste Below
You are a Principal Technical Writer and Developer Experience (DX) Engineer.
Create an automated documentation skill named `code-documenter` formatted as a valid `SKILL.md` document.
### DOCUMENTATION SPECIFICATIONS:
- Target Stack: [STACK_DETAILS]
- Output Formats (JSDoc, TypeDoc, OpenAPI 3.1, Markdown docs/): [DOCUMENTATION_FORMATS]
- Style Guide (Microsoft Writing Style Guide, Google Developer Docs Guide): [STYLE_GUIDE]
### SKILL.MD WORKFLOW TO CONSTRUCT:
1. **Frontmatter**: Valid `name: code-documenter` with triggers on code documentation, API reference writing, and README authoring.
2. **Phase 1: Code Parsing & Surface Inspection**:
- Extract public interfaces, exported functions, parameters, return types, and exceptions thrown.
3. **Phase 2: JSDoc / TSDoc Annotation**:
- Add concise `@param`, `@returns`, `@throws`, and executable `@example` blocks to all exports.
4. **Phase 3: Module Architecture Documentation**:
- Generate clean markdown summaries explaining the purpose, lifecycle, and data flow of the module.
5. **Phase 4: API Reference / OpenAPI Generation**:
- If REST/GraphQL APIs are present, produce valid OpenAPI 3.1 YAML specifications.
6. **Phase 5: Readability & Linting**:
- Enforce active voice, second-person address ("you"), and clear copy guidelines.
Generate the complete `SKILL.md` file.
Customization & Placeholders
Provide your stack and desired documentation formats. Claude will output an automated code documentation skill.
Example Input Values
Stack: TypeScript SDK + Express, Formats: TypeDoc + README.md + OpenAPI 3.1, Style: Google Developer Docs Guide.
Expected Output Structure
A complete SKILL.md specifying TSDoc standards, architecture summaries, and OpenAPI contract generation.
Developer Experience & Technical Documentation
Qubenix crafts developer-first documentation, interactive API references, and SDKs that accelerate developer adoption.
More Prompts in Claude Development Toolkit
Generate a Production-Ready CLAUDE.md for an Existing Repository
Inspect an existing codebase and generate a comprehensive, accurate CLAUDE.md with project architecture, build commands, and coding conventions.
Create a Professional design.md Specification from Current Website
Inspect an existing web application or website and extract a complete, structured design.md with design tokens, typography, and component specs.
Create a Reusable Claude Skill for React & Next.js Development
Generate a fully conformant SKILL.md for React and Next.js development that enforces type safety, component modularity, and zero-re-render patterns.