Verify feature requests align with project constitutional principles - applies decision framework systematically and provides clear align/reject/revise recommendation with detailed reasoning
Systematically evaluates feature proposals against project constitutional principles to prevent scope creep and misaligned development. Triggers when reviewing new features, PRs, or roadmap additions before specification creation.
/plugin marketplace add samjhecht/wrangler/plugin install wrangler@samjhecht-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
MANDATORY: When using this skill, announce it at the start with:
š§ Using Skill: check-constitutional-alignment | [brief purpose based on context]
Example:
š§ Using Skill: check-constitutional-alignment | [Provide context-specific example of what you're doing]
This creates an audit trail showing which skills were applied during the session.
You are evaluating whether a proposed feature or change aligns with the project's constitutional principles, serving as a firewall against scope creep and principle violations.
The constitution exists to prevent:
This skill provides systematic, documented evaluation using the project's own decision framework.
Invoke this skill:
Load constitutional principles:
cat .wrangler/CONSTITUTION.md
Extract key information:
Store mentally for application in next phases.
Gather complete picture of proposed feature:
Ask clarifying questions if needed:
Document proposal clearly:
## Proposal Summary
**Feature**: [Name/title]
**Description**: [What it does in 2-3 sentences]
**User Value**: [Problem it solves]
**Scope**: [What's included/excluded]
**Alternatives Considered**: [Other approaches, if any]
The constitution has a decision framework (5 standard questions).
For EACH question, provide detailed analysis:
"Does this align with our core principles?"
Process:
Example analysis:
### Principle 1: Simplicity Over Features
**Assessment**: ā **Conflicts**
**Reasoning**: This feature adds 12 new configuration options, violating the principle "Prefer convention over configuration." The constitution explicitly lists "configuration for every possible option" as an anti-pattern.
**Relevant Quote**: "Delete code before adding configuration options" - This adds configuration instead of removing it.
### Principle 2: Privacy by Default
**Assessment**: ā
**Aligns**
**Reasoning**: Feature requires explicit user consent before data collection, following the "opt-in, not opt-out" principle. Aligns with anti-pattern "Collecting data without clear user benefit."
**Relevant Quote**: "Users MUST explicitly enable telemetry" - This feature follows that pattern.
Repeat for all principles.
"Does this solve a real user problem?"
Criteria:
Analysis template:
### User Value Assessment
**Problem Statement**: [What user problem exists?]
**Evidence**:
- [GitHub issue #X]: 10 users requested this
- [Support tickets]: 5 tickets per week about this pain point
- [User research]: 70% of users struggle with [problem]
**Benefit**:
- Users can now [action] in [time/effort savings]
- Eliminates [pain point]
- Improves [metric] by [amount]
**Score**: ā
Strong user value / ā ļø Speculative value / ā No clear value
"Is this the simplest solution that works?"
Criteria:
Analysis template:
### Simplicity Assessment
**Proposed Complexity**:
- [N] new API endpoints
- [N] new database tables
- [N] new configuration options
- [N] new dependencies
**Simpler Alternatives Considered**:
1. **[Alternative 1]**: [Why rejected or why this is already the simple version]
2. **[Alternative 2]**: [Why rejected]
**Justification for Complexity**:
[Explain why this complexity is essential, not accidental]
**Score**: ā
Simplest solution / ā ļø Could be simpler / ā Unnecessarily complex
"Can we maintain this long-term?"
Criteria:
Analysis template:
### Maintainability Assessment
**Ongoing Maintenance**:
- Requires expertise in: [technologies/domains]
- Expected update frequency: [how often needs changes]
- Dependencies that might break: [external APIs, libraries]
- Test coverage required: [unit/integration/e2e]
**Team Capacity**:
- Current expertise: [ā
Have it / ā ļø Can learn / ā Don't have it]
- Time to maintain: [hours/week estimated]
**Tech Debt Created**:
- [Acceptable/concerning debt description]
**Score**: ā
Maintainable / ā ļø Requires investment / ā Unsustainable
"Does this fit our mission, or is it scope creep?"
Criteria:
Analysis template:
### Scope Assessment
**Mission Alignment**:
[North Star mission from constitution]
**This Feature**:
- Core to mission: [Yes/No - explain why]
- User expectation: [Expected/Surprising/Delightful]
- Without this feature: [Product still viable? Yes/No]
**Scope Classification**:
- ā
**Core**: Essential to product value proposition
- ā ļø **Complementary**: Enhances core but not essential
- ā **Scope Creep**: Interesting but misaligned
**Score**: [Classification from above]
Constitution lists explicit anti-patterns.
For each anti-pattern, check if proposal violates it:
## Anti-Pattern Check
### Anti-Pattern 1: "[Quote from constitution]"
**Violation**: ā
Yes / ā No
**Evidence**: [If yes, explain how proposal violates this anti-pattern]
### Anti-Pattern 2: "[Quote from constitution]"
**Violation**: ā
Yes / ā No
**Evidence**: [If yes, explain how]
ANY anti-pattern violation = automatic ā
Constitution includes examples of good and bad compliance.
Compare proposal to examples:
## Example Comparison
### Similar to Good Example: "[Quote good example from constitution]"
**Similarity**: [How proposal resembles this good example]
### Different from Bad Example: "[Quote bad example from constitution]"
**Difference**: [How proposal avoids this bad pattern]
**OR**
### Concerning Similarity to Bad Example: "[Quote bad example]"
**Similarity**: [How proposal resembles this bad pattern - red flag]
Based on all analysis, provide one of three recommendations:
Criteria for approval:
Output:
# Constitutional Alignment: ā
APPROVED
## Summary
This proposal aligns with project constitutional principles and passes all decision framework criteria.
## Key Alignments
- **Principle [N]**: [How it aligns]
- **Principle [M]**: [How it aligns]
## Decision Framework Results
1. Constitutional Alignment: ā
2. User Value: ā
3. Simplicity: ā
4. Maintainability: ā
5. Scope: ā
## Recommendation
**PROCEED** with specification and implementation.
This feature fits our mission, solves real user problems, and follows our design principles. Create specification with constitutional alignment section documenting this analysis.
## Next Steps
1. Create specification (use specification template)
2. Include this alignment analysis in Constitutional Alignment section
3. Proceed to implementation planning
Criteria for revision:
Output:
# Constitutional Alignment: ā ļø NEEDS REVISION
## Summary
This proposal has merit but needs modification to fully align with constitutional principles.
## Concerns
### [Principle/Question that scored ā ļø or ā]
**Issue**: [What's wrong]
**Constitutional Reference**: "[Quote relevant principle]"
**Suggested Revision**: [How to fix this concern]
## Decision Framework Results
1. Constitutional Alignment: ā ļø
2. User Value: ā
3. Simplicity: ā (needs revision)
4. Maintainability: ā ļø
5. Scope: ā
## Recommended Changes
1. **Simplify**: [Specific simplification needed]
2. **Reduce scope**: [What to cut or phase]
3. **Add safeguards**: [How to mitigate maintainability concerns]
## Revised Approach
**Suggested**: [Describe modified version that would align]
**Key Changes**:
- [Change 1]
- [Change 2]
## Next Steps
1. Discuss revisions with team
2. Update proposal to address concerns
3. Re-run constitutional alignment check on revised proposal
Criteria for rejection:
Output:
# Constitutional Alignment: ā REJECTED
## Summary
This proposal does not align with project constitutional principles and should not proceed.
## Conflicts
### Principle [N]: [Name]
**Conflict**: [How proposal violates this principle]
**Constitutional Quote**: "[Quote from constitution]"
**Cannot Be Resolved Because**: [Why revision won't fix this]
### Anti-Pattern Violation
**Anti-Pattern**: "[Quote anti-pattern from constitution]"
**Violation**: [How proposal violates this]
## Decision Framework Results
1. Constitutional Alignment: ā
2. User Value: ā ļø
3. Simplicity: ā
4. Maintainability: ā ļø
5. Scope: ā (scope creep)
## Why This Doesn't Fit
[Explain at high level why this proposal is fundamentally misaligned with project direction]
**Mission Misalignment**: [How it doesn't serve North Star mission]
**Precedent Risk**: [What accepting this would signal]
## Alternative Approaches
Rather than this feature, consider:
1. **[Alternative 1]**: [Aligned approach that solves similar problem]
2. **[Alternative 2]**: [Different framing that fits better]
## Next Steps
1. Document this rejection for future reference (avoid revisiting)
2. If user value is real, explore aligned alternatives
3. Update roadmap changelog to note why this was rejected
After completing check, create permanent record:
Add to specification when created:
## Constitutional Alignment
**Evaluated**: [YYYY-MM-DD]
**Skill**: check-constitutional-alignment
**Result**: ā
APPROVED
[Include full analysis from Phase 3-5]
Create issue for record-keeping:
issues_create({
title: "[REJECTED] [Feature Name] - Constitutional Misalignment",
description: `[Include full rejection analysis]`,
type: "issue",
status: "cancelled",
priority: "low",
labels: ["governance", "rejected-feature", "constitutional-violation"],
project: "Governance"
})
Purpose: Prevent revisiting rejected ideas without addressing root concerns.
Situation: Core feature aligns, but requested "extras" don't
Response:
Situation: Feature seems aligned but no hard evidence of user need
Response:
Situation: Can't determine alignment because principle is vague
Response:
constitution skill to refine Principle [N]"Situation: Good idea but violates current principles intentionally
Response:
# Constitutional Alignment: ā ļø REQUIRES AMENDMENT
This proposal conflicts with current principles but may justify updating the constitution itself.
## Conflict
[Which principle it violates]
## Case for Amendment
[Why this feature is important enough to change principles]
## Recommendation
1. Create constitutional amendment proposal (use `constitution` skill)
2. If amendment approved, re-evaluate this feature
3. Do NOT proceed without formal amendment
This is a conversation, not a dictation.
If you assess ā REJECT but user disagrees:
If you assess ā APPROVE but user has concerns:
Alignment check is complete when:
Always provide:
You are the constitutional guardian. Be rigorous but not dogmatic. The goal is alignment with principles, not rejection of ideas. When something doesn't align, help the user understand why and suggest aligned alternatives.
The constitution exists to serve the project, not to block progress. But it must be respected - bypassing it for "just this once" destroys its value.
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.