doc
Skill36 starsChanged 8 months agoMITView on GitHub
当用户想加文档注释、写 docstring、给代码加说明时使用 — 自动生成文档注释,风格与项目一致
26 other projects use a version of this.
Adopted by
Most recently taken up by
- Mazalucas/El-DT-Lightweight-Armytheir own version, first seen Oct 5, 2026
- hmjBill/skillstheir own version, first seen Oct 5, 2026
- satoh-y-0323/claude-code-conductortheir own version, first seen Sep 28, 2026
- PracticalSwan/agent-skillstheir own version, first seen Sep 14, 2026
- AymanShams/codex-coding-ostheir own version, first seen Sep 12, 2026
- jircdev/crew-plugintheir own version, first seen Sep 7, 2026
Used with
Projects with it also use plan, review 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.
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 4 projects that use this
SentrySkillreview
Fixture review skill.
Also in 4 projects that use this
AWSSkillimprove-codebase-architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- termio-sh/termio★ 538same name
- boshu2/agentops★ 447same name
- JetBrains/skills★ 360same name
- kv0906/pm-kit★ 138same name
- letitbk/claude-academic-setup★ 46same name
- VoDaiLocz/kilo-kit-mcp★ 27same name
- PracticalSwan/agent-skills★ 18same name
- jhy0285/monofield★ 4same name
- Mazalucas/El-DT-Lightweight-Army★ 4same name
- merchsage/workflow-skills★ 4same name
16 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 repository37 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11ySkill
- apiSkill
- authSkill
- blogSkill
- changelogSkill
- code-reviewSkill
- commitSkill
- compareSkill
- componentSkill
- conceptSkill
- copySkill
- dashboard-adminSkill
- databaseSkill
- debugSkill
- deploySkill
- emailSkill
- envSkill
- explainSkill
- fixSkill
- formSkill
- gitsetupSkill
- install-pluginsSkill
- landingSkill
- learnSkill
- migrateSkill
- paymentSkill
- perfSkill
- readme-genSkill
- refactorSkill
- responsiveSkill
- scriptSkill
- seoSkill
- setupSkill
- starterSkill
- storageSkill
- testSkill
The file
Files
生成文档
为代码自动添加文档注释,省去手写文档的麻烦。
步骤
1. 确定文档目标
如果用户指定了文件或函数,直接读取。
如果没有指定,问:
你想给哪段代码加文档?可以告诉我文件名、函数名或类名。
2. 检查项目的文档风格
查看项目中已有的文档注释,了解:
- 使用的文档格式(Python: Google style / NumPy style / reStructuredText,JS/TS: JSDoc,Go: godoc)
- 文档语言(中文还是英文)
- 详细程度
如果项目没有已有文档,根据语言社区惯例选择最常用的格式。
3. 生成文档
为目标代码生成文档注释,包括:
- 简要描述 — 一句话说明这个函数/类做什么
- 参数说明 — 每个参数的名称、类型、含义
- 返回值 — 返回什么、什么类型
- 异常/错误 — 可能抛出什么异常(如果有)
- 使用示例 — 一个最简单的调用示例(仅对复杂函数添加)
规则:
- 文档要准确反映代码实际行为,不要写代码没做的事情
- 保持简洁,不要把显而易见的事情写进文档
- 与项目已有的文档风格保持一致
4. 写入
展示生成的文档,询问用户:
文档生成好了,要我写入文件吗?
用户确认后写入。
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.

