code-documentation
Skill0 starsChanged 8 months agoMITView on GitHub
Generates and improves code documentation for Python projects. Use this skill whenever the user asks to document code, add docstrings, add type hints,
13 other projects use a version of this.
Adopted by
Most recently taken up by
- gilsmt/skillstheir own version, first seen Oct 4, 2026
- velonx/agent-skillstheir own version, first seen Sep 24, 2026
- Suuunboy/code-documentation-skilltheir own version, first seen Sep 22, 2026
- gspencergoog/skillstheir own version, first seen Sep 8, 2026
- lexicalninja/my-little-scrum-teamtheir own version, first seen Jul 26, 2026
- CreamyLong/quilltheir own version, first seen Jul 16, 2026
Used with
Projects with it also use data-analysis, changelog-generator and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
shanggqmSkilldata-analysis
数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。
Also in 3 projects that use this
ArogyaReddySkillchangelog-generator
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Also in 3 projects that use this
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 4 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- bytedance/deer-flow★ 83ksame name
- MoizIbnYousaf/ai-agent-skills★ 1.1ksame name
- myths-labs/muse★ 35same name
- mryeminaung/documentation-assistant★ 9same name
- Jonathan0823/opencode-config★ 8same name
- CreamyLong/quill★ 2same name
- gilsmt/skills★ 2same name
- gspencergoog/skills★ 2same name
- lexicalninja/my-little-scrum-team★ 2same name
- Suuunboy/code-documentation-skill★ 2same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- app-store-preflight-skillsSkill
- fastapi-patternsSkill
- frontend-designSkill
- mcp-builderSkill
- python-testingSkill
- ui-patternsSkill
- view-refactorSkill
- theme-factorySkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Create clear, concise, and informative, accurate, idiomatic, and useful documentation — not boilerplate.
- Distinctive: line 18
Before writing anything, scan the existing code and any existing docs to detect:
- Distinctive: line 25
If no style exists, default to Google style docstrings.
- Distinctive: line 34
Ask or infer which documentation type(s) are needed.
- Very specific: line 51
Document intent, not mechanics: If the code says i += 1, don't write # increment i.
- Distinctive: line 52
Keep it current: If you see a comment that contradicts the code, fix the comment.
- Distinctive: line 55
Be consistent: Use the same style, tense, and voice throughout a file.
- Very specific: line 68
Only include sections that apply — don't add empty Raises: if nothing is raised.
- Distinctive: line 75
Never output just the docstring in isolation — always show it in context.
- Distinctive: line 82
After completing documentation, offer at least one relevant next step, e.g.:
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Documentation Skill
Create clear, concise, and informative, accurate, idiomatic, and useful documentation — not boilerplate. Every piece of documentation you write should help the next developer understand why, not just what.
Step 1: Detect Context and Scope
Before writing anything, scan the existing code and any existing docs to detect:
- Style already in use — check for: Google style, NumPy/Sphinx style, reStructuredText, or no style
- Existing doc coverage — are some things documented? Mimic that style exactly.
- Project type — library/package, application, CLI tool, API server, etc.
- Audience — internal tool vs public-facing API (affects verbosity)
If no style exists, default to Google style docstrings.
Always announce your detected style to the user before writing, e.g.:
"I can see you're using Google-style docstrings — I'll match that throughout."
Step 2: Determine Scope
Ask or infer which documentation type(s) are needed. See the full guidance in:
references/inline-docs.md— docstrings and inline commentsreferences/readme-and-api.md— README files and API reference docsreferences/architecture.md— high-level architecture and design docs
For multi-type requests (e.g. "document this whole project"), tackle in this order:
- Inline docs first (they inform everything else)
- API reference
- README
- Architecture doc
Step 3: Write Documentation
Universal rules (apply to all doc types)
- Document intent, not mechanics. If the code says
i += 1, don't write# increment i. - Keep it current. If you see a comment that contradicts the code, fix the comment.
- Don't over-document. Private helpers and obvious one-liners rarely need docs. Focus effort on: public APIs, complex logic, non-obvious side effects, error conditions.
- Be consistent. Use the same style, tense, and voice throughout a file.
- Examples > prose for complex APIs. A 3-line usage example beats a paragraph of explanation.
What to always include in function/method docs
| Element | Python (Google) |
| One-line summary | First line of docstring |
| Parameters | Args: block |
| Return value | Returns: block |
| Exceptions/errors | Raises: block |
| Usage example | Example: block |
Only include sections that apply — don't add empty Raises: if nothing is raised.
Step 4: Output Format
- Inline docs: Output the full modified file (or clearly-delimited diff if file is large). Never output just the docstring in isolation — always show it in context.
- README: Output as Markdown. See
references/readme-and-api.mdfor structure. - API reference: Output as Markdown table or structured Markdown. See
references/readme-and-api.md. - Architecture doc: Output as Markdown with diagrams (Mermaid) where helpful. See
references/architecture.md.
Step 5: Offer Follow-ups
After completing documentation, offer at least one relevant next step, e.g.:
- "Want me to generate an API reference from these docstrings?"
- "Should I write a README for this module next?"
- "Want me to add usage examples to the more complex functions?"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

