code-documentation
Skill1 starsChanged 2 months agoMITView on GitHub
Write or update docstrings, READMEs and API docs that match what the code actually does, verified by reading the implementation. Use when the user asks to document code, write a README, explain a module, or fix out-of-date docs.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- gilsmt/skillstheir own version, first seen Oct 4, 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
- mryeminaung/documentation-assistanttheir own version, first seen Jul 4, 2026
Used with
Projects with it also use changelog-generator and web-design-guidelines.
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.
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
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 repository13 other files it gives its agents.
- academic-researchSkill
- code-reviewSkill
- competitive-analysisSkill
- data-analysisSkill
- email-assistantSkill
- fullstack-dev-teamSkill
- github-integrationSkill
- market-researchSkill
- pdf-analysisSkill
- research-paperSkill
- sql-analysisSkill
- web-researchSkill
- web-searchSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Before open-sourcing a project or handing it over.
- Very specific: line 33
Mark uncertainty: If behaviour is ambiguous, leave a TODO(docs): note rather than guessing.
- Distinctive: line 34
Keep diffs limited to docs unless asked to change code.
- Distinctive: line 45
Does not generate API reference sites.
“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
Overview
Documentation that is accurate first and complete second. The agent reads the implementation, traces behaviour, and documents what the code does — including edge cases and errors — in the style already used by the project.
When to Use
- "Document this function / module / API", "write a README", "our docs are out of date"
- Before open-sourcing a project or handing it over.
Usage
- Detect conventions. Find existing docstrings and docs; match their format (JSDoc, Google/NumPy docstrings, rustdoc…), tone and heading structure. If none exist, use the language's most common convention.
- Read the code path, not just the signature: inputs, outputs, side effects (I/O, network, mutation), thrown errors, defaults.
- Docstrings: one-line summary; parameters and return value only when not obvious from types; side effects; errors raised; a short example for public APIs. Don't restate the code.
- README in this order: what it is (one sentence) → install → minimal working example → configuration → common tasks → contributing/license. Test that every command and snippet you include actually matches the code (script names, flags, env vars).
- Mark uncertainty. If behaviour is ambiguous, leave a
TODO(docs):note rather than guessing. - Keep diffs limited to docs unless asked to change code.
Examples
Prompt: "Add docstrings to billing/invoice.py."
The agent notices the project uses Google-style docstrings, reads each function, documents that finalize() raises InvoiceLockedError if already sent, and skips trivial private helpers.
Limitations
- Cannot document runtime behaviour it can't see (external services, env-specific config) — flags those.
- Does not generate API reference sites; it writes the source docs those tools consume.
Changelog
- 1.1.0 — Verifies README commands against the code;
TODO(docs)for uncertain behaviour. - 1.0.0 — Initial release.
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.

