code-comments
Skill0 starsChanged 5 months agoApache-2.0View on GitHub
Write and improve code comments and docstrings that explain why,
17 other projects use a version of this.
Adopted by
Most recently taken up by
- ton-anywhere/my-favorite-promptstheir own version, first seen Sep 26, 2026
- cilinmengye/personal-agent-skillstheir own version, first seen Sep 24, 2026
- rokokol/code-comments-skilltheir own version, first seen Sep 23, 2026
- swaroopsm/skillstheir own version, first seen Sep 17, 2026
- overmind-core/overmindtheir own version, first seen Sep 15, 2026
- alumpe/skillstheir own version, first seen Sep 11, 2026
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- overmind-core/overmind★ 376same name
- petekp/claude-code-setup★ 47same name
- keitakn/engineering-skills★ 14same name
- caidanw/skills★ 9same name
- Sir-chawakorn/sanook-cli★ 9same name
- ARTPARK-SAHAI-ORG/calibrate-backend★ 4same name
- karlhorky/agent-skills★ 4same name
- ton-anywhere/my-favorite-prompts★ 4same name
- luabagg/agent-skills★ 3same name
- bmsuisse/skills★ 2same name
7 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 repository128 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-implementationSkill
- accessibility-reviewSkill
- api-changelogSkill
- api-designSkill
- auth-designSkill
- caching-strategiesSkill
- chaos-experiment-designSkill
- ci-cd-pipelinesSkill
- cli-designSkill
- cloudformation-reviewSkill
- codebase-orientationSkill
- code-reviewSkill
- commit-messagesSkill
- container-reviewSkill
- database-indexingSkill
- database-migrationsSkill
- debuggingSkill
- dependency-upgradesSkill
- design-system-contributionSkill
- design-tokensSkill
- desktop-releaseSkill
- error-handlingSkill
- feature-flagsSkill
- finops-reviewSkill
- frontend-performanceSkill
- git-conflict-resolutionSkill
- graphql-schema-designSkill
- helm-chart-scaffoldingSkill
- i18n-reviewSkill
- kubernetes-reviewSkill
- load-test-planningSkill
- logging-observabilitySkill
- message-queue-designSkill
- migration-playbooksSkill
- mobile-releaseSkill
- multi-region-active-activeSkill
- observability-alertsSkill
- openapi-spec-designSkill
- partner-api-integrationSkill
- performance-reviewSkill
- pr-descriptionsSkill
- prompt-injection-hardeningSkill
- pulumi-reviewSkill
- rate-limitingSkill
- refactor-planningSkill
- secrets-managementSkill
- security-reviewSkill
- sql-query-reviewSkill
- terraform-reviewSkill
- test-generationSkill
- threat-modelingSkill
- webhook-designSkill
- websocket-designSkill
- ab-test-analysisSkill
- anomaly-detectionSkill
- cost-anomaly-investigationSkill
- csv-analysisSkill
- data-cleaningSkill
- data-contract-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Leave stale comments that contradict code
- Distinctive: line 35
Update comments in the same change as behavior.
- Distinctive: line 36
Prefer short, precise language.
- Distinctive: line 39
Do not invent library behavior in comments.
- Distinctive: line 51
Deleted code: delete comments with code.
“Common” is measured: kept by at least 6 in 10 of the 15 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 Comments
Comments capture intent, invariants, and non-obvious trade-offs. If the code can be clearer, prefer rename/refactor over a comment that restates the line.
When to comment
- Why a non-obvious approach was chosen
- Invariants and concurrency assumptions
- Workarounds for bugs in dependencies (link issue)
- Public API docstrings: params, returns, errors, examples
- Security-sensitive constraints
When not to
- Restate
i += 1as "increment i" - Leave stale comments that contradict code
- Joke or dead commented-out code blocks without reason
Rules
- Update comments in the same change as behavior.
- Prefer short, precise language; link specs when long.
- Public APIs get complete docstrings; internals only where needed.
- Mark TODOs with ticket refs if required by team norms — avoid empty TODOs.
- Do not invent library behavior in comments.
- For generated code, say so and point to source of generation.
Output format
Provide the commented code or a diff-style patch, plus a one-line rationale for non-obvious comments.
Edge cases
- Regulated code: traceability comments may be mandatory.
- Algorithms: complexity and references (paper/RFC).
- Deleted code: delete comments with code; use VCS history.
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.

