SpecPilot
CLAUDE.md39 starsChanged 59 days agoMITView on GitHub
Primary instructions file for Claude Code. Keep lean — router to .specs/ files, not a dumping ground. Full project context: .specs/project/project.yaml. If you lose context mid-session, read .specs/project/project.yaml to restore full project context. For a ready-made re-anchor prompt, see .specs/development/prompts.md → ## Re-Anchor Prompt.
In this repository2 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- specpilot-projectSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
No commit unless asked.
- Distinctive: line 16
No push unless asked.
- Very specific: line 17
No deploy/publish/release unless asked.
- Distinctive: line 19
Update specs after change:
- Distinctive: line 23
Never reference file contents without reading first.
- Distinctive: line 24
Never write code or change files unless asked.
- Very specific: line 32
Spec-First: Update .specs/ before writing code.
- Distinctive: line 43
Only then: minimum code that work.
- Distinctive: line 44
Never cut: validation, error handling, security, explicit requirement.
- Distinctive: line 48
No abstraction, interface, factory, or pattern unless asked.
- Distinctive: line 49
No scaffold "for later". Later scaffold itself.
- Distinctive: line 54
Read before write. Never reference code you haven't read.
- Very specific: line 69
If you lose context mid-session, read .specs/project/project.yaml to restore full project context.
≈ “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
CLAUDE.md — SpecPilot SDD CLI
Primary instructions file for Claude Code. Keep lean — router to
.specs/files, not a dumping ground. Full project context:.specs/project/project.yaml.
Project
- Name: SpecPilot SDD CLI
- Stack: TypeScript / Node.js / Commander.js
- Specs location:
.specs/
🔴 Critical Mandates — Never violate, no exceptions
- No commit unless asked.
- No push unless asked.
- No deploy/publish/release unless asked.
- No
.specs/structure changes — content only. - Update specs after change:
- Trivial →
planning/tasks.md - Feature →
project/requirements.md+planning/tasks.md - Architectural → all affected files +
CHANGELOG.md
- Trivial →
- Never reference file contents without reading first. If unread, say so.
- Never write code or change files unless asked. Ask first.
- Spec-first gate (scale to task size):
- Trivial → no gate
- Feature → read 1–2 relevant
.specs/files before coding - Architectural → update all affected specs, present Spec Report, wait for
yes, proceed
🟡 Process Mandates
- Spec-First: Update
.specs/before writing code. - Log all AI interactions in
.specs/development/prompts.mdwith timestamps. - Document decisions in
.specs/development/context.md.
Code Philosophy — Write Only What Needed
- Need exist? No → skip. Say why.
- Already in codebase? → reuse. Not rewrite.
- Stdlib do it? → use it.
- Native or installed dep cover it? → use. No new deps.
- One line do it? → write that.
- Only then: minimum code that work.
- Never cut: validation, error handling, security, explicit requirement.
Code Rules
- No abstraction, interface, factory, or pattern unless asked.
- No scaffold "for later". Later scaffold itself.
- Delete before add.
- Shortest correct diff win.
- Fix cause, not symptom. One guard in shared function beat guard in every caller.
- Boring over clever. Clever = 3am bug.
- Read before write. Never reference code you haven't read.
Context — read on demand by task type
| Task type | Read |
| Session start | .specs/project/project.yaml |
| Feature / bug | + project/requirements.md, planning/tasks.md |
| Architecture | + architecture/architecture.md |
| Tests | + quality/tests.md |
| Security | + security/threat-model.md, security/security-decisions.md |
| Planning | + planning/tasks.md, planning/roadmap.md |
Re-Anchor
If you lose context mid-session, read .specs/project/project.yaml to restore full project context.
For a ready-made re-anchor prompt, see .specs/development/prompts.md → ## Re-Anchor Prompt.
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
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.

