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
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
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
- Very specific: line 16
If modifying checks → read standards/evidence.json for evidence backing
- Very specific: line 17
If modifying scoring → read standards/weights.json for weight rationale
- Distinctive: line 18
If adding a check → must have evidence source (paper, data, or real audit finding)
- Very specific: line 22
Don't add a check without empirical evidence.
- Distinctive: line 23
Don't hardcode thresholds as pass/fail gates.
- Distinctive: line 24
Don't modify scanner output format without updating scorer + plan-generator + reporter.
- Very specific: line 25
Don't hardcode paths in skills/*.md.
- Very specific: line 26
Don't write persistent data to ${CLAUDE_PLUGIN_ROOT}.
- Very specific: line 32
Commit: {type}: {description} (feat/fix/refactor/test/docs/chore)
- Very specific: line 35
Don't stage .env*, credentials, node_modules/, __pycache__/, or .git/ internals.
≈ “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.
Files
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.shCompliance (4 checks, ~1s) + scanner unit tests. Full matrix (multi-OS) runs in CI.
Session Checklist
- If modifying checks → read
standards/evidence.jsonfor evidence backing - If modifying scoring → read
standards/weights.jsonfor weight rationale - 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 whethertemplates/universal/<basename>exists and needs the same change. Instead of relying on memory, runbash scripts/lib/check-template-sync.shagainst 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 freshagentlint setuprepo 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 testDoes 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.

