prompt-language
AGENTS.md4 starsChanged 8 months agoMITView on GitHub
This repo is protected by noslop quality gates. The pre-commit hook uses two-tier content-aware checking on infrastructure files: Quality gate configs are checked for weakening patterns. Strengthening changes pass through. If a change is intentionally weakening (e.g., removing an obsolete rule), submit it via PR with the noslop-approved label. The pre-commit hook blocks it locally; the guardrails workflow enforces the label requirement on GitHub. These files ARE the enforcement mechanism, so they naturally reference bypass keywords. The hook only checks:
- Deletes or force-pushes
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
9
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 20
Never use git push --force without explicit human approval
- Very specific: line 21
Do not weaken quality gates in .githooks/, .github/workflows/, or .claude/hooks/
- Very specific: line 24
Never use [skip ci], skip-checks, or SKIP_CI in commit messages or CI configuration
- Very specific: line 44
If a change is intentionally weakening (e.g., removing an obsolete rule), submit it via PR with the noslop-approved label.
- Very specific: line 78
Run CI before claiming work is complete.
- Very specific: line 79
Never bypass hooks, linters, or safety checks (--no-verify, HUSKY=0, --force).
- Distinctive: line 83
Read current task context and understand the scope.
- Very specific: line 85
Run npm run test after changes.
- Very specific: line 86
Run npm run ci before claiming complete.
- Very specific: line 87
Run live smoke tests with npm run eval:smoke for any change to hooks, parsing, advancement, or state transitions (see CLAUDE.md "Smoke …
- Very specific: line 91
All pull requests must pass npm run ci.
- Distinctive: line 103
Never import upward. Never add external dependencies to domain.
- Distinctive: line 111
Read the full error output — it tells you what failed and where
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
Agent Governance
This repo is protected by noslop quality gates.
Before every commit
npm run format:check && npm run lint && npm run spellBefore opening a PR
npm run typecheck && npm run testRules
- Never use
git commit --no-verify - Never use
git push --forcewithout explicit human approval - Do not weaken quality gates in
.githooks/,.github/workflows/, or.claude/hooks/ - Additive changes to infrastructure files (new CI jobs, new checks, new schedules) are allowed
- Fix lint/type errors; do not disable rules
- Never use
[skip ci],skip-checks, orSKIP_CIin commit messages or CI configuration
Content-aware protection
The pre-commit hook uses two-tier content-aware checking on infrastructure files:
Tier 1: Content-aware config protection
Quality gate configs are checked for weakening patterns. Strengthening changes pass through.
| Config | Blocked (weakening) | Allowed (strengthening) |
eslint.config.mjs | Adding 'off' rules, eslint-disable, net removal of 'error' rules | New rules, tighter limits |
vitest.config.ts | Lowering coverage thresholds, removing thresholds | Raising thresholds |
tsconfig*.json | Adding strict: false, net removal of strict flags | New strict flags |
.dependency-cruiser.cjs | Net removal of name: rules, severity downgrade to warn/info/off | New forbidden rules |
knip.json | Expanding ignore/ignoreDependencies, ignoreExportsUsedInFile | New entry points |
Escape hatch
If a change is intentionally weakening (e.g., removing an obsolete rule), submit it via PR with the noslop-approved label. The pre-commit hook blocks it locally; the guardrails workflow enforces the label requirement on GitHub.
Tier 2a: Enforcement files (.githooks/*, .claude/hooks/*, AGENTS.md)
These files ARE the enforcement mechanism, so they naturally reference bypass keywords. The hook only checks:
- Removal of quality commands (
npm run ci,npm run test,npx vitest,npx eslint, etc.) - Net removal of
exit 1(removing moreexit 1lines than are added) - Net removal of
set -e(removing fail-on-error without replacement)
Tier 2b: CI and config files (.github/workflows/*, .claude/settings.json)
Full content check:
- Removal of quality commands (same as Tier 2a)
- Addition of bypass patterns (
continue-on-error: true,--no-verify,[skip ci],SKIP_CI,skip-checks) - Net removal of
exit 1(same as Tier 2a)
Lines containing deny, block, or "Bash are excluded from bypass detection to avoid false positives on enforcement logic.
Additive changes (new jobs, new schedules, new checks) pass through in all tiers.
Commit-msg hook
The commit-msg hook checks the subject line only:
- Blocks
[skip ci],skip-checks, and--no-verifyin the subject - Enforces Conventional Commits format (
type(scope): description)
The message body is not checked — it may legitimately discuss these patterns.
Core principles
- Preserve architecture boundaries. Domain has zero external dependencies. Dependency flow is inward only.
- Run CI before claiming work is complete.
npm run ciis the authority. - Never bypass hooks, linters, or safety checks (
--no-verify,HUSKY=0,--force).
Required workflow
- Read current task context and understand the scope.
- Make changes within the correct architectural layer.
- Run
npm run testafter changes. - Run
npm run cibefore claiming complete. - Run live smoke tests with
npm run eval:smokefor any change to hooks, parsing, advancement, or state transitions (see CLAUDE.md "Smoke testing" section).
Quality contract
- All pull requests must pass
npm run ci. - Tests are required for all new logic.
- Coverage must not decrease.
- Mutation testing should be run for critical domain logic.
- Live smoke tests are mandatory for changes to application/presentation layers. Unit tests with mocks are not sufficient — the plugin must be built, installed, and validated through Claude's real agent loop. See CLAUDE.md for smoke test commands.
Architecture boundaries
presentation -> infrastructure -> application -> domainNever import upward. Never add external dependencies to domain.
Hook integrity
The three hooks (UserPromptSubmit, Stop, TaskCompleted) form the enforcement engine. Changes to hook behavior require review. Never remove or weaken hook enforcement without explicit approval.
If a gate blocks you
- Read the full error output — it tells you what failed and where
- Fix the code (do not disable the rule or bypass the hook)
- Rerun the gate:
npm run format:check && npm run lint && npm run spell - Once it passes, stage and commit normally
Human handoff
For ambiguous requirements, high-risk refactors, or policy changes, stop and ask for explicit user consent before proceeding.
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.

