
constitution
by gmliao
A reactive server state programming model with a Swift reference implementation.
SKILL.md
name: constitution description: Create or update project governing principles and development guidelines that guide all subsequent development
Constitution - Project Governing Principles
Overview
Establish foundational principles and development guidelines for the project. These principles guide all subsequent specification, planning, and implementation decisions.
Announce at start: "I'm using the constitution skill to establish project principles."
When to Use
- First step in Spec-Driven Development workflow
- Before creating specifications or implementation plans
- When project principles need to be established or updated
- When starting a new feature or major refactoring
The Process
Step 1: Understand Project Context
- Review existing project structure, documentation, and codebase
- Check if
.specify/memory/constitution.mdalready exists - Review existing principles if updating
Step 2: Create or Update Constitution
Create or update .specify/memory/constitution.md with:
Required Sections:
-
Code Quality Standards
- Code style and formatting guidelines
- Naming conventions
- Documentation requirements
- Code review standards
-
Testing Standards
- Test coverage requirements
- Testing frameworks and patterns
- Test organization and structure
- When tests are required vs optional
-
User Experience Consistency
- Design principles
- Accessibility requirements
- Performance targets
- User interaction patterns
-
Performance Requirements
- Performance benchmarks
- Scalability considerations
- Resource usage limits
- Optimization guidelines
-
Technical Decision Governance
- How principles guide technical choices
- When to deviate from principles
- Decision-making process
- Architecture constraints
Step 3: Reference Project Guidelines
For Swift StateTree project, incorporate:
- Swift 6 and Swift API Design Guidelines
Sendablerequirements for public types- Testing framework: Swift Testing (not XCTest)
- Code comments must be in English
- Cross-platform compatibility priorities
Step 4: Save and Commit
- Save to
.specify/memory/constitution.md - Commit with message:
docs: establish project constitution - Reference in all subsequent development phases
Example Prompt
/speckit.constitution Create principles focused on code quality, testing standards,
user experience consistency, and performance requirements. Include governance for
how these principles should guide technical decisions and implementation choices.
Output Format
The constitution file should be clear, actionable, and reference-able:
# Project Constitution
## Code Quality Standards
...
## Testing Standards
...
## User Experience Consistency
...
## Performance Requirements
...
## Technical Decision Governance
...
Integration with Other Skills
After creating constitution:
- Use
SpecKit/specifyto create functional specifications - Use
SpecKit/planto create implementation plans (constitution guides decisions) - Use
SpecKit/implementto execute (constitution ensures consistency)
Key Principles
- Be specific: Principles should be actionable, not vague
- Be consistent: Align with existing project guidelines (see
AGENTS.md) - Be practical: Principles should guide real decisions
- Be flexible: Allow exceptions when justified
- Be documented: Keep principles updated as project evolves
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
1ヶ月以内に更新
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon

