Creates, updates, or validates .constitution.md file for Spec Kit workflow, defining project mission, principles, constraints, quality standards, and checking codebase alignment.
npx claudepluginhub melodic-software/claude-code-plugins --plugin spec-driven-developmentThis skill is limited to using the following tools:
Create, update, or validate the project constitution file for the Spec Kit workflow.
Authors enforceable project constitutions for greenfield projects with testable principles, enforcement mechanisms, rationale, and amendment processes.
Guides SpecKit workflow for constitution-driven feature development: phases for constitution, specify, clarify, plan, tasks, checklists in structured .specify/ directory.
Orchestrates GitHub Spec Kit 5-phase workflow: Constitution → Specify → Plan → Tasks → Implement. Generates markdown templates and provides phase guidance for spec-driven development.
Share bugs, ideas, or general feedback.
Create, update, or validate the project constitution file for the Spec Kit workflow.
The constitution (.constitution.md) defines project principles, constraints, and standards that guide all specification and implementation work. It's Phase 0 of the Spec Kit workflow.
# Project Constitution
## Mission
[One sentence describing the project's purpose]
## Principles
1. **[Principle Name]**: [Description]
2. **[Principle Name]**: [Description]
## Architecture Constraints
- [Technology constraint]
- [Pattern constraint]
- [Integration constraint]
## Quality Standards
- **Testing:** [Testing requirements]
- **Documentation:** [Documentation requirements]
- **Code Style:** [Style requirements]
## Team Conventions
- [Development workflow]
- [Communication patterns]
- [Review process]
Check for Existing
.constitution.mdGather Project Context
Generate Constitution
Save
.constitution.mdLoad Existing
Analyze Changes
Suggest Updates
Load Constitution
.constitution.mdCheck Structure
Check Alignment
--init - Create new constitution (default)--update - Update existing constitution--validate - Validate constitution and check alignment--force - Overwrite existing without prompt# Create new constitution
/spec-driven-development:constitution --init
# Update existing
/spec-driven-development:constitution --update
# Validate alignment
/spec-driven-development:constitution --validate
# Force overwrite
/spec-driven-development:constitution --init --force
# Project Constitution
## Mission
Build a secure, scalable e-commerce platform that enables small businesses
to sell products online with minimal technical expertise required.
## Principles
1. **Security First**: All features must consider security implications.
User data protection is non-negotiable.
2. **Simplicity Over Cleverness**: Choose boring, proven solutions over
novel approaches. Code should be readable by junior developers.
3. **Vertical Slices**: Features are implemented as complete vertical
slices, not horizontal layers. Each feature is independently deployable.
4. **Test-Driven**: All business logic has unit tests. Integration tests
cover critical paths. No feature merges without passing tests.
## Architecture Constraints
- **Language:** TypeScript (strict mode) for all application code
- **Database:** PostgreSQL for persistent storage
- **API Style:** REST with OpenAPI specifications
- **Authentication:** OAuth 2.0 + JWT tokens
- **Deployment:** Docker containers on Kubernetes
## Quality Standards
- **Test Coverage:** Minimum 80% for business logic
- **Documentation:** All public APIs documented with examples
- **Code Review:** All changes require one approval
- **Performance:** API responses under 200ms (p95)
## Team Conventions
- **Branching:** Feature branches from main, squash merge
- **Commits:** Conventional commits (feat:, fix:, docs:)
- **PRs:** Include description, test plan, screenshots if UI
- **Releases:** Semantic versioning, automated changelog
# Constitution Validation Report
**File:** .constitution.md
**Status:** ⚠️ VALID WITH WARNINGS
## Structure Check
✓ Mission section present
✓ Principles section present
✓ Architecture Constraints present
✓ Quality Standards present
✓ Team Conventions present
## Principle Conflicts
None detected
## Alignment Check
✓ TypeScript strict mode enabled (matches constraint)
✓ PostgreSQL in use (matches constraint)
⚠️ Test coverage at 72% (below 80% threshold)
⚠️ Some API endpoints missing OpenAPI docs
## Recommendations
1. Increase test coverage to meet 80% threshold
2. Add OpenAPI docs for: /api/orders/*, /api/users/*
/spec-driven-development:speckit-run - Full 5-phase workflow/spec-driven-development:specify - Generate specification (Phase 1)/spec-driven-development:validate - Validate specification