agentleFS
45ck45ck/prompt-language/AGENTS.md

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 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 repository9 other files it gives its agents.

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
  1. Distinctive:

    Never use git push --force without explicit human approval

    line 20
  2. Very specific:

    Do not weaken quality gates in .githooks/, .github/workflows/, or .claude/hooks/

    line 21
  3. Very specific:

    Never use [skip ci], skip-checks, or SKIP_CI in commit messages or CI configuration

    line 24
  4. Very specific:

    If a change is intentionally weakening (e.g., removing an obsolete rule), submit it via PR with the noslop-approved label.

    line 44
  5. Very specific:

    Run CI before claiming work is complete.

    line 78
  6. Very specific:

    Never bypass hooks, linters, or safety checks (--no-verify, HUSKY=0, --force).

    line 79
  7. Distinctive:

    Read current task context and understand the scope.

    line 83
  8. Very specific:

    Run npm run test after changes.

    line 85
  9. Very specific:

    Run npm run ci before claiming complete.

    line 86
  10. Very specific:

    Run live smoke tests with npm run eval:smoke for any change to hooks, parsing, advancement, or state transitions (see CLAUDE.md "Smoke …

    line 87
  11. Very specific:

    All pull requests must pass npm run ci.

    line 91
  12. Distinctive:

    Never import upward. Never add external dependencies to domain.

    line 103
  13. Distinctive:

    Read the full error output — it tells you what failed and where

    line 111

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Governance

This repo is protected by noslop quality gates.

Before every commit

npm run format:check && npm run lint && npm run spell

Before opening a PR

npm run typecheck && npm run test

Rules

  • Never use git commit --no-verify
  • Never use git push --force without 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, or SKIP_CI in 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.

ConfigBlocked (weakening)Allowed (strengthening)
eslint.config.mjsAdding 'off' rules, eslint-disable, net removal of 'error' rulesNew rules, tighter limits
vitest.config.tsLowering coverage thresholds, removing thresholdsRaising thresholds
tsconfig*.jsonAdding strict: false, net removal of strict flagsNew strict flags
.dependency-cruiser.cjsNet removal of name: rules, severity downgrade to warn/info/offNew forbidden rules
knip.jsonExpanding ignore/ignoreDependencies, ignoreExportsUsedInFileNew 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 more exit 1 lines 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-verify in 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 ci is the authority.
  • Never bypass hooks, linters, or safety checks (--no-verify, HUSKY=0, --force).

Required workflow

  1. Read current task context and understand the scope.
  2. Make changes within the correct architectural layer.
  3. Run npm run test after changes.
  4. Run npm run ci before claiming complete.
  5. Run live smoke tests with npm run eval:smoke for 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 -> domain

Never 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

  1. Read the full error output — it tells you what failed and where
  2. Fix the code (do not disable the rule or bypass the hook)
  3. Rerun the gate: npm run format:check && npm run lint && npm run spell
  4. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.