Create or update project governance principles and constitution
Update your project's governance document with new principles, technical standards, or decision-making guidelines. Use when the team agrees on new working agreements or wants to refine existing standards based on project learnings.
/plugin marketplace add retsohuang/retso-marketplace/plugin install spec-kit@retso-marketplaceclaude-sonnet-4-5Create or update your project's constitution with governance principles, technical standards, and decision-making guidelines.
/spec-kit:constitution
No arguments required - the command will read the existing constitution (if any) and help you update it.
Read the current constitution:
cat .claude/spec-kit/memory/constitution.md
If it doesn't exist, inform the user and suggest running /spec-kit:init first.
If a constitution exists, show the user the current:
Ask the user what they want to update or add to the constitution. Common updates include:
Check if there are existing specs in .claude/spec-kit/specs/:
ls -la .claude/spec-kit/specs/
If specs exist, note that you'll validate consistency between the updated constitution and existing specs.
Update .claude/spec-kit/memory/constitution.md with:
Maintain the template structure:
If existing specs are found, check consistency:
Report any inconsistencies and suggest running /spec-kit:analyze for a detailed consistency check.
Display what changed:
✅ Constitution Updated!
Changes Made:
- Updated: {What was changed}
- Added: {What was added}
- Version: {Old Version} → {New Version}
Existing Features: {Count} feature specs found
- Consider running: /spec-kit:analyze
Next Steps:
1. Review the updated constitution: .claude/spec-kit/memory/constitution.md
2. Validate consistency with specs: /spec-kit:analyze
3. Share updates with the team
Tip: Use /spec-kit:analyze to check if existing specs align with updated principles.
Do Include:
Don't Include:
When the team agrees on a new way of working:
### New Principle: Performance Budget
- All pages load in <3s on 3G networks
- Measure with Lighthouse in CI
- Reject PRs that degrade performance >10%
When you learn a better approach:
### Testing Strategy
~~- Write tests when you have time~~
- Unit tests for business logic (required)
- Integration tests for API endpoints (required)
- E2E tests for critical user flows (optional)
- Aim for 80% coverage, enforce 60% minimum
When the project phase changes:
### When to Write a Spec
// MVP Phase: Only for multi-day features
// Scale Phase: For anything >1 day or touching >3 files
- Features requiring architectural decisions
- Changes that affect multiple systems
- Anything requiring stakeholder alignment
/spec-kit:init/spec-kit:analyze after major updates/constitutionCreate or update a project constitution with governance rules. Uses discovery-based approach to generate project-specific rules.