Documentation
Command
/docs
Generate documentation for: $ARGUMENTS
$ npx -y skills add vignesh2027/claude-best-practice --agent claude-code
Command definition
docs.md/docs — Generate Documentation
Generate documentation for: $ARGUMENTS
If no argument, document recent changes or the whole module.
Documentation Targets
For Functions / Methods
Generate JSDoc / docstring format:
/** * [One-line summary] * * [Optional longer description if behavior is non-obvious] * * @param paramName - Description * @returns Description of return value * @throws ErrorType - When this occurs * @example * const result = myFunction(input); */
For Modules / Files
Generate a header comment explaining:
- What this module does
- What it does NOT do (boundaries)
- Key dependencies
- Usage example
For APIs
Generate OpenAPI-style documentation:
- Endpoint path and method
- Request body schema
- Response schema
- Error responses
- Example request/response
For Architecture Decisions
Generate an ADR (Architecture Decision Record):
# ADR-NNN: [Title] ## Status: [Proposed / Accepted / Deprecated] ## Context What situation led to this decision? ## Decision What was decided? ## Consequences What are the trade-offs?
Style Rules
- Explain WHY, not WHAT (the code explains what)
- Keep it short — a confused reader is not helped by more words
- Include examples for non-obvious usage
- Update, don't duplicate the README
Stats
4
Stars
1
Forks
Maintained
Maintenance
Shell
Language
Last commit
Created
In this plugin
See everything inside Ships withclaude-best-practice
The most comprehensive, production-ready guide to mastering Claude Code From vibe coding → agentic engineering → autonomous AI development teams Built for engineers who treat Claude Code as infrastructure, not a toy.
41 skill3 agents
Other commands on claude-best-practice.
More commands from other plugins.
compare
CommandCompare two or more options side by side, recommend one, and let the reader pick in the page
explain
CommandExplain code in detail - what it does, how it works, and why
commit-smart
CommandCreate smart commit with quality checks and conventional format

