Verify integrity and completeness of governance framework - checks all required files exist, are properly formatted, have current metrics, and align with each other
Checks all governance files exist, are properly structured, and reference each other correctly. Triggers when you need to validate framework integrity or before making governance changes.
/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: verify-governance | [brief purpose based on context]
Example:
š§ Using Skill: verify-governance | [Provide context-specific example of what you're doing]
This creates an audit trail showing which skills were applied during the session.
You are verifying the integrity and completeness of the project's governance framework, ensuring all components are present, properly formatted, and mutually consistent.
Governance frameworks can drift over time:
This skill performs systematic verification to detect and report issues.
Check all required governance files exist:
# Core governance files
echo "=== Checking Core Governance Files ==="
[ -f .wrangler/CONSTITUTION.md ] && echo "ā Constitution exists" || echo "ā MISSING: Constitution"
[ -f .wrangler/ROADMAP.md ] && echo "ā Roadmap exists" || echo "ā MISSING: Roadmap"
[ -f .wrangler/ROADMAP_NEXT_STEPS.md ] && echo "ā Next Steps exists" || echo "ā MISSING: Next Steps"
# Process documentation
echo "=== Checking Process Documentation ==="
[ -f .wrangler/specifications/README.md ] && echo "ā Specs README exists" || echo "ā MISSING: Specs README"
[ -f .wrangler/issues/README.md ] && echo "ā Issues README exists" || echo "ā MISSING: Issues README"
# Templates
echo "=== Checking Templates ==="
[ -f .wrangler/templates/issue.md ] && echo "ā Issue template exists" || echo "ā MISSING: Issue template"
[ -f .wrangler/templates/specification.md ] && echo "ā Spec template exists" || echo "ā MISSING: Spec template"
Report missing files: If any files missing, suggest running initialize-governance skill.
Read constitution file:
cat .wrangler/CONSTITUTION.md
Verify structure:
Check for ambiguity:
Scan principles for red flags:
Report findings:
## Constitution Validation
### ā
Structure Complete
- Version: [X.Y.Z]
- [N] principles defined
- Decision framework present
- Amendment process documented
### ā ļø Potential Ambiguities
- **Principle 2**: Uses "simple" without concrete definition
- **Principle 4**: Missing anti-pattern examples
- **Principle 5**: No measurable criteria
### š” Recommendation
Consider using `constitution` skill to refine ambiguous principles.
Read roadmap file:
cat .wrangler/ROADMAP.md
Verify structure:
Verify constitutional alignment:
Check that roadmap references constitution:
CONSTITUTION.mdReport findings:
## Roadmap Validation
### ā
Structure Complete
- [N] phases defined
- All sections present
- Links to constitution: ā
### ā ļø Issues Found
- Phase 2 missing success metrics
- Changelog has no entries (might be new)
### š Phase Summary
- **Phase 1**: [N] features, Timeline: [dates]
- **Phase 2**: [N] features, Timeline: [dates]
Read next steps file:
cat .wrangler/ROADMAP_NEXT_STEPS.md
Verify structure:
Verify metrics are current:
Check if percentages and counts seem reasonable:
Report findings:
## Next Steps Validation
### ā
Structure Complete
- All three categories present
- Prioritized roadmap included
- Quick wins identified
### ā ļø Metrics Status
- Overall completion: ~[N]%
- Last Updated: [DATE]
- **Warning**: Last updated >30 days ago - metrics may be stale
### š” Recommendation
Run `refresh-metrics` skill to update status counts.
Check that documents reference each other correctly:
Constitution ā Roadmap:
# Check if roadmap mentions constitution
grep -i "constitution" .wrangler/ROADMAP.md
Roadmap ā Next Steps:
# Check if roadmap changelog mentions next steps updates
grep -i "next.steps\|ROADMAP_NEXT" .wrangler/ROADMAP.md
Next Steps ā Constitution:
# Check if next steps references principles
grep -i "constitution\|principle" .wrangler/ROADMAP_NEXT_STEPS.md
Verify link integrity:
Report findings:
## Cross-Document Consistency
### ā
Links Verified
- Constitution ā Roadmap: ā
- Roadmap ā Next Steps: ā
- READMEs reference core docs: ā
### ā ļø Issues
- Next Steps missing reference to Constitution in [section]
- Roadmap changelog has no entry for latest Next Steps update
Check issues README:
cat .wrangler/issues/README.md
Verify sections:
Check specifications README:
cat .wrangler/specifications/README.md
Verify sections:
Report findings:
## README Validation
### Issues README
- ā
All sections present
- ā ļø Metrics need update (shows placeholders)
### Specifications README
- ā
All sections present
- ā
Governance integration documented
- ā ļø Current phase section shows [Phase Name] placeholder
Check issue template:
cat .wrangler/templates/issue.md
Verify includes:
Check specification template:
cat .wrangler/templates/specification.md
Verify includes:
Report findings:
## Template Validation
### Issue Template
- ā
All required sections present
- ā
Includes governance guidance
### Specification Template
- ā
All required sections present
- ā
Constitutional Alignment section included
- ā
Decision Framework verification included
Compile all findings into structured report:
# Governance Framework Verification Report
**Date**: [YYYY-MM-DD]
**Project**: [Project Name]
---
## Executive Summary
- **Status**: [ā
HEALTHY / ā ļø NEEDS ATTENTION / ā CRITICAL ISSUES]
- **Missing Files**: [N]
- **Structural Issues**: [N]
- **Stale Metrics**: [Yes/No]
- **Consistency Issues**: [N]
---
## Detailed Findings
### File Existence [ā
/ā ļø/ā]
**Core Governance**:
- [ā
/ā] Constitution
- [ā
/ā] Roadmap
- [ā
/ā] Next Steps
**Process Documentation**:
- [ā
/ā] Issues README
- [ā
/ā] Specifications README
**Templates**:
- [ā
/ā] Issue template
- [ā
/ā] Specification template
### Constitution [ā
/ā ļø/ā]
**Structure**: [Assessment]
**Ambiguity Check**: [Issues found]
**Recommendations**: [List]
### Roadmap [ā
/ā ļø/ā]
**Structure**: [Assessment]
**Phase Coverage**: [N phases defined]
**Constitutional Links**: [ā
/ā]
**Recommendations**: [List]
### Next Steps [ā
/ā ļø/ā]
**Structure**: [Assessment]
**Metrics Status**: [Assessment]
**Last Updated**: [DATE]
**Recommendations**: [List]
### Cross-Document Consistency [ā
/ā ļø/ā]
**Link Integrity**: [Assessment]
**Mutual References**: [Assessment]
**Recommendations**: [List]
### READMEs [ā
/ā ļø/ā]
**Issues README**: [Assessment]
**Specifications README**: [Assessment]
**Recommendations**: [List]
### Templates [ā
/ā ļø/ā]
**Issue Template**: [Assessment]
**Specification Template**: [Assessment]
**Recommendations**: [List]
---
## Priority Actions
### š“ Critical (Do Now)
1. [Action 1]
2. [Action 2]
### š” Important (Do Soon)
1. [Action 1]
2. [Action 2]
### š¢ Nice to Have
1. [Action 1]
2. [Action 2]
---
## Recommended Skills
Based on findings, consider running:
- [ ] `initialize-governance` - If missing files
- [ ] `constitution` - If ambiguity detected
- [ ] `refresh-metrics` - If metrics >30 days old
- [ ] `check-constitutional-alignment` - To verify specs
---
**Next Verification**: [DATE + 30 days]
Check last update dates:
# Extract dates from files
grep "Last Updated" .wrangler/ROADMAP_NEXT_STEPS.md
grep "Last Updated" .wrangler/issues/README.md
grep "Last Updated" .wrangler/specifications/README.md
# Compare with current date
# If >30 days, flag as stale
Check for broken references:
# Find all markdown links
grep -r "\[.*\](.*.md)" .wrangler/specifications/
grep -r "\[.*\](.*.md)" .wrangler/issues/
# Verify linked files exist
# Report any 404s
Verify version matches history:
# Extract version from frontmatter
version=$(grep "^version:" .wrangler/CONSTITUTION.md | cut -d'"' -f2)
# Extract latest version from history
latest_history=$(grep "^- \*\*.*\*\*" .wrangler/CONSTITUTION.md | head -1)
# Compare
# Report if mismatch
Situation: Only some governance files exist
Response:
initialize-governance to complete setup"Situation: Metrics >90 days old
Response:
refresh-metrics immediatelySituation: Specifications don't have constitutional alignment sections
Response:
Situation: Roadmap says Phase 2, but Next Steps shows Phase 1 features incomplete
Response:
Verification is complete when:
Fix: Update specification template, add sections to existing specs
Command:
# Find specs missing constitutional alignment
grep -L "Constitutional Alignment" .wrangler/specifications/*.md
Fix: Run refresh-metrics skill
Fix: Update link syntax to use relative paths
Pattern: Use ../.wrangler/CONSTITUTION.md not absolute paths
Fix: Run constitution skill for Socratic refinement
Fix: Synchronize by updating whichever is outdated
Process:
Always provide:
Governance frameworks require maintenance. Running this verification monthly helps catch drift early before it becomes problematic. When you find issues, provide specific, actionable fixes - not just "this is wrong."
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.