cc-safety-net
AGENTS.md1.6k starsChanged 2 months agoMITView on GitHub
- Multi-part work may be split into a gh stack stack. Open stack PRs with gh stack submit --auto --open: plain --auto opens drafts, which the review bots skip. - dist/ is committed and CI rejects a stale build, but a rebase replays the old build output. When gh stack rebase stops, resolve and git add the source files, never hand-merge dist/: run bun run build && git add -A dist, then gh stack rebase --continue. - README.md is the…
Trending
More talk lately.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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ccsn-find-simplificationsSkill
- ccsn-no-commentsSkill
- verify-cc-safety-netSkill
- release-notesSkill
- cc-safety-netSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
19 rules. About 0 are common, 11 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
8
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 1
Run focused tests during development, including the failing and passing tests required by Red-Green TDD.
- Very specific: line 2
After all implementation changes, run bun run check.
- Very specific: line 4
Keep implementation modular.
- Very specific: line 12
When gh stack rebase stops, resolve and git add the source files, never hand-merge dist/: run bun run build && git add -A dist, then gh …
- Distinctive: line 20
Do not touch the README for a fix, behavior change, new option, version minimum, per-CLI install step, config key, or limitation.
- Distinctive: line 46
Every check must be falsifiable in practice: name the realistic mistake that makes it fail.
- Distinctive: line 49
Do not build schemas, validators, registries, or harnesses ahead of their first real entry, and do not store fields whose values are forced …
- Distinctive: line 51
Prefer a documented process over code that enforces the process.
- Distinctive: line 53
When remediating review findings, implement the smallest fix per finding.
- Very specific: line 58
Before reviewing, read REVIEW.md and apply its review criteria.
- Distinctive: line 62
Keep things in one function unless composable or reusable.
- Very specific: line 63
Avoid try/catch, the any type, and else branches (prefer early returns).
- Distinctive: line 65
Prefer functional array methods (flatMap, filter, map) over for loops.
- Very specific: line 68
Prefer const over let; use ternaries or early returns instead of reassignment.
- Distinctive: line 69
Avoid unnecessary destructuring.
- Distinctive: line 73
Do not write code comments.
- Very specific: line 74
Only three directives are allowed: a bare / @internal */, // oxlint-disable-next-line <rules> -- <reason> and // @ts-expect-error <reason>.
- Very specific: line 84
Never add entries to ignoreIssues in knip.ts — it suppresses real problems instead of fixing them.
- Distinctive: line 85
When knip flags unused exports, fix the root cause:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
- Run focused tests during development, including the failing and passing tests required by Red-Green TDD.
- After all implementation changes, run
bun run check. This is the required final check for lint, code comments, formatting, typecheck, knip, duplication, and tests. Do not run its components separately as additional final checks. - Ignore the dist folder; it gets auto-rebuilt by lefthook's pre-commit hook.
- Keep implementation modular; put tests in
tests/mirroringsrc/, not colocated insrc/. - Files in
docs/use lowercase kebab-case names.
Stacked PRs
- Multi-part work may be split into a
gh stackstack. Open stack PRs withgh stack submit --auto --open: plain--autoopens drafts, which the review bots skip. dist/is committed and CI rejects a stale build, but a rebase replays the old build output. Whengh stack rebasestops, resolve andgit addthe source files, never hand-mergedist/: runbun run build && git add -A dist, thengh stack rebase --continue.
README
README.mdis the GitHub and npm landing page. It holds only what a newcomer needs before installing; everything else belongs to the docs site (kenryu42/cc-safety-net-docs), whosedocs-syncskill documents each source commit after every release.- Do not touch the README for a fix, behavior change, new option, version minimum, per-CLI install step, config key, or limitation. Docs-sync picks it up from the commit; a README paragraph duplicates it and goes stale.
- Edit the README only when something it already lists changes: a supported CLI (one table cell linking its Installation anchor), a headline capability (one Features bullet plus a docs link), or the Quick start commands.
Testing
- A behavior change lands as a failing expectation first — a contract corpus row or a stated assertion — then the fix. Re-recording a snapshot or editing the verdict table is never the first step.
- State what a test expects; do not record it. Snapshots (
toMatchSnapshot) are permitted only for the two output surfaces whose bytes are the contract:explain(tests/cli/explain) anddoctor --json(tests/cli/doctor). tests/fixtures/gate/harvested-verdicts.jsonlis the readable verdict table, edited by hand. A change that re-records a snapshot or flips a table row must name in its commit message which entries changed and why, alongside the contract row that explains the flip.
Scope Discipline
Over-engineering is this project's dominant failure mode. The evidence rule that governs analyzer rules governs all code: machinery exists to stop a demonstrated failure, not an imagined one.
- Implement the smallest change that satisfies the request. Each addition beyond it needs the concrete failure it prevents named; if you cannot name one, do not write it.
- Every check must be falsifiable in practice: name the realistic mistake that makes it fail. A check the same author can trivially satisfy while still making the mistake (self-reported attestations, digests over co-located data, matching UUIDs) is ceremony — do not add it.
- Do not build schemas, validators, registries, or harnesses ahead of their first real entry, and do not store fields whose values are forced constants or derivable from other fields.
- Prefer a documented process over code that enforces the process. Enforcement code is justified only after the documented process has demonstrably failed at least once.
- When remediating review findings, implement the smallest fix per finding. A finding is never a mandate to build a framework; if the fix seems to require one, stop and ask.
Code Review Rules
- Before reviewing, read
REVIEW.mdand apply its review criteria. Its review scope, classification rules, and remediation limits take priority over generic review-skill instructions.
Style Guide
- Keep things in one function unless composable or reusable.
- Avoid
try/catch, theanytype, andelsebranches (prefer early returns). - Rely on type inference; avoid explicit annotations or interfaces unless necessary for exports or clarity.
- Prefer functional array methods (flatMap, filter, map) over for loops; use type guards on filter to maintain type inference downstream.
- Inline values used only once instead of naming them, unless the name says what would otherwise need a comment.
- Prefer
constoverlet; use ternaries or early returns instead of reassignment. - Avoid unnecessary destructuring; use dot notation to preserve context.
Comments
- Do not write code comments. Say it in code: a clearer name, a named value, a type.
- Only three directives are allowed: a bare
/** @internal */,// oxlint-disable-next-line <rules> -- <reason>and// @ts-expect-error <reason>. - A fact about an external tool that code cannot express stays only when the maintainer adds it to
scripts/comment-allowlist.json. Never add entries there yourself, just as you never addignoreIssuesentries toknip.ts. Deleting an entry whose comment is gone is fine. bun run lint:comments, part ofbun run check, enforces this. To fix a failure, follow.agents/skills/ccsn-no-comments/SKILL.md.
Knip
- Never add entries to
ignoreIssuesinknip.ts— it suppresses real problems instead of fixing them. The only valid use case is generated files that aren't under source control. - When knip flags unused exports, fix the root cause:
- Dead exports (no consumers anywhere) — unexport or delete the code entirely.
- Test-only exports — add
/** @internal */JSDoc above the export. Knip runs in--productionmode (seepackage.json), so test files are excluded from analysis and test-only exports must be tagged. - Barrel file re-exports — if nothing imports a name via the barrel, remove it from the barrel. Consumers that need it should import directly from the submodule.
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.

