Pattern Audit
Skill name: pattern-audit
Audit pattern-review rule-set health. Use periodically or before sharing rules to inspect .pattern-review rules for schema problems, duplicate IDs, overlap, weak triggers, missing examples, unclear rationale, and maintenance recommendations without changing active rules.
Use this for rule-system maintenance. It is not part of every pattern-review run.
Deterministic helper:
python3 /Users/trent.brown/agentic-development-workflow/scripts/pattern_tool.py audit-rules <pattern-dir>
Workflow:
- Fail if no applicable
.pattern-reviewdirectory is found. Tell the caller to run/pattern-init <intended-scope>. - Display the
.pattern-reviewdirectory being audited before inspecting it. - Run the helper for cheap shape validation.
- Inspect active rules, proposals, deferred entries, and rejected entries for semantic concerns:
- duplicate IDs or surprising overrides;
- near-duplicate rules;
- overlapping scopes/triggers with conflicting obligations;
- weak or missing rationale;
- missing examples or exceptions where they would materially help;
- agentic triggers or reviews that are too vague to audit;
- stale or unclear provenance.
- Write
.pattern-review/audit.mdfor the rule set being audited. - If a rule-system issue should change active rules, write a proposal to
.pattern-review/proposals.yaml. Do not modifyrules.yamldirectly. - Treat schema-invalid active rules as blocking audit findings until fixed through
pattern-promoteor explicit manual repair.