public/no-agent-files
Public repositories track no agent instruction files
| Severity | error |
| Tiers | all |
| Stacks | any |
| Scope | root |
| Kind | expr |
| Source | library v0.0.0-20261011205826-ecb4e9b3ffd4 |
| Selected by | fleetlint-minimal@0.1.0 |
Requirement
CLAUDE.md, AGENTS.md, .claude/ and .agent/ stay untracked in public repositories (listed in .git/info/exclude).
Why
The owner’s policy is that public repositories carry no AI tooling artefacts.
Applies when
repo.publicCheck
For each item in:
tracked().filter(f, f.matches('(^|/)(CLAUDE|CLAUDE\\.local|AGENTS)\\.md$')
|| f.startsWith('.claude/') || f.startsWith('.agent/'))falseFix
git rm –cached the files and list them in .git/info/exclude so they stay local.
Agent instruction: Untrack the listed files with git rm –cached, add them to .git/info/exclude (not .gitignore), and commit.
See: https://fleetlint.org/baseline/#public-repositories
Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.