agentleFS
0xmariowu0xmariowu/AgentLint/CLAUDE.md

AgentLint

CLAUDE.md57 starsChanged 8 months agoMITView on GitHub

For global rules, see ~/CLAUDE.md. This file contains agent-lint-specific overrides only. Lighthouse for AI-Friendly repos — diagnose, plan, fix. Compliance (4 checks, ~1s) + scanner unit tests. Full matrix (multi-OS) runs in CI.

  • Reads credentials

The file

We split this CLAUDE.md into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If modifying checks → read standards/evidence.json for evidence backing

    line 16
  2. Very specific:

    If modifying scoring → read standards/weights.json for weight rationale

    line 17
  3. Distinctive:

    If adding a check → must have evidence source (paper, data, or real audit finding)

    line 18
  4. Very specific:

    Don't add a check without empirical evidence.

    line 22
  5. Distinctive:

    Don't hardcode thresholds as pass/fail gates.

    line 23
  6. Distinctive:

    Don't modify scanner output format without updating scorer + plan-generator + reporter.

    line 24
  7. Very specific:

    Don't hardcode paths in skills/*.md.

    line 25
  8. Very specific:

    Don't write persistent data to ${CLAUDE_PLUGIN_ROOT}.

    line 26
  9. Very specific:

    Commit: {type}: {description} (feat/fix/refactor/test/docs/chore)

    line 32
  10. Very specific:

    Don't stage .env*, credentials, node_modules/, __pycache__/, or .git/ internals.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md

AgentLint

For global rules, see ~/CLAUDE.md. This file contains agent-lint-specific overrides only. Lighthouse for AI-Friendly repos — diagnose, plan, fix.

Local test (run before push)

bash tests/test_compliance.sh && bash tests/test-scanner.sh

Compliance (4 checks, ~1s) + scanner unit tests. Full matrix (multi-OS) runs in CI.

Session Checklist

  1. If modifying checks → read standards/evidence.json for evidence backing
  2. If modifying scoring → read standards/weights.json for weight rationale
  3. If adding a check → must have evidence source (paper, data, or real audit finding)

Rules

  • Don't add a check without empirical evidence. Instead, cite: Anthropic data, academic paper, or documented real-world failure. Because: AgentLint's value is evidence-backed recommendations, not opinions.
  • Don't hardcode thresholds as pass/fail gates. Instead, measure and compare to reference values. Because: Bitter Lesson — imposing human-defined boundaries creates brittle rules that break when context changes.
  • Don't modify scanner output format without updating scorer + plan-generator + reporter. Because: the JSONL schema is a contract between all pipeline stages.
  • Don't hardcode paths in skills/*.md. Instead, use ${CLAUDE_PLUGIN_ROOT} to reference bundled files. Because: plugin install path varies per user.
  • Don't write persistent data to ${CLAUDE_PLUGIN_ROOT}. Instead, use ${CLAUDE_PLUGIN_DATA} or ~/.al/. Because: plugin root is replaced on update.
  • When you change a file under .github/workflows/, also check whether templates/universal/<basename> exists and needs the same change. Instead of relying on memory, run bash scripts/lib/check-template-sync.sh against your staged diff (the pre-commit hook already does this informally) — it counts security-keyword occurrences in both files and warns when they drift. Because: v1.1.9 / v1.1.10 / v1.1.11 each shipped a regression where the in-tree workflow got a security fix but the user-facing template did not, exposing every fresh agentlint setup repo to the same bug.

Workflow

  • Branch: feature/{desc}, fix/{desc} — don't develop on main
  • Commit: {type}: {description} (feat/fix/refactor/test/docs/chore)
  • One commit = one logical change. Commit sequence: source code first, tests second, docs/config third. Don't batch. Because: reviewers need to verify tests cover exactly the code that changed.
  • Feature commits without corresponding test commits will not pass review. Because: untested features are untested assumptions.
  • Don't stage .env*, credentials, node_modules/, __pycache__/, or .git/ internals. Because: these files contain secrets or generated content that must not enter version control.

Tests

# Run scanner on a project
bash src/scanner.sh --project-dir <path>

# Run unit tests
npm test

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.