Skip to content
Documentation
Command

/docs

Generate documentation for: $ARGUMENTS

From plugin
claude-best-practice
48 skills3 agents8 commands
Install
$ npx -y skills add vignesh2027/claude-best-practice --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/docs

Context preview

What this command does when you run it.

Generate documentation for: $ARGUMENTS

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
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.

Get the whole plugin
Stats
4
Stars
1
Forks
Active
Maintenance
Shell
Language
17d ago
Last commit
4mo ago
Created

Repo: vignesh2027/claude-best-practice

Other commands on claude-best-practice.