Create or update a project constitution — the layered ground truth that analytical passes check every spec against. Use when "setup a constitution", "create constitution", "define principles", "configure ground truth", "project rules", "tech stack setup", or bootstrapping a new SpecGraph project.
Guide the user through creating or updating their project constitution. The constitution is the project's ground truth — tech stack, principles, constraints, antipatterns, and process rules. Analytical passes (constitution_check, red_team, etc.) evaluate every spec against it.
Read
references/persona.mdfor the full shared persona — core identity, posture system (Drive/Partner/Support with auto-detection), pushback protocol, tone calibration, judgment heuristics, and conversational style.
specgraph constitution show
Read these files (if they exist) to pre-populate the constitution:
go.mod or package.json — primary language and dependenciesCLAUDE.md or AGENTS.md — existing conventions and constraintsdocs/adr/ or docs/decisions/ — architectural decision records.goreleaser.yaml, Dockerfile, docker-compose.yml — infrastructureproto/ — API standardsTaskfile.yml or Makefile — build toolingDon't read every file — scan for what matters to constitution fields.
Walk through each section conversationally (one at a time in Drive posture, discussion-first in Partner/Support). Present your draft for each section and get approval before moving on.