Agent skill
documentation
Generate and update documentation from code. Use after successful implementation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/documentation-junior-frontend-dev-hi-u-ng
SKILL.md
Documentation Skill
Purpose
Maintain accurate, helpful documentation.
Templates
README Template
Reference: templates/readme-template.md
API Documentation Template
Reference: templates/api-doc-template.md
Changelog Template
Reference: templates/changelog-template.md
JSDoc Standards
/**
* Brief description of what the function does.
*
* @param {string} name - Description of name parameter
* @param {Options} options - Description of options
* @returns {Result} Description of return value
* @throws {ValidationError} When validation fails
* @example
* const result = myFunction('test', { flag: true });
*/
function myFunction(name: string, options: Options): Result {
// ...
}
Documentation Types
README
- Project overview
- Installation instructions
- Quick start guide
- Configuration options
- Contributing guidelines
API Documentation
- Endpoint descriptions
- HTTP methods
- Request/response formats
- Authentication requirements
- Error codes
Code Documentation
- JSDoc/docstrings
- Inline comments (why, not what)
- Type annotations
- Example usage
Changelog
- Version history
- Breaking changes
- Migration steps
- Deprecation notices
Documentation Checklist
- README up to date
- API endpoints documented
- Code examples work
- Changelog updated
- JSDoc on public APIs
- Links are valid
- Spelling/grammar correct
Documentation Generation
Run: scripts/generate-docs.py
Best Practices
Do
- Keep examples up to date
- Document breaking changes
- Use consistent formatting
- Include common use cases
- Explain the "why" not just "how"
Don't
- Document implementation details
- Let examples become stale
- Skip error scenarios
- Use jargon without explanation
- Assume reader knowledge
Storage Location
Save reports to: docs/reviews/documentation-{session}.md
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?