bnadlerjr/dotfiles/writing-documentation
Claude Code and agent skill by bnadlerjr/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Write documentation for code, architecture, and projects.
Install
npx vskill@latest install bnadlerjr/dotfiles/writing-documentationSKILL.md
Writing Documentation
Write documentation for code, architecture, and projects. The reason for writing documentation is that statements in a programming language can't capture all of the important information that was in the mind of the developer when the code was written. Documentation should describe things that are not obvious from the code.
Workflow
Step 1: Detect Doc Type
Detect the doc type from the request.
| Signal in Request | Doc Type | Workflow | |
|---|---|---|---|
| file path, function name, "add docs", "add comments", "module docs", "docstring" | Code-Level | references/code-level-docs.md | |
| "ADR", "design doc", "architecture", "system overview", "how modules interact" | Architecture | references/architecture-docs.md | |
| "README", "getting started", "CLAUDE.md", "agent instructions", "guide" | Project | references/project-docs.md |
Step 2: Read the Workflow
Load the matching workflow file. It contains the full procedure, templates, and quality checklist for that doc type.
Step 3: Follow the Workflow
Each workflow covers:
- Gather context — Read the code or project to understand what needs documenting
- Select template — Choose the right structure for the doc type
- Write the doc — Apply
references/ousterhout-principles.md - Validate — Run the quality checklist
Step 4: Place the Output
Output placement depends on doc type:
| Doc Type | Placement | |
|---|---|---|
| Code-level | Inline with source code (docstrings, comments, module headers) | |
| Architecture | Separate markdown file (docs/adr/, docs/design/, docs/) | |
| Project | Separate markdown file (project root or docs/) |
Anti-Patterns
- Restating the code in comments ("increment counter" above
counter += 1) - Generic headings ("Overview", "Details", "Miscellaneous")
- Implementation details in interface docs ("uses a hash map internally")
- Ambiguous pronouns across section boundaries ("it handles this by...")
- Documentation that is longer than the code it describes (for code-level docs)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude/skills/writing-documentation/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bnadlerjr/dotfiles/writing-documentation)