ccsn-no-comments
Skill1.6k starsChanged 2 months agoMITView on GitHub
Use in the cc-safety-net repo when `bun run lint:comments` or `bun run check` reports a comment, a stale comment-allowlist entry, or a file it cannot parse, and before writing a code comment there. Moves what each comment says into code, a test, or the PR description instead of deleting it and losing it.
Trending
Quiet since October.about the whole repository
Who's talking about kenryu42/cc-safety-net
- sudosubin/agents.nix“agent-skills.github.kenryu42.cc-safety-net: 2.5.2 → 2.6.0”GitHub · Oct 5, 2026
- fendouai/awesome-deepseek-harness“Weekly discovery: new DeepSeek Harness ecosystem candidates”GitHub · Oct 5, 2026
- sudosubin/agents.nix“claude-code-plugins.github.kenryu42.cc-safety-net: init at 2.5.2”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.kenryu42.cc-safety-net: init at 2.5.2”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.kenryu42.cc-safety-net: 2.4.5 → 2.5.2”GitHub · Oct 3, 2026
The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 18
Talked about on GitHub (18 times).
On GitHub · 18
- Oct 5, 2026agent-skills.github.kenryu42.cc-safety-net: 2.5.2 → 2.6.0 — sudosubin/agents.nix0 reactions
- Oct 5, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions
- Oct 4, 2026claude-code-plugins.github.kenryu42.cc-safety-net: init at 2.5.2 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.kenryu42.cc-safety-net: init at 2.5.2 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.kenryu42.cc-safety-net: 2.4.5 → 2.5.2 — sudosubin/agents.nix0 reactions
13 more on GitHub
- Sep 29, 2026agent-skills.github.kenryu42.cc-safety-net: init at 2.4.5 — sudosubin/agents.nix0 reactions
- Sep 26, 2026fix(deps): update dependency cc-safety-net (2.4.6 ➔ 2.4.11) — Tanguille/cluster0 reactions · 3 comments
- Sep 21, 2026fix(deps): update dependency cc-safety-net (2.4.4 ➔ 2.4.5) — Tanguille/cluster0 reactions · 3 comments
- Sep 20, 2026fix(deps): update dependency cc-safety-net (2.4.3 ➔ 2.4.4) — Tanguille/cluster0 reactions · 3 comments
- Sep 17, 2026fix(deps): update dependency cc-safety-net (2.4.2 ➔ 2.4.3) — Tanguille/cluster0 reactions · 3 comments
- Aug 27, 2026Add issue forms: false-verdict, bug report, feature request, config.yml — rvenutolo/claude-pgrep-pkill-guard0 reactions
- Aug 27, 2026Add SECURITY.md written as a threat model, not a reporting stub — rvenutolo/claude-pgrep-pkill-guard0 reactions
- Aug 24, 2026fix(deps): update dependency cc-safety-net (2.1.0 ➔ 2.1.1) — Tanguille/cluster0 reactions · 2 comments
- Aug 24, 2026feat(deps): update dependency cc-safety-net (2.0.11 ➔ 2.1.0) — Tanguille/cluster0 reactions · 2 comments
- Aug 23, 2026fix(deps): update dependency cc-safety-net (2.0.10 ➔ 2.0.11) - autoclosed — Tanguille/cluster0 reactions · 2 comments
- Aug 14, 2026fix(deps): update dependency cc-safety-net (2.0.3 ➔ 2.0.4) — Tanguille/cluster0 reactions · 2 comments
- Aug 10, 2026fix(deps): update dependency cc-safety-net (2.0.0 ➔ 2.0.1) — Tanguille/cluster0 reactions · 3 comments
- Aug 10, 2026feat(deps)!: Update dependency cc-safety-net (1.0.6 ➔ 2.0.0) — Tanguille/cluster0 reactions · 3 comments
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ccsn-find-simplificationsSkill
- verify-cc-safety-netSkill
- release-notesSkill
- cc-safety-netSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Before writing a lint suppression, check whether the rule is catching a real bug.
- Distinctive: line 34
Do not move comment text into strings or string constants.
- Very specific: line 35
Do not edit scripts/check-comments.ts to let a comment through.
- Very specific: line 39
Run bun run lint:comments until it passes, then run bun run check once as the final check.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Fixing CC Safety Net Comment Failures
bun run lint:comments, part of bun run check and CI, rejects code comments. The lazy fix, deleting the comment, loses what it said. For each reported comment, decide which kind it is and move what it says to where that kind belongs. The Comments and Style Guide sections of AGENTS.md govern.
Each Reported Comment
- Narration that restates the code, and commented-out code: delete it. The code already says the first, and git keeps the second.
- An explanation of surprising behavior in this repo's own code: make the code say it with a clearer name, a named value or local boolean, or a type, then delete the comment. The Style Guide forbids a single-use helper function just to carry a name; name a value or condition inside the function instead, which the Style Guide allows even when it is used once.
- A claimed constraint ("do not remove", "IMPORTANT", "must", a justification for a workaround): leave the code's behavior as it is, and check the claim before trusting it. Read
git blame -L <start>,<end> <file>and the commit it points to, rungit log -p -S '<distinctive fragment>' -- <file>, and searchtests/for a test that pins it. A constraint you confirm gets a test or a type when that is cheap: remove the workaround, see the new test or type check fail, then restore it. Otherwise, or when you cannot confirm or rule it out, state the claim and what you found in the PR description. The comment goes either way. - A fact about an external tool (git, POSIX shell, the OS, Bun, Node, a host agent) that code cannot express: remove it from the code, and put the fact and its source (documentation link, version, or commit) in the PR description. Only the maintainer adds entries to
scripts/comment-allowlist.json; never add one or change its text.
Allowed Directives
The check accepts exactly three comments without an allowlist entry:
- a bare
/** @internal */with nothing else in it, for a test-only export (see the Knip section ofAGENTS.md); // oxlint-disable-next-line <rules> -- <reason>, with comma-separated rule names and a non-empty reason;// @ts-expect-error <reason>, with a non-empty reason.
Before writing a lint suppression, check whether the rule is catching a real bug. If it is, fix the code instead.
Other Failures
cannot be parsed: fix the syntax error first, then rerun before acting on anything else reported for that file. The check misses comments after the error, so a stale entry for that file may be false.stale entry for <path>: the entry's exact text is no longer a comment in<path>. If the check also reports that comment in<path>with edited text, restore the entry's exact text. If it reports the entry's exact text in another file, you moved the comment or renamed its file: keep the comment and the entry, and stop and ask the maintainer to move the entry. Otherwise the comment is gone: delete the entry fromscripts/comment-allowlist.json.
Never Dodge The Check
- Do not move comment text into strings or string constants.
- Do not edit
scripts/check-comments.tsto let a comment through.
Finish
Run bun run lint:comments until it passes, then run bun run check once as the final check.
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.

