lean-comments
Skill40k starsChanged 2 months agoMITView on GitHub
Audits, writes, and refines maintained first-party source-code comments and declaration-level documentation across languages. Use when adding, editing, reviewing, cleaning up, or auditing comments, doc comments, docstrings, TODO, FIXME, NOTE, suppressions, or other source commentary, including while modifying code and deciding whether a comment is warranted at all. Defaults to no comment unless it preserves meaningful, non-obvious information that cannot reasonably be recovered from the code or nearby repository context.
Trending
More talk lately.about the whole repository
Who's talking about github/awesome-copilot
- vercel-labs/skills“[Bug]: `npx skills update <skill-name>` adds all other skills from the skill repo”GitHub · Apr 12, 2026 · 46 reactions
- @vscode.dev“Less vibes, more standards. Custom instructions, prompts, and chat modes for Copilot → …”Bluesky · Jul 2, 2025 · 28 likes
- microsoft/copilot-intellij-feedback“Support for *.instructions.md files in IntelliJ for project-scoped Copilot customization”GitHub · Jul 9, 2025 · 25 reactions
- @aaron-powell.com“I did an overhaul of the Awesome Copilot README to make it easier to install the prompts, instructions, and …”Bluesky · Aug 20, 2025 · 14 likes
- vercel-labs/skills“[Bug]: `npx skills update` downloads entire repository instead of specific skill when using subpaths”GitHub · Apr 26, 2026 · 6 reactions
The biggest 5 of 79 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 79
Talked about on Bluesky, GitHub and Hacker News (79 times).
On Bluesky · 42
- Jul 2, 2025Less vibes, more standards. Custom instructions, prompts, and chat modes for Copilot → github.com/github/aweso... — @vscode.dev28 likes and reposts
- Aug 20, 2025I did an overhaul of the Awesome Copilot README to make it easier to install the prompts, instructions, and chat modes to VS Code - there… — @aaron-powell.com14 likes and reposts
- Jul 31, 2025Fixed a bug on github.com/github/aweso... so you can now one-click add Chat Modes to your VS Code environment (it worked for prompts and… — @aaron-powell.com5 likes and reposts
- Jul 1, 2025Community-contributed instructions, prompts, and configurations to help you make the most of GitHub Copilot. github.com/github/aweso... — @garrytrinder.dev5 likes and reposts
- Jul 3, 2025Want GitHub Copilot to follow the most modern best practices in your language of choice? Guide it with custom instructions, starting from… — @pamelafox.bsky.social4 likes and reposts
37 more on Bluesky
- Oct 1, 2026📦 github / awesome-copilot ⭐ 39,586 (+59) 🗒 JavaScript Community-contributed instructions, agents, skills, and configurations to help you… — @github-trending-js.bsky.social3 likes and reposts
- Mar 5, 2026It's honestly been a lot of a trial and error for me. I did do some training at work but applying it to real-world problems and picking the… — @adamrdriscoll.com3 likes and reposts
- Dec 11, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 13,991 (+111) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social3 likes and reposts
- Oct 23, 2025📦 github / awesome-copilot ⭐ 10,301 (+73) 🗒 JavaScript Community-contributed instructions, prompts, and configurations to help you make… — @github-trending-js.bsky.social3 likes and reposts
- Sep 25, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 8,027 (+102) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social3 likes and reposts · 1 reply
- Jul 4, 2025👀 Check this :A community-powered repo to enhance your GitHub Copilot experience > shared prompts, instructions, and configs so Copilot… — @elbruno.com3 likes and reposts
- Sep 24, 2026📦 github / awesome-copilot ⭐ 39,304 (+43) 🗒 JavaScript Community-contributed instructions, agents, skills, and configurations to help you… — @github-trending-js.bsky.social2 likes and reposts
- Aug 26, 2026📦 github / awesome-copilot ⭐ 38,267 (+44) 🗒 JavaScript Community-contributed instructions, agents, skills, and configurations to help you… — @github-trending-js.bsky.social2 likes and reposts
- Mar 7, 2026github / awesome-copilot Community-contributed instructions, prompts, and configurations to help you make the most of GitHub Copilot.… — @pythonhub.dev2 likes and reposts
- Mar 1, 2026Community-curated collection of specialized agents, instructions, and workflows that transform GitHub Copilot from basic autocomplete into… — @arifsolmaz.bsky.social2 likes and reposts
- Feb 26, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 22,634 (+146) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social2 likes and reposts
- Jan 10, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 16,762 (+165) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending.bsky.social2 likes and reposts
- Dec 2, 2025📦 github / awesome-copilot ⭐ 13,317 (+77) 🗒 JavaScript Community-contributed instructions, prompts, and configurations to help you make… — @github-trending-js.bsky.social2 likes and reposts
- Nov 19, 2025Awesome GitHub Copilot Customizations github.com/github/aweso... — @adamrdriscoll.com2 likes and reposts
- Nov 7, 2025📦 github / awesome-copilot ⭐ 11,436 (+79) 🗒 JavaScript Community-contributed instructions, prompts, and configurations to help you make… — @github-trending-js.bsky.social2 likes and reposts
- Oct 9, 2025I've enrolled the Awesome Copilot repo for #Hacktoberfest, so if you want to join the challenge, you now can with github.com/github/aweso... — @aaron-powell.com2 likes and reposts
- Nov 3, 2026📦 github / awesome-copilot ⭐ 40,747 (+52) 🗒 JavaScript Community-contributed instructions, agents, skills, and configurations to help you… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Oct 28, 2026📦 github / awesome-copilot ⭐ 40,463 (+45) 🗒 JavaScript Community-contributed instructions, agents, skills, and configurations to help you… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Sep 11, 2026📦 github / awesome-copilot ⭐ 38,893 (+53) 🗒 JavaScript Community-contributed instructions, agents, skills, and configurations to help you… — @github-trending-js.bsky.social1 likes and repost
- Mar 17, 2026Vous connaissez peut être le repository Github awesome-copilot (github.com/github/aweso...) contenant des skills, prompts, etc. pour Github… — @devdevdev.net1 likes and repost
- Feb 20, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 21,816 (+133) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social1 likes and repost
- Feb 5, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 20,129 (+137) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social1 likes and repost
- Jan 28, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 19,270 (+147) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social1 likes and repost
- Jan 15, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 17,630 (+180) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social1 likes and repost
- Dec 31, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 15,940 (+100) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social1 likes and repost
- Dec 20, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 github / awesome-copilot ⭐ 14,836 (+217) 🗒 JavaScript Community-contributed instructions, prompts,… — @github-trending.bsky.social1 likes and repost
- Dec 19, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 14,605 (+172) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social1 likes and repost
- Dec 6, 2025📦 github / awesome-copilot ⭐ 13,645 (+52) 🗒 JavaScript Community-contributed instructions, prompts, and configurations to help you make… — @github-trending-js.bsky.social1 likes and repost
- Nov 23, 202511월의 남은 쿼터를 소진하기 위한 작업은 Chatmode + Agent 지원방법에 대한 공부. 이번달은 대부분 직접 코딩하거나, GPT5-mini를 사용했기 때문에 Sonnet 펑펑 돌리면서 공부해도 되겠다. Chatmode 기반으로 작업할때는… — @luncliff.bsky.social1 likes and repost
- Nov 12, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 11,788 (+110) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social1 likes and repost
- Nov 1, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 10,993 (+115) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social1 likes and repost
- Oct 1, 2025📦 github / awesome-copilot ⭐ 8,546 (+91) 🗒 JavaScript Community-contributed instructions, prompts, and configurations to help you make… — @github-trending.bsky.social1 likes and repost
- Sep 23, 2025Join the AMA at 4PM SF time, here: discord.gg/YZbkuKb3?eve... Check out the awesome-copilot repo, here: github.com/github/aweso... — @nonfamous.bsky.social1 likes and repost · 1 reply
- Aug 15, 2025Shape Copilot to your workflow. Use the Awesome-Copilot repo’s custom instructions, reusable prompts, and chat modes to get AI suggestions… — @martinrojas.dev1 likes and repost
- Jul 2, 2025Awesome GitHub Copilot Customizations github.com/github/aweso... #GitHub #Copilot #GitHubCopilot — @yzhums.bsky.social1 likes and repost
- Nov 19, 2026📦 github / awesome-copilot ⭐ 41,301 (+61) 🗒 JavaScript Community-contributed instructions, agents, skills, and configurations to help you… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Jan 22, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 github / awesome-copilot ⭐ 18,469 (+149) 🗒 JavaScript Community-contributed instructions, prompts, and… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
On GitHub · 32
- Apr 12, 2026[Bug]: `npx skills update <skill-name>` adds all other skills from the skill repo — vercel-labs/skills46 reactions · 8 comments
- Jul 9, 2025Support for *.instructions.md files in IntelliJ for project-scoped Copilot customization — microsoft/copilot-intellij-feedback25 reactions · 9 comments
- Apr 26, 2026[Bug]: `npx skills update` downloads entire repository instead of specific skill when using subpaths — vercel-labs/skills6 reactions · 4 comments
- Jul 16, 2026docs(agent-skills): point the public catalog at the public org — chainguard-dev/edu2 reactions · 3 comments
- Jun 21, 2026[Feature]: Is there a way to specify .github/skills as the install location for skills? — vercel-labs/skills2 reactions
27 more on GitHub
- Oct 31, 2025Links to awesome-copilot are broken and result in 404 — github/docs2 reactions · 2 comments
- Nov 12, 2026https://github.com/github/awesome-copilot/blob/b13e55f85ffdf451d40d09839cb1e337bf3eda98/skills%2Fdebian-linux-triage%2FSKILL.md — CypherpunkArmory/UserLAnd1 reaction
- Oct 30, 2026feat(skills): add public Git installation to the CLI — alex-de-haas/docker-host1 reaction · 2 comments
- Oct 28, 2026docs(skills): correct the [dependabot skip] wording in the dependabot skill — docdyhr/mcp-wordpress1 reaction · 3 comments
- Sep 25, 2026Unblock learning-hub activation job by bumping blocked gh-aw compile version — Vbddr/awesome-copilot1 reaction · 1 comment
- Sep 24, 2026Automate agent package releases — socialbu/socialbu-agent1 reaction · 13 comments
- Sep 20, 2026fix(deps): clear Critical Dependabot alert for astro — Wicked-Sick-Ltd/awesome-copilot1 reaction
- Sep 20, 2026fix(security): CodeQL clear-text storage + hostBridge allowlist (#1–#2) — Wicked-Sick-Ltd/awesome-copilot1 reaction
- Sep 10, 2026Create Skill.md — 1napz/crystalcastleX1 reaction
- Sep 4, 2026fix(plugin): conform manifest to Agent Plugins 1.0.0 — BigCactusLabs/blotter1 reaction · 1 comment
- Aug 31, 2026fix(agents): launch Droid at High autonomy in yolo mode — stablyai/orca1 reaction · 3 comments
- Aug 21, 2026chore(skills): awesome-copilot update candidate 83561bd7 — KraineOpasen/bukerov-twitch-miner-go1 reaction
- Aug 10, 2026Bundled github-issues skill documents an unsafe shell-quoting pattern, and its locus is a synced file — devantler-tech/agent-plugins1 reaction · 1 comment
- Jul 23, 2026Plugin plan — charlyautomatiza/playwright-plugin1 reaction
- Jun 9, 2026Problem with the description length on using `az boards work-item create` — Azure/azure-cli1 reaction · 4 comments
- May 26, 2026[BUG] Unable to specify Skills/Agents when installing via the UI — runkids/skillshare1 reaction · 1 comment
- May 16, 2026[Ensure Agent skills follow the standards] — ralphke/Agentic-Coding1 reaction · 3 comments
- Apr 13, 2026Simplify, transfer/reorganize `.github/copilot-instructions.md` into `AGENTS.md` and other more appropriate agent context files — huanshankeji/compose-multiplatform-html-unified1 reaction · 1 comment
- Apr 9, 2026[broken-links] Broken external links detected (2 confirmed 404s) — htekdev/gh-aw-overview1 reaction
- Mar 31, 2026Add the awesome-copilot repo-architect agent to this repository — derecskey/valleypaintingco1 reaction
- Mar 22, 2026Add createagents.md skill — sparkfabrik/sf-agents-harness1 reaction
- Mar 22, 2026Code architecture inspection — davidamitchell/Research1 reaction
- Mar 10, 2026Git fatal: destination path error due to Windows long paths in Extensions view — microsoft/vscode1 reaction
- Mar 4, 2026Migrate to copilot-sdk — george-cz/ai-plan-comparator1 reaction
- Feb 6, 2026Add plugins for other Microsoft owned MCPs (Docs, playwright, etc). — github/copilot-plugins1 reaction · 2 comments
- Dec 25, 2025リポジトリ内の全ファイルの日本語への翻訳 — yamayuski/awesome-copilot1 reaction
- Oct 19, 2025File protocol handler for installing custom instructions, prompts, and chat modes — github/CopilotForXcode1 reaction
On Hacker News · 5
- Nov 11, 2025Copilot modes you probably didn't know exist4 points · 1 comment
- Aug 10, 2025Awesome-copilot: Community-contributed instructions, prompts, and configurations3 points
- Feb 17, 2026Rug – Repeat Until Good1 point
- Dec 22, 2025Gilfoyle code review agent skill that roasts your code1 point
- Oct 28, 2025GitHub Copilot Customizations1 point
In this repository448 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/repo-standardizer/templates/AGENTS.mdAGENTS.md
- skills/setup-my-iq/assets/templates/AGENTS.mdAGENTS.md
- skills/repo-standardizer/templates/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- agentic-workflowsSkill
- code-reviewSkill
- create-canvas-extensionSkill
- acquire-codebase-knowledgeSkill
- acreadiness-assessSkill
- acreadiness-generate-instructionsSkill
- acreadiness-policySkill
- ad-campaign-analyzerSkill
- add-educational-commentsSkill
- adobe-illustrator-scriptingSkill
- agent-architectureSkill
- agent-governanceSkill
- agentic-evalSkill
- agent-owasp-complianceSkill
- agent-skill-stackSkill
- agent-supply-chainSkill
- ai-prompt-engineering-safety-reviewSkill
- ai-readySkill
- ai-team-orchestrationSkill
- anti-ui-slopSkill
- api-breaking-change-detectorSkill
- appinsights-instrumentationSkill
- apple-appstore-reviewerSkill
- architecture-blueprint-generatorSkill
- arch-linux-triageSkill
- arduino-azure-iot-edge-integrationSkill
- arize-ai-provider-integrationSkill
- arize-annotationSkill
- arize-datasetSkill
- arize-evaluatorSkill
- arize-experimentSkill
- arize-instrumentationSkill
- arize-linkSkill
- arize-prompt-optimizationSkill
- arize-traceSkill
- aspireSkill
- aspnet-minimal-api-openapiSkill
- audit-integritySkill
- automate-thisSkill
- autoresearchSkill
- aws-cdk-python-setupSkill
- aws-cloudwatch-investigationSkill
- aws-cost-optimizeSkill
- aws-resource-health-diagnoseSkill
- aws-resource-querySkill
- aws-well-architected-reviewSkill
- az-cost-optimizeSkill
- azure-architecture-autopilotSkill
- azure-container-registry-cliSkill
- azure-deployment-preflightSkill
- azure-developer-cliSkill
- azure-devops-cliSkill
- azure-pricingSkill
- azure-resource-health-diagnoseSkill
- azure-resource-visualizerSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
95 rules. About 0 are common, 90 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈90
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 10
Keep the smallest amount of high-value commentary necessary to make a codebase easier and safer to understand and maintain.
- Distinctive: line 20
Write for a competent maintainer reading the repository at HEAD months later, without access to the current conversation, prompt, diff, …
- Distinctive: line 22
Document the durable state, contract, constraint, or rationale of the code as it exists.
- Distinctive: line 26
Use this skill as the comment-policy authority when it is active.
- Distinctive: line 28
Use language, framework, library, or infrastructure skills to determine whether a non-obvious constraint is real, not to override this …
- Distinctive: line 34
Never invent a security reason, performance reason, business rule, compatibility requirement, API constraint, historical reason, …
- Distinctive: line 36
If no supported non-obvious reason exists, remove or omit it.
- Distinctive: line 40
Before retaining or adding ordinary commentary, mentally remove it and ask:
- Distinctive: line 44
If no, remove or omit it.
- Distinctive: line 46
If uncertain, prefer no comment unless repository evidence demonstrates that the information matters.
- Distinctive: line 48
If yes, retain only the minimum information necessary.
- Distinctive: line 50
Never preserve a comment merely because it is correct, harmless, already present, grammatically polished, written as a warning, related to …
- Distinctive: line 58
Delete or omit: if the information is already clear without it
- Distinctive: line 59
Express through code: if a tiny behavior-preserving readability improvement removes the need for it
- Distinctive: line 60
Shorten: if it is necessary but contains unnecessary information or words
- Distinctive: line 61
Rewrite: if it is necessary but unclear, inaccurate, stale, awkward, or inconsistent
- Distinctive: line 62
Use declaration documentation: if the information belongs to the declaration's contract, semantics, or intended usage
- Distinctive: line 63
Keep unchanged: only if it is already necessary, minimal, accurate, durable, and correctly styled
- Distinctive: line 65
Always decide necessity before wording.
- Distinctive: line 67
Do not polish an unnecessary comment or convert one into documentation.
- Distinctive: line 71
Use an implementation comment when it preserves non-obvious information such as:
- Distinctive: line 81
Prefer comments that explain why something matters.
- Distinctive: line 87
Remove comments that merely:
- Distinctive: line 96
Add generic context that is immediately inferable
- Distinctive: line 101
Add rhetorical emphasis without information
- Distinctive: line 109
When a comment compensates for unnecessarily confusing code, consider a tiny local behavior-preserving improvement such as improving a …
- Distinctive: line 111
Keep such changes minimal and directly related to clarity.
- Distinctive: line 113
Do not turn comment cleanup into a general refactor or change behavior, architecture, public APIs, dependencies, or unrelated code merely …
- Distinctive: line 128
Do not treat comment-like text inside string literals, regular expressions, URLs, snapshots, fixtures, templates, or test data as source …
- Distinctive: line 132
Use the language's normal implementation-comment form for brief rationale, constraints, invariants, workarounds, or other non-obvious local …
- Distinctive: line 134
Prefer one concise line when one line is sufficient.
- Distinctive: line 138
Use the language's declaration-documentation form only when the information belongs to the declaration itself and forms part of its …
- Distinctive: line 144
Add module, package, or file-level documentation only for a durable architectural concept, boundary, invariant, terminology, lifecycle …
- Distinctive: line 146
Do not add file headers that merely summarize exports or describe an obvious file purpose.
- Distinctive: line 152
Before removing or materially changing runtime-visible documentation, verify that doing so does not change a supported runtime contract, …
- Distinctive: line 158
Do not document declarations merely because they are exported or public, and do not assume every language-level export in application code …
- Distinctive: line 160
Use declaration documentation when consumers or maintainers need non-obvious information about:
- Distinctive: line 178
Do not add documentation that merely restates names, types, signatures, obvious values, or structure already expressed by the language.
- Very specific: line 180
Do not mechanically add tags such as @param, @returns, @throws, @example, @remarks, or @see.
- Distinctive: line 190
Keep it as short as possible without making it cryptic
- Distinctive: line 191
Start normal prose with an uppercase letter unless technically required casing dictates otherwise
- Very specific: line 192
Do not end it with ., !, ?, or other terminal sentence punctuation
- Distinctive: line 193
Do not use em dashes or en dashes
- Distinctive: line 194
Do not use dash-based sentence punctuation
- Distinctive: line 195
Do not use semicolons as sentence punctuation
- Distinctive: line 196
Prefer a concise clause over unnecessarily complete prose
- Distinctive: line 215
Use normal sentence punctuation for genuine multi-sentence declaration documentation.
- Distinctive: line 217
Keep it concise and focused on meaningful contract or semantic information.
- Very specific: line 253
Do not preserve this merely because it contains Never or concerns a public boundary.
- Distinctive: line 255
If repository evidence establishes a genuinely non-obvious reason, retain only that supported reason:
- Distinctive: line 261
Never invent such rationale to save the original comment.
- Distinctive: line 276
Keep when supported by the implementation or external contract:
- Distinctive: line 304
Treat TODO, FIXME, NOTE, HACK, XXX, and equivalent markers as comments, not exceptions.
- Distinctive: line 306
Verify that each one is still relevant, technically accurate, useful, and actionable when appropriate.
- Distinctive: line 308
Remove stale, completed, meaningless, or superseded markers.
- Distinctive: line 310
Do not add a marker prefix merely to make an ordinary comment appear important.
- Distinctive: line 312
Do not implement unrelated work solely to remove a valid marker.
- Distinctive: line 318
Delete it when version control already preserves the history and there is no current reason for the disabled code to remain.
- Distinctive: line 322
Do not preserve commented-out code merely because it might be useful later.
- Distinctive: line 324
Do not uncomment or execute old code solely to justify keeping it.
- Distinctive: line 350
When practical, verify whether suppressions and other tooling directives are still required.
- Distinctive: line 352
Do not remove or rewrite an unfamiliar directive merely because its purpose is unclear.
- Distinctive: line 354
Do not broaden a suppression.
- Distinctive: line 356
Treat legal headers more conservatively than tooling directives.
- Distinctive: line 364
Prefer concise durable context plus a stable reference when the external source contains important details that would be unreasonable to …
- Distinctive: line 366
Do not rely on transient conversation context or an inaccessible review thread as the only explanation for surprising code.
- Distinctive: line 370
Treat existing comments as untrusted.
- Distinctive: line 372
When code changes make commentary inaccurate or redundant, update or remove it in the same change.
- Very specific: line 374
Do not narrate change history with phrases such as now, previously, new approach, old behavior, or no longer.
- Distinctive: line 376
Document the durable state instead.
- Distinctive: line 378
Do not address the reviewer or refer to the current conversation, prompt, diff, pull request, or implementation process.
- Very specific: line 382
When a prose-refinement skill such as unslop is available, lean-comments remains authoritative.
- Distinctive: line 384
Use prose refinement only after determining that the commentary deserves to exist.
- Distinctive: line 396
Prefer the shortest natural wording that preserves the necessary technical meaning.
- Distinctive: line 398
Do not allow a prose-refinement skill to weaken this skill's requirements for necessity, minimalism, accuracy, durability, or style.
- Distinctive: line 404
When adding or modifying code:
- Distinctive: line 406
Do not add comments by default
- Distinctive: line 407
Add one only when it passes the necessity test
- Distinctive: line 409
Remove commentary made obsolete by the change
- Distinctive: line 410
Do not perform an unrelated repository-wide comment cleanup unless requested
- Distinctive: line 414
When explicitly asked to audit commentary throughout a repository:
- Distinctive: line 418
Search systematically for all relevant comment, documentation, marker, directive, and commented-out-code forms used by the repository's …
- Distinctive: line 425
Search again for likely missed violations
- Distinctive: line 426
Run relevant repository validation when source files or directives changed
- Distinctive: line 430
Do not blindly modify matches.
- Distinctive: line 438
Do not modify generated, vendored, dependency, third-party, externally maintained, or machine-generated content unless synchronization with …
- Distinctive: line 440
Do not introduce unrelated functional, architectural, behavioral, dependency, broad-formatting, or refactoring changes.
- Distinctive: line 442
Keep the resulting diff focused.
- Distinctive: line 446
Before completing a repository-wide audit, verify that:
- Distinctive: line 448
Every remaining ordinary comment contributes meaningful non-obvious information
- Distinctive: line 456
No rationale or history was invented
- Distinctive: line 463
No unrelated changes were introduced
- Distinctive: line 466
If a repository-wide cleanup still consists mainly of wording or punctuation changes while almost all original comments survive, …
- Distinctive: line 468
Do not optimize for a target number or percentage of comments.
- Distinctive: line 470
Stop when further deletion or shortening would remove genuinely useful information rather than merely reduce comment count.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lean Comments
Goal
Keep the smallest amount of high-value commentary necessary to make a codebase easier and safer to understand and maintain.
The default is no comment.
A comment must preserve meaningful information that a competent maintainer cannot reasonably recover from the code, names, types, signatures, structure, tests, configuration, or nearby context.
Comments are not labels, narration, decoration, declaration summaries, change logs, or substitutes for clear code.
Reader model
Write for a competent maintainer reading the repository at HEAD months later, without access to the current conversation, prompt, diff, pull request, issue discussion, review discussion, or implementation process.
Document the durable state, contract, constraint, or rationale of the code as it exists. Do not assume the reader knows what changed, what came before, or what was discussed unless that context is deliberately preserved in a reliable project source.
Authority and evidence
Use this skill as the comment-policy authority when it is active.
Use language, framework, library, or infrastructure skills to determine whether a non-obvious constraint is real, not to override this skill's necessity test.
Honor explicit current repository requirements, public API documentation requirements, tooling contracts, and generated-source rules. Do not infer a documentation requirement merely from existing comment density or precedent.
Base retained or newly written rationale on evidence from the repository, tests, configuration, official API behavior, project documentation, issue tracker, ADRs, specifications, or another reliable source.
Never invent a security reason, performance reason, business rule, compatibility requirement, API constraint, historical reason, architectural rationale, or external limitation to justify commentary.
If no supported non-obvious reason exists, remove or omit it.
Core decision rule
Before retaining or adding ordinary commentary, mentally remove it and ask:
Would a competent maintainer lose meaningful, non-obvious information if this comment did not exist?
If no, remove or omit it.
If uncertain, prefer no comment unless repository evidence demonstrates that the information matters.
If yes, retain only the minimum information necessary.
Never preserve a comment merely because it is correct, harmless, already present, grammatically polished, written as a warning, related to security or validation, related to internal or public state, or attached to an exported declaration.
The information itself must justify the comment.
Decision order
Evaluate existing and proposed commentary in this order:
- Delete or omit if the information is already clear without it
- Express through code if a tiny behavior-preserving readability improvement removes the need for it
- Shorten if it is necessary but contains unnecessary information or words
- Rewrite if it is necessary but unclear, inaccurate, stale, awkward, or inconsistent
- Use declaration documentation if the information belongs to the declaration's contract, semantics, or intended usage
- Keep unchanged only if it is already necessary, minimal, accurate, durable, and correctly styled
Always decide necessity before wording.
Do not polish an unnecessary comment or convert one into documentation.
What deserves an implementation comment
Use an implementation comment when it preserves non-obvious information such as:
- Why intentionally surprising code exists
- An external constraint or compatibility requirement
- An important invariant or subtle edge case
- A meaningful tradeoff or required workaround
- Non-obvious coupling
- An ordering, timing, lifecycle, concurrency, performance, or security constraint
- A reason an apparently simpler implementation would be incorrect
Prefer comments that explain why something matters.
Comments that merely explain what the code does should normally be removed.
Remove low-value commentary
Remove comments that merely:
- Restate or translate the code into prose
- Narrate the next statement or obvious control flow
- Explain an obvious guard clause, return, assignment, or branch
- Describe an obvious fetch, validation, transformation, mapping, filtering, creation, update, or deletion
- Repeat a declaration name, property name, type, signature, parameter, or return type
- Label or summarize a declaration
- Repeat information already represented clearly by tests or configuration
- Add generic context that is immediately inferable
- Act as unnecessary section headings or visual separators
- Preserve obsolete change history
- Address the reviewer or justify the current change
- State a bare rule or prohibition without useful non-obvious context
- Add rhetorical emphasis without information
Words such as Never, Always, Important, Security, Internal, Public, or Required do not make a comment valuable.
Judge the information, not how serious the wording sounds.
Prefer self-explanatory code
When a comment compensates for unnecessarily confusing code, consider a tiny local behavior-preserving improvement such as improving a local name, extracting a clearly named boolean, simplifying local control flow, or removing redundant local structure.
Keep such changes minimal and directly related to clarity.
Do not turn comment cleanup into a general refactor or change behavior, architecture, public APIs, dependencies, or unrelated code merely to eliminate comments.
Comment and documentation forms
Apply the same necessity test across languages and syntaxes.
Relevant forms may include:
- Line and block comments such as
//,#,--, and/* ... */ - JSDoc, TSDoc, JavaDoc, KDoc, Rust doc comments, Go doc comments, C# XML documentation, and equivalent declaration documentation
- Module, package, and file documentation
- Python docstrings and other declaration documentation represented as runtime-visible strings
- TODO, FIXME, NOTE, HACK, XXX, and similar markers
- Tooling, compiler, formatter, coverage, build, framework, generator, and machine-consumed directives
Do not treat comment-like text inside string literals, regular expressions, URLs, snapshots, fixtures, templates, or test data as source comments merely because it contains comment syntax.
Implementation comments
Use the language's normal implementation-comment form for brief rationale, constraints, invariants, workarounds, or other non-obvious local context.
Prefer one concise line when one line is sufficient.
Declaration documentation
Use the language's declaration-documentation form only when the information belongs to the declaration itself and forms part of its contract, semantics, or intended usage.
For TypeScript, use TSDoc-compatible documentation when warranted. For JavaScript, follow intentional repository JSDoc conventions. For other languages, follow the language and repository's real documentation conventions without creating coverage for its own sake.
Module and file documentation
Add module, package, or file-level documentation only for a durable architectural concept, boundary, invariant, terminology, lifecycle rule, or design rationale that is not apparent from the contents.
Do not add file headers that merely summarize exports or describe an obvious file purpose.
Runtime-visible documentation
Some documentation forms, especially Python docstrings, can be observable at runtime through introspection or tooling.
Before removing or materially changing runtime-visible documentation, verify that doing so does not change a supported runtime contract, generated documentation surface, or external API expectation.
Declaration documentation rules
This is not a documentation coverage exercise.
Do not document declarations merely because they are exported or public, and do not assume every language-level export in application code is an intentionally supported external API.
Use declaration documentation when consumers or maintainers need non-obvious information about:
- Behavioral contracts, parameter constraints, return semantics, or special values
- Error behavior, side effects, preconditions, or postconditions
- Ordering, timing, lifecycle, concurrency, or caching behavior
- Security, runtime, server, client, SSR, or environment constraints
- Compatibility requirements or upstream API behavior
- Business rules or invariants
- Units, formats, ranges, encodings, or cross-field relationships
- Deprecation, extension points, or important usage restrictions
- Non-obvious usage that materially benefits from an example
Apply a stronger documentation bias to published libraries, SDKs, packages, plugins, extension APIs, and intentionally external interfaces.
Apply a stronger no-documentation bias to internal helpers, simple CRUD methods, straightforward adapters, composables, plain data shapes, DTOs, and internal utilities.
Do not repeat the type system
Do not add documentation that merely restates names, types, signatures, obvious values, or structure already expressed by the language.
Do not mechanically add tags such as @param, @returns, @throws, @example, @remarks, or @see. Use a tag only when it contributes information beyond the declaration and type system.
Plain interfaces, records, DTOs, structs, types, and obvious data shapes normally require no documentation unless they contain non-obvious semantics, invariants, formats, units, relationships, external constraints, or compatibility requirements.
Style
Single-line prose implementation comments
For a necessary single-line prose implementation comment, regardless of comment delimiter:
- Keep it as short as possible without making it cryptic
- Start normal prose with an uppercase letter unless technically required casing dictates otherwise
- Do not end it with
.,!,?, or other terminal sentence punctuation - Do not use em dashes or en dashes
- Do not use dash-based sentence punctuation
- Do not use semicolons as sentence punctuation
- Prefer a concise clause over unnecessarily complete prose
- Preserve exact casing and punctuation in identifiers, code, commands, URLs, paths, package names, versions, API values, and other technical literals
Example:
// Preserve source order for positional matchingNot:
// Preserve source order for positional matching.These prose rules do not apply to machine-consumed syntax, technically significant punctuation, or genuine multi-line declaration documentation.
Declaration documentation
Use normal sentence punctuation for genuine multi-sentence declaration documentation.
Keep it concise and focused on meaningful contract or semantic information. Do not add prose, tags, examples, or sections merely to make documentation appear complete.
High-value examples
<examples><example>
Delete:// A watchlist row
export interface FlickWatchlistItem {
media: FlickMedia;
added_at: string;
}Correct:
export interface FlickWatchlistItem {
media: FlickMedia;
added_at: string;
}The declaration already communicates the concept. Do not shorten the comment or convert it into declaration documentation.
</example>
<example>
Usually delete:// Never copy a raw internal message into the public responseDo not preserve this merely because it contains Never or concerns a public boundary.
If repository evidence establishes a genuinely non-obvious reason, retain only that supported reason:
// Keep provider errors private because messages may contain credentialsNever invent such rationale to save the original comment.
</example>
<example>
Delete:// Return the normalized result
return normalize(result);The code already communicates the action.
</example>
<example>
Keep when supported by the implementation or external contract:// Preserve source order because the upstream API matches items by positionThe comment communicates a non-obvious positional constraint.
</example>
<example>
Useful declaration documentation:/**
* Returns `null` for private profiles instead of propagating the upstream authorization error.
*/
export async function getProfile(): Promise<Profile | null> {
// ...
}The documentation explains caller-visible behavior that the type alone cannot communicate.
</example>
</examples>TODO, FIXME, NOTE, and similar markers
Treat TODO, FIXME, NOTE, HACK, XXX, and equivalent markers as comments, not exceptions.
Verify that each one is still relevant, technically accurate, useful, and actionable when appropriate. Follow repository conventions for issue references or ownership when such conventions actually exist.
Remove stale, completed, meaningless, or superseded markers.
Do not add a marker prefix merely to make an ordinary comment appear important.
Do not implement unrelated work solely to remove a valid marker.
Commented-out code
Commented-out executable code is normally dead code.
Delete it when version control already preserves the history and there is no current reason for the disabled code to remain.
Retain it only when the disabled form serves a current supported purpose, such as a deliberate copyable example, a semantically significant fixture, a documented compatibility fallback that maintainers are expected to re-enable under a known condition, or tooling/framework syntax that must remain disabled in source form.
Do not preserve commented-out code merely because it might be useful later.
Do not uncomment or execute old code solely to justify keeping it.
Technically significant directives and headers
Preserve constructs whose presence, position, or exact syntax has technical, tooling, generation, runtime, or legal significance, including applicable:
- Shebangs
- Lint and formatter directives
- Compiler and type-checker directives
- Coverage directives
- Build tags and pragmas
- Framework directives
- Bundler or optimizer annotations
- Source-map and sourceURL directives
- Generated markers
- Required annotations
- Encoding declarations
- Licensing and copyright headers
- Other machine-consumed comments
These are not ordinary prose comments. Do not apply prose formatting rules to their syntax, and preserve technically required punctuation exactly.
Stale directives
Technically significant directives are protected only while they remain necessary.
When practical, verify whether suppressions and other tooling directives are still required. Remove a directive when repository evidence or the relevant tooling proves it obsolete.
Do not remove or rewrite an unfamiliar directive merely because its purpose is unclear. Verify it first.
Do not broaden a suppression. Only narrow or remove one when the change is clearly safe, directly related to the audit, and does not require unrelated refactoring.
Treat legal headers more conservatively than tooling directives. Do not remove or alter licensing or copyright text without clear project authority.
Durable references and links
A bare issue, pull request, specification, or documentation URL is not automatically useful commentary.
Retain or add a reference only when it materially preserves non-obvious context that cannot be expressed clearly enough in the code alone.
Prefer concise durable context plus a stable reference when the external source contains important details that would be unreasonable to duplicate.
Do not rely on transient conversation context or an inaccessible review thread as the only explanation for surprising code.
Editing existing code
Treat existing comments as untrusted. Surviving previous cleanup passes does not make a comment correct or necessary.
When code changes make commentary inaccurate or redundant, update or remove it in the same change.
Do not narrate change history with phrases such as now, previously, new approach, old behavior, or no longer.
Document the durable state instead.
Do not address the reviewer or refer to the current conversation, prompt, diff, pull request, or implementation process.
Interaction with prose-refinement skills
When a prose-refinement skill such as unslop is available, lean-comments remains authoritative.
Use prose refinement only after determining that the commentary deserves to exist.
The order is:
- Determine necessity
- Delete if unnecessary
- Determine the correct comment form
- Minimize the information
- Refine the wording
Refinement may improve clarity, naturalness, and readability, but must not introduce personality or voice for its own sake, rhetorical flourish, humor, conversational filler, additional rationale, additional examples, additional claims, increased verbosity, or information that was not already justified.
Prefer the shortest natural wording that preserves the necessary technical meaning.
Do not allow a prose-refinement skill to weaken this skill's requirements for necessity, minimalism, accuracy, durability, or style.
A polished unnecessary comment is still unnecessary.
Normal implementation work
When adding or modifying code:
- Do not add comments by default
- Add one only when it passes the necessity test
- Apply this skill to commentary directly affected by the implementation
- Remove commentary made obsolete by the change
- Do not perform an unrelated repository-wide comment cleanup unless requested
Repository-wide audits
When explicitly asked to audit commentary throughout a repository:
- Inspect enough of the repository to understand its terminology, architecture, languages, tooling, external constraints, and documentation conventions
- Identify maintained first-party scope and exclude generated, vendored, dependency, third-party, and externally maintained content
- Search systematically for all relevant comment, documentation, marker, directive, and commented-out-code forms used by the repository's languages
- Review comments untouched by previous cleanup passes
- Apply the necessity test before making wording changes
- Review declaration documentation as critically as ordinary comments
- Review commentary immediately preceding declarations for redundant labels or summaries
- Review TODO, FIXME, NOTE, HACK, XXX, tooling directives, suppressions, and commented-out code
- Inspect the final diff for accidental behavior, formatting, or unrelated changes
- Search again for likely missed violations
- Run relevant repository validation when source files or directives changed
For single-line prose comments, specifically inspect remaining comments ending in ., !, or ?.
Do not blindly modify matches. Exclude technically significant syntax and comment-like text that is actually data.
For directives and suppressions, use the relevant tool when practical to distinguish required controls from stale ones.
Scope boundaries
Apply this skill to maintained first-party source content.
Do not modify generated, vendored, dependency, third-party, externally maintained, or machine-generated content unless synchronization with an intentional source change requires it.
Do not introduce unrelated functional, architectural, behavioral, dependency, broad-formatting, or refactoring changes.
Keep the resulting diff focused.
Final acceptance check
Before completing a repository-wide audit, verify that:
- Every remaining ordinary comment contributes meaningful non-obvious information
- Obvious comments were deleted rather than polished
- Label comments, code narration, and bare warnings are gone
- Comments are as concise as possible without becoming cryptic
- Single-line prose comments follow the style rules above
- Declaration documentation adds genuine contract or semantic information
- Plain data declarations are not decorated with useless documentation
- Types and signatures are not repeated unnecessarily
- No rationale or history was invented
- Stale TODO, FIXME, NOTE, HACK, XXX, and equivalent markers are gone
- Unjustified commented-out code is gone
- Required machine-significant constructs remain intact
- Proven-stale tooling directives and suppressions are gone
- Runtime-visible documentation was not removed without checking its contract
- Comment-like data was not mistaken for source commentary
- No unrelated changes were introduced
- Relevant validation passes
If a repository-wide cleanup still consists mainly of wording or punctuation changes while almost all original comments survive, re-evaluate necessity.
Do not optimize for a target number or percentage of comments.
Stop when further deletion or shortening would remove genuinely useful information rather than merely reduce comment count.
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.

