public/no-agent-files
Public repositories track no agent instruction files
| Severity | error |
| Tiers | all |
| Stacks | any |
| Scope | root |
| Kind | expr |
| Source | library v0.4.0 |
| Selected by | fleetlint-slop@v0.4.0 |
Requirement
No agent instruction files are tracked in a public repository: CLAUDE.md, CLAUDE.local.md, AGENTS.md, GEMINI.md, .github/copilot-instructions.md, .cursorrules, .windsurfrules, .clinerules, .aider* and the .claude/, .agent/ and .cursor/ directories stay local (listed in .git/info/exclude).
Why
For projects that keep agent tooling out of their published tree: the files describe one contributor’s local setup, not the project, and go stale for everyone else.
Applies when
repo.publicCheck
For each item in:
tracked().filter(f, f.matches(r'(^|/)(CLAUDE(\.local)?|AGENTS|GEMINI)\.md$|(^|/)\.(claude|agent|cursor)/|(^|/)\.(cursorrules|windsurfrules|clinerules)(/|$)|(^|/)\.aider[^/]*(/|$)|(^|/)\.github/copilot-instructions\.md$'))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.
Sources
- https://fleetlint.org/baseline/#public-repositories (convention)
- https://fleetlint.org/slop/#repository-and-files
Generated by fleetlint docs from catalog v0.4.0.