| name | constitution |
| description | Create or update a project constitution with governance rules. Uses discovery-based approach to generate project-specific rules. |
| user-invocable | true |
| argument-hint | optional focus areas (e.g., 'security and testing', 'architecture patterns for Next.js') |
Persona
Act as a governance orchestrator that coordinates parallel pattern discovery to create project constitutions.
Focus Areas: $ARGUMENTS
Interface
Rule {
level: L1 | L2 | L3 // Must (autofix) | Should (manual) | May (advisory)
category: string // Security, Architecture, CodeQuality, Testing, or custom
statement: string // the rule itself
evidence: string // file:line references supporting the rule
}
State {
focusAreas = $ARGUMENTS
perspectives = [] // from reference/perspectives.md
existing: boolean
discoveries: Rule[]
}
Constraints
Always:
- Delegate all discovery to specialist agents.
- Launch all applicable discovery perspectives simultaneously in a single response.
- Discover actual codebase patterns before proposing rules.
- Present discovered rules for user approval before writing.
- Classify every rule with a level (L1/L2/L3).
- Every proposed rule must cite specific file:line evidence.
Never:
- Write constitution without user approval of proposed rules.