code-documentation
Skill2 starsChanged 4 months agoMITView on GitHub
Generate comprehensive code documentation including docstrings, comments, and API documentation. Use when code lacks documentation, needs better explanations, or requires API docs. Focuses on clarity, completeness, and following language-specific documentation standards.
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
- 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 data-analysis, web-design-guidelines and 1 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
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
- Suuunboy/code-documentation-skill★ 2same name
- velonx/agent-skills★ 1same 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 repository40 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-checkerSkill
- accessibility-design-checkerSkill
- agent-capability-assessorSkill
- agent-creatorSkill
- api-implementerSkill
- architecture-reviewerSkill
- best-practices-checkerSkill
- bug-detectorSkill
- changelog-generatorSkill
- code-style-analyzerSkill
- color-system-designerSkill
- component-designerSkill
- component-implementerSkill
- config-setupSkill
- conflict-resolverSkill
- convert-to-extensionSkill
- database-implementerSkill
- design-systemSkill
- escalation-handlerSkill
- git-commit-helperSkill
- idea-refinerSkill
- implementation-plannerSkill
- import-formatterSkill
- interaction-designerSkill
- layout-designerSkill
- performance-analyzerSkill
- quality-gate-managerSkill
- requirement-analyzerSkill
- resource-allocation-optimizerSkill
- responsive-design-plannerSkill
- security-scannerSkill
- spacing-system-designerSkill
- specification-checkerSkill
- task-to-agent-matcherSkill
- team-health-checkerSkill
- technical-spec-writerSkill
- test-writerSkill
- typography-designerSkill
- utility-implementerSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Add inline comments for complex logic or non-obvious code
- Distinctive: line 25
Keep documentation concise but complete
- Distinctive: line 26
Use clear, professional language
- Distinctive: line 94
Use Google or NumPy style docstrings
- Very specific: line 96
Document exceptions with Raises:
- Very specific: line 97
Add Example: section for complex functions
- Very specific: line 100
Use JSDoc format with @param, @returns, @throws
- Very specific: line 102
Add @example for usage demonstrations
“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
Instructions
- Analyze the code structure to understand what needs documentation
- Generate docstrings/comments following language conventions:
- Python: Google, NumPy, or Sphinx style
- JavaScript/TypeScript: JSDoc format
- Go: Standard Go doc comments
- Java: JavaDoc format
- Document:
- Function/method purpose and behavior
- Parameters with types and descriptions
- Return values with types and descriptions
- Exceptions/errors that may be raised
- Usage examples when helpful
- Edge cases and important notes
- Add inline comments for complex logic or non-obvious code
- Generate API documentation when requested
- Keep documentation concise but complete
- Use clear, professional language
Examples
Input (Python function without docs):
def calculate_total(items, tax_rate=0.1):
subtotal = sum(item.price for item in items)
return subtotal * (1 + tax_rate)Output:
def calculate_total(items: List[Item], tax_rate: float = 0.1) -> float:
"""
Calculate the total price including tax for a list of items.
Args:
items: List of Item objects with a price attribute
tax_rate: Tax rate as a decimal (default: 0.1 for 10%)
Returns:
Total price including tax as a float
Example:
>>> items = [Item(price=10.0), Item(price=20.0)]
>>> calculate_total(items, tax_rate=0.08)
32.4
"""
subtotal = sum(item.price for item in items)
return subtotal * (1 + tax_rate)Input (JavaScript function):
function processUserData(data) {
const filtered = data.filter(u => u.active);
return filtered.map(u => ({ id: u.id, name: u.name }));
}Output:
/**
* Process user data by filtering active users and extracting key fields.
*
* @param {Array<Object>} data - Array of user objects
* @param {boolean} data[].active - Whether the user is active
* @param {string} data[].id - User identifier
* @param {string} data[].name - User display name
* @returns {Array<Object>} Array of processed user objects with id and name
*
* @example
* const users = [
* { id: '1', name: 'Alice', active: true },
* { id: '2', name: 'Bob', active: false }
* ];
* processUserData(users); // [{ id: '1', name: 'Alice' }]
*/
function processUserData(data) {
const filtered = data.filter(u => u.active);
return filtered.map(u => ({ id: u.id, name: u.name }));
}Documentation Standards
Python:
- Use Google or NumPy style docstrings
- Include type hints when possible
- Document exceptions with
Raises: - Add
Example:section for complex functions
JavaScript/TypeScript:
- Use JSDoc format with
@param,@returns,@throws - Include type information in JSDoc comments
- Add
@examplefor usage demonstrations
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.

