document

Generate rationale-focused JSDoc, README, and inline comments for codebases.

5|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/humblemuzzu/ghosttyyy --skill document-humblemuzzu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: document
Source: https://github.com/humblemuzzu/ghosttyyy/tree/main/pi-setup/config-skills/document
Command: npx skills add https://github.com/humblemuzzu/ghosttyyy --skill document-humblemuzzu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

apply documentation philosophy: explain why, not what. use for jsdocs, READMEs, inline comments.

Core Features & Use Cases

  • Rationale-first documentation: emphasizes design constraints, trade-offs, and non-obvious decisions.
  • Co-located context: colocates jsdocs and README notes with the codebase to stay current.
  • Inline-comment discipline: guides inline explanations to focus on intent and edge cases rather than trivial behavior.

Quick Start

Review the codebase and begin adding concise, rationale-focused documentation that explains non-obvious decisions.

Frequently Asked Questions about document

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write JSDoc comments that explain design decisions instead of just behavior?▼

Rationale-focused JSDoc comments explain non-obvious design constraints and trade-offs rather than trivial code behavior. They colocate context with the codebase to document the why behind decisions, keeping explanations concise and intent-driven for edge cases.

What is the best way to document non-obvious coding standards in a README?▼

The best way to document coding standards in a README is to emphasize design rationale, trade-offs, and non-obvious decisions. Co-locating README notes with the codebase ensures context stays current and concise, focusing on why choices were made.

When should I use inline comments to explain code intent?▼

Inline comments should be used to explain intent and edge cases when the design rationale is non-obvious. They guide developers through non-trivial decisions and constraints, maintaining a concise tone that avoids describing obvious code behavior.

Does rationale-first documentation work for existing codebases with no prior design context?▼

Yes, rationale-first documentation works for existing codebases by reviewing the code and adding concise explanations for non-obvious decisions. It captures design constraints and trade-offs that were previously undocumented, applying documentation standards to colocate context with the code.

Why does my documentation become outdated quickly after code changes?▼

Documentation becomes outdated when it is separated from the codebase rather than co-located. Co-locating JSDocs and README notes with the code ensures context stays current, reducing the friction of updating rationale-focused explanations during software development.

What is the difference between documenting what code does and why it was designed that way?▼

Documenting what code does describes trivial behavior, while documenting why captures design rationale, trade-offs, and non-obvious constraints. Rationale-first documentation focuses on the why, providing context for edge cases and intent rather than restating implementation details.