Periodically reviews all constitutional rules to identify redundancy, excessive breadth, and quality issues
This skill performs periodic audits of the entire constitution (RULES.md) to maintain quality over time. It identifies redundant rules, overly broad rules, and potentially unused rules, then generates recommendations for improvement.
Rules that overlap significantly with other rules.
Example:
Rules using general terms without specific criteria.
Example:
Rules that may be outdated or unnecessary.
Example:
{
"totalRules": 12,
"totalIssues": 5,
"redundant": [
{
"rule1": "R-003",
"rule2": "R-007",
"similarity": "85%",
"suggestion": "Consider merging R-003 and R-007"
}
],
"broad": [
{
"ruleId": "R-001",
"reason": "Uses general terms without specific constraints",
"suggestion": "Add specific validation criteria"
}
],
"unused": [
{
"ruleId": "R-010",
"reason": "Too short and lacks enforcement language",
"suggestion": "Expand or consider removal"
}
]
}
Input: 10 well-defined, specific, non-overlapping rules
Output:
# Rule Audit Report
**Date:** 2026-04-01
**Total Rules:** 10
**Issues Found:** 0
## ✅ All Clear
No issues found. The constitution is in good health!
Input: 8 rules with some overlap and vagueness
Output:
# Rule Audit Report
**Date:** 2026-04-01
**Total Rules:** 8
**Issues Found:** 3
## 🔄 Redundant Rules (1)
- **R-003** and **R-005** are 82% similar
- Suggestion: Consider merging R-003 and R-005
## 🌐 Overly Broad Rules (2)
- **R-001**: Rule uses general terms without specific constraints
- Suggestion: Add specific validation criteria or constraints
- **R-007**: Rule uses general terms without specific constraints
- Suggestion: Add specific validation criteria or constraints
This skill is run periodically (weekly/monthly) or on demand:
# Run audit
npm run audit
# Or via gitclaw
gitclaw run audit
memory/audit-report.md# Run audit and view report
npm run audit
# Output
🔍 Agent Constitution - Rule Audit
📘 [AuditorAgent] Auditing 4 rules...
⚠️ [AuditorAgent] Found 1 potential issues
# Rule Audit Report
[Full report displayed and saved]
agents/AuditorAgent.jsfindRedundantRules() - Similarity detectionfindOverlyBroadRules() - Specificity analysisfindUnusedRules() - Usage detectiongenerateAuditReport() - Report formattingexecute() - Main audit logicRecommended Schedule:
The audit skill identifies issues but does not automatically fix them. All recommendations require human review and decision. This maintains human oversight of the constitution.