@AGENTS.md
- Invoke
/graphkeeperwhen retrieving or recording durable repository knowledge. - Claude Code's GraphKeeper adapter owns only its marked block in
CLAUDE.mdand the canonical skill at.claude/skills/graphkeeper/SKILL.md; preserve all other user content. - Restart Claude Code if the current session began before the repository's
.claude/skills/directory was created.
Every feature or behavior change MUST proceed in this order, per the constitution
(.specify/memory/constitution.md) and the canonical AGENTS.md:
- Constitution — amend only if a principle changes (documented rationale + impact report + version bump). Most features need no amendment.
- Spec — write
specs/NNN-short-name/spec.md(goal, prioritized user stories with acceptance scenarios, requirements, success criteria). Get it approved before planning. - Plan — write
specs/NNN-short-name/plan.md(summary, technical context, constitution check, sequence, files changed, risks). - Tasks — write
specs/NNN-short-name/tasks.md(test-first, phase-ordered, grouped by user story). - Implementation — write or update tests FIRST, observe them fail for the intended reason, then implement the smallest change to pass. Do not implement before the spec, plan, and tasks exist.
- Do NOT jump straight to implementation. Stop and produce each artifact in order; the user can approve or redirect at each step.
- Tests are mandatory and precede the code they govern (red → green). Cover both accepted behavior and its rejection boundary.
- Keep changes small, focused, and test-backed. Preserve stable
GKnnndiagnostics, exit codes, schema fields, and append-only semantics. specs/,.specify/,.codex/,history/, andPROGRESS.mdare git-ignored local SDD artifacts. They are handoff material, not commits or package content.- Run the smallest relevant focused test while developing, then
npm run typecheckand the complete suite before handoff.