Skip to content
Scaffolding
Command

/document

Generate documentation for code

BOOST
From plugin
claude-code-essentials-vs-code
648 skills3 agents8 commands
Install
$ npx -y skills add AgriciDaniel/claude-code-essentials-vs-code --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/document

Context preview

What this command does when you run it.

Generate documentation for code

Command definition

document.md
description: Generate documentation for code

Generate documentation for: $ARGUMENTS

Include: 1. **Function/Class Docstrings**

  • Description of purpose
  • @param for each parameter with type and description
  • @returns with type and description
  • @throws for possible errors
  • @example with usage example

2. **Inline Comments**

  • Explain complex logic
  • Note any non-obvious decisions
  • Mark TODOs or FIXMEs

3. **README Sections** (if applicable)

  • Installation instructions
  • Usage examples
  • API reference
  • Configuration options

4. **Type Annotations**

  • Add or improve TypeScript types
  • Document complex types with JSDoc

Format according to the project's existing documentation style. If no style exists, use JSDoc for JavaScript/TypeScript.

Ships withclaude-code-essentials-vs-code

A small, opt-in setup helper for Claude Code and selected VS Code extensions. The January 2026 tutorial's “26 extensions in one command” is historical: this refresh installs nothing by default. Review your choices before applying them.

Get the whole plugin