Agent skill
docs-creator
Create and generate documentation for software projects including READMEs, API documentation, Javadoc (Java), and TSDoc (TypeScript). Use when: (1) Creating or updating README files, (2) Documenting REST APIs with endpoints and examples, (3) Adding or generating Javadoc comments for Java code, (4) Adding or generating TSDoc comments for TypeScript code, (5) User asks to document this code or add docs or generate documentation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/docs-creator
SKILL.md
Docs Creator
Generate concise, scannable documentation with code examples.
Quick Reference
| Task | Reference |
|---|---|
| README files | readme-patterns.md |
| REST API docs | api-docs.md |
| Java comments | javadoc.md |
| TypeScript comments | tsdoc.md |
Workflow
1. Identify Documentation Type
Determine what the user needs:
- README → Project overview, setup, usage
- API docs → Endpoints, parameters, responses
- Code comments → Javadoc/TSDoc for functions, classes, interfaces
2. Analyze Existing Code
When documenting existing code:
- Read the file(s) to understand purpose and interface
- Identify public APIs, exported functions, key types
- Note parameters, return types, exceptions
- Check for existing documentation to preserve/update
3. Generate Documentation
Apply the appropriate pattern from references.
For READMEs:
- Start with template: README-template.md
- Focus on: Setup → Usage → API/Configuration
- Omit: Lengthy intros, tutorials, changelogs
For API docs:
- Start with template: API-template.md
- Document: Method, path, parameters, request/response, errors
- Include: curl example for each endpoint
For code comments:
- First sentence summarizes action ("Creates...", "Finds...")
- Document parameters only if purpose isn't obvious
- Always document return values
- Document all thrown exceptions
Auto-Generation
When asked to "document this code" or "add docs":
- Scan for undocumented items - Find functions/methods without comments
- Preserve existing docs - Don't overwrite unless asked
- Generate based on signatures - Use parameter names, types, return types
- Match language convention - Javadoc for Java, TSDoc for TypeScript
Javadoc Pattern
/**
* {Action verb} {what it does}.
*
* @param {name} {description}
* @return {description}
* @throws {Type} {when}
*/
TSDoc Pattern
/**
* {Action verb} {what it does}.
*
* @param {name} - {description}
* @returns {description}
*/
Style Guidelines
- Concise: Minimal prose, maximum code examples
- Scannable: Use tables, bullet lists, code blocks
- Actionable: Copy-paste ready commands and examples
- Consistent: Match existing documentation style in project
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?