agentleFS
girishrgirishr/SpecPilot/CLAUDE.md

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.

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
  1. Distinctive:

    No commit unless asked.

    line 15
  2. Distinctive:

    No push unless asked.

    line 16
  3. Very specific:

    No deploy/publish/release unless asked.

    line 17
  4. Distinctive:

    Update specs after change:

    line 19
  5. Distinctive:

    Never reference file contents without reading first.

    line 23
  6. Distinctive:

    Never write code or change files unless asked.

    line 24
  7. Very specific:

    Spec-First: Update .specs/ before writing code.

    line 32
  8. Distinctive:

    Only then: minimum code that work.

    line 43
  9. Distinctive:

    Never cut: validation, error handling, security, explicit requirement.

    line 44
  10. Distinctive:

    No abstraction, interface, factory, or pattern unless asked.

    line 48
  11. Distinctive:

    No scaffold "for later". Later scaffold itself.

    line 49
  12. Distinctive:

    Read before write. Never reference code you haven't read.

    line 54
  13. Very specific:

    If you lose context mid-session, read .specs/project/project.yaml to restore full project context.

    line 69

≈ “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

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

  1. No commit unless asked.
  2. No push unless asked.
  3. No deploy/publish/release unless asked.
  4. No .specs/ structure changes — content only.
  5. Update specs after change:
    • Trivial → planning/tasks.md
    • Feature → project/requirements.md + planning/tasks.md
    • Architectural → all affected files + CHANGELOG.md
  6. Never reference file contents without reading first. If unread, say so.
  7. Never write code or change files unless asked. Ask first.
  8. 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.md with timestamps.
  • Document decisions in .specs/development/context.md.

Code Philosophy — Write Only What Needed

  1. Need exist? No → skip. Say why.
  2. Already in codebase? → reuse. Not rewrite.
  3. Stdlib do it? → use it.
  4. Native or installed dep cover it? → use. No new deps.
  5. One line do it? → write that.
  6. Only then: minimum code that work.
  7. Never cut: validation, error handling, security, explicit requirement.

Code Rules

  1. No abstraction, interface, factory, or pattern unless asked.
  2. No scaffold "for later". Later scaffold itself.
  3. Delete before add.
  4. Shortest correct diff win.
  5. Fix cause, not symptom. One guard in shared function beat guard in every caller.
  6. Boring over clever. Clever = 3am bug.
  7. Read before write. Never reference code you haven't read.

Context — read on demand by task type

Task typeRead
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.

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.