speckit-constitution
Defines and enforces high-level project principles and standards.
Install
mkdir -p .claude/skills/speckit-constitution && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13012" && unzip -o skill.zip -d .claude/skills/speckit-constitution && rm skill.zipInstalls to .claude/skills/speckit-constitution
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in syncKey capabilities
- →Create or update the project constitution
- →Gather principle inputs from the user interactively
- →Ensure all dependent templates stay in sync
- →Validate principle consistency
- →Report changes made to the constitution
How it works
The skill loads an existing constitution, gathers new principle inputs, updates the constitution document, and then synchronizes dependent templates to reflect the changes.
Inputs & outputs
When to use speckit-constitution
- →Updating project standards
- →Establishing quality gates
- →Defining technical constraints
- →Managing project principles
About this skill
Speckit-Constitution: Project Principles Management
Purpose
Create or update the project constitution - a set of non-negotiable principles and standards that govern all specifications, plans, and implementations in the project.
What is a Constitution?
The constitution (specify/memory/constitution.md) defines:
- MUST principles: Non-negotiable requirements (always enforced)
- SHOULD principles: Strong recommendations (justify if violated)
- Project standards: Coding style, architecture patterns, quality gates
- Technical constraints: Required/forbidden technologies
- Quality gates: Review requirements, testing standards, documentation needs
Prerequisites
- Project repository initialized
.specify/directory structure (created by setup scripts)
What This Skill Does
- Loads existing constitution (if exists)
- Gathers principle inputs from user interactively
- Creates/updates constitution document
- Ensures all dependent templates stay in sync
- Validates principle consistency
- Reports changes made
Key Principles
Constitution Authority
- Non-negotiable within scope: All specs and plans must comply
- Explicit violations: Must be justified in writing
- Cannot be silently ignored: Tools check compliance automatically
- Change via update: Modify constitution, don't violate it
Template Synchronization
When constitution updates:
- Spec template updates to reflect new quality gates
- Plan template updates to enforce new technical constraints
- Task template updates to include new validation steps
- Checklist templates update to check new principles
Execution Flow
All execution logic is now contained within this skill. The skill handles:
- Constitution loading/creation
- Principle gathering
- Template synchronization
Quick Summary
- Load existing constitution (if exists) from
.specify/memory/constitution.md - Gather inputs:
- User-provided principles
- Interactive questions if needed
- Technical constraints
- Quality standards
- Create/update constitution:
- Organize principles by category
- Mark MUST vs SHOULD
- Document rationale
- Sync dependent templates:
- Update spec template
- Update plan template
- Update task template
- Update checklist templates
- Report changes: List new/modified principles
Constitution Structure
Recommended Sections
# Project Constitution
## Core Principles
### Architecture
- [MUST] Use microservices pattern for backend services
- [SHOULD] Prefer REST over GraphQL for public APIs
### Security
- [MUST] All data encrypted at rest and in transit
- [MUST] Authentication required for all protected resources
- [SHOULD] Use OAuth2 for third-party integrations
### Quality
- [MUST] All code must pass linting before commit
- [MUST] Test coverage ≥80% for all new code
- [SHOULD] Performance budgets defined for critical paths
### Technology Constraints
- [MUST] Use TypeScript (no JavaScript)
- [MUST] PostgreSQL for relational data
- [FORBIDDEN] MongoDB, MySQL (use PostgreSQL instead)
### Documentation
- [MUST] All public APIs have OpenAPI specs
- [SHOULD] All components have README files
- [SHOULD] Architecture decisions recorded in ADRs
## Quality Gates
### Specification Phase
- [ ] No implementation details in spec.md
- [ ] All success criteria measurable
- [ ] All user stories have acceptance criteria
### Planning Phase
- [ ] All design decisions documented in research.md
- [ ] Constitution compliance validated
- [ ] Data model complete
### Implementation Phase
- [ ] All tests pass
- [ ] Linting clean
- [ ] Code review approved
Common Constitution Topics
Architecture Patterns
- Microservices vs monolith
- Layered architecture requirements
- Dependency injection patterns
- Event-driven vs request/response
Security Standards
- Authentication mechanisms
- Authorization patterns
- Data encryption requirements
- Secret management
Quality Standards
- Test coverage requirements
- Code review policies
- Documentation standards
- Performance budgets
Technology Stack
- Required languages/frameworks
- Approved libraries
- Forbidden technologies
- Version constraints
Development Process
- Branching strategy
- Commit message format
- PR requirements
- Release process
Interactive Constitution Creation
If user doesn't provide full constitution, ask:
- Architecture: "What architectural patterns are required?" (microservices, monolith, serverless, etc.)
- Security: "What security requirements are non-negotiable?" (encryption, auth, compliance, etc.)
- Quality: "What quality gates must pass?" (tests, coverage, reviews, etc.)
- Technology: "Are there required or forbidden technologies?" (languages, frameworks, databases, etc.)
- Process: "What development processes are mandatory?" (reviews, docs, versioning, etc.)
Provide options with recommendations for each.
Success Indicators
Constitution is ready when:
- ✅ Principles clearly marked as MUST or SHOULD
- ✅ Rationale provided for critical constraints
- ✅ Quality gates explicitly defined
- ✅ Technology constraints documented
- ✅ All dependent templates synced
- ✅ No contradictory principles
- ✅ Enforcement mechanism clear
Output
.specify/memory/
└── constitution.md # Project constitution
Updated templates:
- .specify/templates/spec-template.md
- .specify/templates/plan-template.md
- .specify/templates/tasks-template.md
- .specify/templates/checklist-template.md
Constitution Enforcement
During Specification
- Spec template includes constitution-mandated sections
- Quality checklist validates constitution compliance
- No forbidden technologies mentioned
During Planning
- Plan template includes Constitution Check section
- All MUST principles validated
- Violations require written justification
- Research.md references constitution decisions
During Implementation
- Task template includes constitution validation steps
- Pre-commit hooks enforce code standards
- CI/CD validates quality gates
- Reviews check compliance
Common Mistakes
❌ Too Many MUST Principles
Wrong: 50 MUST requirements (impossible to enforce) Right: 5-10 critical MUST requirements, rest are SHOULD
❌ Vague Principles
Wrong: "Code should be clean and maintainable" Right: "All functions <50 lines, test coverage ≥80%, ESLint clean"
❌ No Rationale
Wrong: "MUST use PostgreSQL" (why?) Right: "MUST use PostgreSQL (team expertise, ACID guarantees required, proven scale)"
❌ Contradictory Principles
Wrong: "MUST use microservices" + "MUST deploy as single binary" Right: Resolve contradiction before finalizing
❌ Unenforced Principles
Wrong: Constitution exists but never checked Right: All tools validate constitution compliance automatically
Example Constitution
# Project Constitution
## Architecture Principles
- [MUST] Use multi-agent system with OpenAI Agents SDK
- [MUST] Follow Composition Root dependency injection pattern
- [SHOULD] Prefer deterministic flows (low temperature) for sales agents
## Security Principles
- [MUST] Never expose internal identifiers to external systems
- [MUST] All secrets in environment variables, never committed
- [MUST] Authentication required for all customer-facing interactions
## Quality Principles
- [MUST] All code passes `npm test` before commit
- [MUST] All code passes `npm run lint` before commit
- [SHOULD] Test coverage ≥80% for critical paths
## Technology Constraints
- [MUST] TypeScript (no JavaScript)
- [MUST] MongoDB for persistence
- [MUST] OpenAI Agents SDK (no custom routing verbs)
- [FORBIDDEN] Custom SDK abstractions (YAGNI)
## Documentation Standards
- [MUST] All agents documented in README
- [SHOULD] Complex tools include usage examples
- [SHOULD] Architecture decisions in docs/architecture/
Related Skills
- speckit - Main workflow (uses constitution throughout)
- speckit-specify - Specification creation (validates against constitution)
- speckit-plan - Technical planning (validates against constitution)
When not to use it
- →When a project repository is not initialized
- →When the `.specify/` directory structure is not present
Prerequisites
Limitations
- →Constitution principles are non-negotiable within scope
- →Explicit violations must be justified in writing
- →Cannot be silently ignored as tools check compliance automatically
How it compares
This skill centralizes and automates the management of project principles and their propagation to templates, unlike manual updates across various documents.
Compared to similar skills
speckit-constitution side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| speckit-constitution (this skill) | 0 | 5mo | No flags | Intermediate |
| pmbok-project-management | 38 | 9mo | No flags | Intermediate |
| project-planner | 32 | 9mo | Review | Intermediate |
| spec-kit-workflow | 11 | 8mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by ivfarias
View all by ivfarias →You might also like
pmbok-project-management
jgtolentino
Comprehensive PMP/PMBOK project management methodologies and best practices. Use this skill when users need guidance on project management processes, templates, knowledge areas, process groups, tools, techniques, or certification preparation. Covers all 10 PMBOK Knowledge Areas and 5 Process Groups with practical templates, frameworks, and industry-standard approaches. Includes risk management, stakeholder engagement, schedule management, cost control, quality assurance, and resource planning.
project-planner
adrianpuiu
Comprehensive project planning and documentation generator for software projects. Creates structured requirements documents, system design documents, and task breakdown plans with implementation tracking. Use when starting a new project, defining specifications, creating technical designs, or breaking down complex systems into implementable tasks. Supports user story format, acceptance criteria, component design, API specifications, and hierarchical task decomposition with requirement traceability.
spec-kit-workflow
jmanhype
Guides specification-driven development workflow. Automatically invoked when discussing new features, specifications, technical planning, or implementation tasks. Ensures proper workflow phases (specify → clarify → plan → checklist → tasks → analyze → implement).
product-manager-toolkit
davila7
Comprehensive toolkit for product managers including RICE prioritization, customer interview analysis, PRD templates, discovery frameworks, and go-to-market strategies. Use for feature prioritization, user research synthesis, requirement documentation, and product strategy development.
planning-agent
parcadei
Planning agent that creates implementation plans and handoffs from conversation context
pdd
mikeyobrien
Transforms a rough idea into a detailed design document with implementation plan. Follows Prompt-Driven Development — iterative requirements clarification, research, design, and planning.