comments
Skill627 starsChanged 8 days agoMITView on GitHub
Replace code comments with clearer names, explainer variables and test names, and keep the rare necessary comment to one short line or a link. Read when writing or reviewing code and about to add a `//` or `/* */` comment or a JSDoc block, or when a review flags a comment as noise, outdated or a paraphrase of the code.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- BridgLabs/opencodereviewtheir own version, first seen Nov 8, 2026
- uplika/uplika-plugintheir own version, first seen Oct 25, 2026
- ayrshare/ayrshare-social-media-api-claude-plugintheir own version, first seen Oct 13, 2026
- trezor/trezor-suitetheir own version, first seen Oct 8, 2026
- aspose-words/agentic-net-examplestheir own version, first seen Sep 9, 2026
- tonydzi/second-brain-starter-kittheir own version, first seen Sep 8, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- anthropics/claude-for-legal★ 9.5ksame name
- trezor/trezor-suite★ 1.1ksame name
- BridgLabs/opencodereview★ 79same name
- ayrshare/ayrshare-social-media-api-claude-plugin★ 19same name
- tonydzi/second-brain-starter-kit★ 6same name
- aspose-words/agentic-net-examples★ 4same name
- uplika/uplika-plugin★ 3same name
- arsenstorm/skills★ 0same name
- postproxy/postproxy-claude-plugin★ 0same name
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 repository70 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- analyticsSkill
- batch-feature-devSkill
- ci-runnersSkill
- ci-workflow-refsSkill
- cleanupSkill
- client-idsSkill
- cloud-sync-moduleSkill
- codeownershipSkill
- coin-families-contractSkill
- coin-modulesSkill
- configurationSkill
- console-logSkill
- create-changesetSkill
- create-prSkill
- data-layer-advancedSkill
- debug-rn-native-crashSkill
- dependency-patchesSkill
- detect-data-leaksSkill
- device-intent-executorSkill
- devtools-import-boundarySkill
- dialogs-sliceSkill
- docs-migrateSkill
- docs-update-or-createSkill
- domain-dataSkill
- e2e-desktop-add-or-updateSkill
- e2e-desktop-onboardSkill
- e2e-earnSkill
- e2e-mobile-add-or-updateSkill
- e2e-mobile-onboardSkill
- e2e-swapSkill
- errorsSkill
- feature-devSkill
- fix-ciSkill
- flow-packageSkill
- get-pr-commentsSkill
- git-conventionsSkill
- i18n-keysSkill
- impacting-prsSkill
- knip-migrationSkill
- ldls-nativeSkill
- ldls-webSkill
- ledger-wallet-cliSkill
- legacy-migrationSkill
- mvvm-architectureSkill
- new-packageSkill
- package-public-apiSkill
- pnpm-resolutionSkill
- prefer-set-hasSkill
- pre-reviewSkill
- react-generalSkill
- rebuild-to-fix-lib-import-errorsSkill
- remove-feature-flagSkill
- run-buildsSkill
- run-e2e-ciSkill
- runner-imagesSkill
- run-testsSkill
- slack-pr-messageSkill
- 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 9 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 20
When code isn't clear, make it clearer:
- Distinctive: line 24
Use assertions to explain behaviour
- Distinctive: line 89
Be concise: Use as few words as possible to convey the necessary information.
- Distinctive: line 90
Use JSDocs: Only when describing a shared function.
- Distinctive: line 91
Prefer a link: If the comment is explaining a workaround for a known issue, link to the issue or docs.
“Common” is measured: kept by at least 6 in 10 of the 9 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
Comments in code
🧀 Avoid comments
Comments are code smells because they go out-of-date, bloat context, and lead to confusion.
Don't reference existing comments in the codebase – follow these rules
- Avoid adding comments – always prefer good names (explainer variables, functions, tests)
- Use test names to describe behaviour – unit tests are living documentation
- Good code explains itself – don't add comments that duplicate what the code already conveys
💡 Treatments
When code isn't clear, make it clearer:
- Rename variables and functions to make comments unnecessary
- Extract variables and functions to improve readability
- Use assertions to explain behaviour
Use test names to explain non-obvious details
❌ Bad
it("diffs the current value against resolved when targeted", () => {
const { result } = renderHook(() => useJsonEditor(makeProps()));
act(() => result.current.setDiffTarget("resolved"));
// Current equals resolved → every line is unchanged.
expect(result.current.diffJson.every((l) => l.state === "none")).toBe(true);
});✅ Good
it("resets the state of every line when the diff is resolved", () => {
const { result } = renderHook(() => useJsonEditor(makeProps()));
act(() => result.current.setDiffTarget("resolved"));
expect(result.current.diffJson.every((l) => l.state === "none")).toBe(true);
});Let code speak for itself
❌ Bad
/* Whether the filter trigger should be displayed */
showFilter: boolean;✅ Good
showFilter: boolean;Replace comments with explainer variables
Move the comment into a variable name:
Before
// NB `app.trustchain` is an encrypted db path: while the app is password-locked it reads back
// as the ciphertext string. Importing it would regenerate member credentials and null the
// trustchain (LIVE-36130). IsUnlocked re-runs this thunk once the encryption key is set.
// `undefined` must still go through: that is the legitimate "nothing persisted" case.
if (typeof data === "string") return;After
const dataIsEncrypted = typeof data === "string";
if (dataIsEncrypted) return;☝️ When comments are necessary
Comments are only for vital information that can't go anywhere else. Always prefer not adding comments. If a comment is the only way, follow these guidelines:
- Be concise: Use as few words as possible to convey the necessary information.
- Use JSDocs: Only when describing a shared function.
- Prefer a link: If the comment is explaining a workaround for a known issue, link to the issue or docs.
❌ Bad
# pnpm patches add 'patch_hash=HASH' to virtual store paths, which prefab 2.1.0
# (introduced via AGP 8.11) misparses as an option flag due to a clikt bug that splits
# positional path arguments at '='. Pinning prefab to 2.0.0 in gradle.properties avoids
# this; keeping path segments ≤ 80 chars shortens virtual-store paths to reduce the
# likelihood of triggering prefab path-parsing issues as an additional safeguard.
android.prefab.version=2.0.0
virtual-store-dir-max-length=80✅ Better
# Workaround for Prefab 2.1.0/Clikt bug
# See: https://github.com/google/prefab/issues/187
android.prefab.version=2.0.0
virtual-store-dir-max-length=80Does 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.

