xilele777/poirot/code-documentation
Claude Code and agent skill by xilele777/poirot
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Generate docs: README, API reference, architecture, guides.
Install
npx vskill@latest install xilele777/poirot/code-documentationSKILL.md
Code Documentation
Overview
Generate professional, comprehensive documentation for software projects, codebases, libraries, and APIs. Follows best practices from React, Django, Stripe, Kubernetes to produce accurate, well-structured docs.
When to Use
- User asks to "document", "create docs", or "write documentation" for code
- User requests a README, API reference, or developer guide
- User shares a codebase and wants documentation generated
- User asks to improve or update existing documentation
- User needs architecture documentation with diagrams
- User requests a changelog or migration guide
Workflow
Phase 1: Codebase Analysis
Step 1.1: Project Discovery
| Field | How to Determine | |
|---|---|---|
| Language(s) | File extensions, package.json, pyproject.toml, go.mod | |
| Framework | Dependencies (React, Django, Express, Spring) | |
| Build System | Makefile, CMakeLists.txt, webpack.config.js | |
| Package Manager | npm/yarn/pnpm, pip/uv/poetry, cargo | |
| Project Structure | Map directory tree | |
| Entry Points | main files, CLI entry points, exported modules | |
| Existing Docs | README, docs/, wiki, inline docs |
Step 1.2: Code Structure Analysis
Phase 2: Documentation Generation
README.md
API Reference
For each public function/class:
- Signature (parameters, return type)
- Description
- Parameters table
- Return value
- Example usage
- Exceptions raised
Architecture Documentation
- System overview diagram (use
architecture-diagramskill) - Component descriptions
- Data flow
- Key design decisions (ADR format)
Phase 3: Review
- [ ] All public APIs documented
- [ ] Examples are runnable
- [ ] Installation instructions tested
- [ ] No broken links
- [ ] Language-appropriate conventions (docstrings, JSDoc, GoDoc)
- [ ] Architecture diagram included for complex projects
Documentation Conventions by Language
| Language | Inline Format | Reference Format | |
|---|---|---|---|
| Python | docstrings (Google/NumPy style) | Sphinx, MkDocs | |
| JavaScript/TypeScript | JSDoc/TSDoc | JSDoc, TypeDoc | |
| Go | GoDoc comments | godoc | |
| Java | Javadoc | javadoc | |
| Rust | rustdoc (///) | rustdoc |
Changelog Generation
Pitfalls
- Stale docs: documentation must match code. If code changed, docs must
update. Note the commit/version the docs were generated from.
- No examples: documentation without runnable examples is useless. Always
include copy-pasteable examples.
- Over-documenting internals: document public API, not implementation
details. Internal code should have inline comments, not API docs.
- No table of contents: for long docs, include a TOC with anchor links.
- Missing prerequisites: list all dependencies, environment requirements,
and minimum versions.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpoirot/backend/agents/skill/builtin_skills/productivity/code-documentation/SKILL.md
Popularity
- 7-day trend score
- 0
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/xilele777/poirot/code-documentation)