Corrections Audit Skill
Analyze corrections.md for trends, recurring patterns, and actionable insights.
When to Use
- Loop 2 (Incremental) cadence: after every 3+ corrections are logged
- When the same correction category appears 3+ times
- During
/diamond-assess if corrections gate has findings
- Before starting a new diamond at the same scale as a previously corrected one
Workflow
Load corrections: Read .claude/memory/corrections.md
- If empty or no corrections logged: report "No corrections to audit" and stop
Categorize by frequency:
- Group corrections by
Category (bias, security, engineering, process, communication)
- Group by
Scope (discovery, delivery, orchestration, quality)
- Count occurrences per group
Detect recurring patterns:
Check origin distribution (APEX alignment):
- Count corrections by
Origin (ai-generated, human-written, ai-assisted)
- If ai-generated corrections dominate (>60%): flag for prompt/context improvement, BUT see
detection_origin cross-check below before acting on this interpretation
- If human-written corrections dominate (>60%): flag for process/training improvement
- If ai-assisted is high: check if the AI contribution or the human contribution caused the issue
4b. Cross-check with detection_origin (when field is present — see memory/README.md):
- Count corrections by
Detection_origin if present (user / agent_self / hook / evaluator / eval_runner / external_review)
- Critical disambiguation: if Origin is heavily ai-generated AND detection_origin is heavily
user, the apparent AI-quality signal is actually a HARNESS-DETECTION GAP. The AI is generating failures and the user is the only entity catching them. The right intervention is more harness checks (hooks, evaluators), NOT more AI context.
- If detection_origin is dominantly
user (>70%): flag for harness-detection gap. Suggest where new hooks or evaluators could catch the failure modes earlier.
- If detection_origin is well-distributed across mechanisms: harness coverage is healthy; trust the Origin signal at face value.
- Surfaced 2026-05-03 (mycelium-roadmap dogfood): without this cross-check, the audit's "100% ai-generated → improve prompt context" framing would have driven the wrong intervention. Real signal was "AI generates, user catches" — fixed by shipping the framework-guard hook (harness-detection layer), not by improving prompts.
Root-cause recurring corrections (5 Whys):
For each correction that appears 3+ times, apply 5 Whys to find the systemic root:
- Why did this happen? -> Why did that happen? -> ... -> [systemic root cause]
- Stop when you reach something changeable: a guardrail, gate, process step, or prompt instruction
- Anti-pattern: stopping at "human error" or "agent didn't follow instructions" — ask why the system allowed it
Source: Toyoda/Ohno (5 Whys), adapted for agentic workflows.
Identify graduation candidates:
- Correction logged 3+ times with same root cause -> propose new guardrail (draft G-XX entry)
- Correction reveals a failure mode not in anti-patterns.md -> propose new anti-pattern entry
- Correction reveals a successful mitigation -> propose new pattern in patterns.md
Consolidate memory files (automated hygiene):
- Deduplication: Identify corrections that describe the same root cause in different words. Merge into a single entry, preserving all dates and evidence.
- Contradiction detection: Flag corrections that contradict each other (e.g., "always use X" vs "never use X"). Present conflicts to the user for resolution.
- Staleness removal: Corrections older than 6 months whose prevention has been verified effective (no recurrence) can be archived to
memory/corrections-archive.md.
- Size cap: If corrections.md exceeds 50 entries, consolidate the oldest resolved entries into a summary paragraph in the archive.
- Apply the same consolidation to
memory/patterns.md.
Inspired by: greyhaven-ai/autocontext curator agent — periodic dedup, cap, and contradiction removal.
Update TL;DR section:
- Regenerate the TL;DR in corrections.md with the top 5 most impactful corrections
- Impact = frequency x severity (blocking vs. quality vs. cosmetic)
Recommend actions:
- For each graduation candidate: specific guardrail text, tier, and constraint type
- For failed preventions: what went wrong and what stronger mechanism to use
- For origin imbalances: specific context improvements
Output Format
## Corrections Audit
### Summary
Total corrections: [N]
Period: [earliest date] to [latest date]
### Frequency Analysis
| Category | Count | Trend |
|----------|-------|-------|
| engineering | 3 | rising |
| bias | 1 | stable |
### Origin Distribution
| Origin | Count | % |
|--------|-------|---|
| ai-generated | 4 | 57% |
| human-written | 2 | 29% |
| ai-assisted | 1 | 14% |
### Recurring Patterns
- [Pattern description]: [N] occurrences -> [recommendation]
### Graduation Candidates
1. [Correction pattern] -> Proposed guardrail: G-XX "[text]" `[TIER]` `[type]`
### Failed Preventions
- [Correction] was logged again despite prevention "[strategy]" -> [escalation]
### TL;DR Update
[Updated summary for corrections.md TL;DR section]
Theory Citations
- Mycelium internal learning loop
- APEX framework (origin-aware quality tracking)
- Senge: systems thinking (recurring patterns signal structural issues)
1---2name: corrections-audit3description: Use to analyze correction trends, surface recurring patterns, and graduate repeat corrections to guardrails or anti-patterns.4---5
6# Corrections Audit Skill
7
8Analyze corrections.md for trends, recurring patterns, and actionable insights.
9
10## When to Use
11
12- Loop 2 (Incremental) cadence: after every 3+ corrections are logged
13- When the same correction category appears 3+ times
14- During `/diamond-assess` if corrections gate has findings
15- Before starting a new diamond at the same scale as a previously corrected one
16
17## Workflow
18
191. **Load corrections**: Read `.claude/memory/corrections.md`
20 - If empty or no corrections logged: report "No corrections to audit" and stop
21
222. **Categorize by frequency**:
23 - Group corrections by `Category` (bias, security, engineering, process, communication)
24 - Group by `Scope` (discovery, delivery, orchestration, quality)
25 - Count occurrences per group
26
273. **Detect recurring patterns**:
28 - [ ] Same category appears 3+ times -> candidate for guardrail graduation
29 - [ ] Same scope appears 3+ times -> candidate for domain-level CLAUDE.md update
30 - [ ] Same mistake repeats after prevention was documented -> prevention strategy failed, needs escalation
31
324. **Check origin distribution** (APEX alignment):
33 - Count corrections by `Origin` (ai-generated, human-written, ai-assisted)
34 - If ai-generated corrections dominate (>60%): flag for prompt/context improvement, BUT see `detection_origin` cross-check below before acting on this interpretation
35 - If human-written corrections dominate (>60%): flag for process/training improvement
36 - If ai-assisted is high: check if the AI contribution or the human contribution caused the issue
37
384b. **Cross-check with detection_origin** (when field is present — see memory/README.md):
39 - Count corrections by `Detection_origin` if present (user / agent_self / hook / evaluator / eval_runner / external_review)
40 - **Critical disambiguation**: if Origin is heavily ai-generated AND detection_origin is heavily `user`, the apparent AI-quality signal is actually a HARNESS-DETECTION GAP. The AI is generating failures and the user is the only entity catching them. The right intervention is more harness checks (hooks, evaluators), NOT more AI context.
41 - If detection_origin is dominantly `user` (>70%): flag for harness-detection gap. Suggest where new hooks or evaluators could catch the failure modes earlier.
42 - If detection_origin is well-distributed across mechanisms: harness coverage is healthy; trust the Origin signal at face value.
43 - Surfaced 2026-05-03 (mycelium-roadmap dogfood): without this cross-check, the audit's "100% ai-generated → improve prompt context" framing would have driven the wrong intervention. Real signal was "AI generates, user catches" — fixed by shipping the framework-guard hook (harness-detection layer), not by improving prompts.
44
455. **Root-cause recurring corrections** (5 Whys):
46 For each correction that appears 3+ times, apply 5 Whys to find the systemic root:
47 - Why did this happen? -> Why did that happen? -> ... -> [systemic root cause]
48 - Stop when you reach something changeable: a guardrail, gate, process step, or prompt instruction
49 - Anti-pattern: stopping at "human error" or "agent didn't follow instructions" — ask why the system allowed it
50 *Source: Toyoda/Ohno (5 Whys), adapted for agentic workflows.*
51
526. **Identify graduation candidates**:
53 - Correction logged 3+ times with same root cause -> propose new guardrail (draft G-XX entry)
54 - Correction reveals a failure mode not in anti-patterns.md -> propose new anti-pattern entry
55 - Correction reveals a successful mitigation -> propose new pattern in patterns.md
56
577. **Consolidate memory files** (automated hygiene):
58 - **Deduplication**: Identify corrections that describe the same root cause in different words. Merge into a single entry, preserving all dates and evidence.
59 - **Contradiction detection**: Flag corrections that contradict each other (e.g., "always use X" vs "never use X"). Present conflicts to the user for resolution.
60 - **Staleness removal**: Corrections older than 6 months whose prevention has been verified effective (no recurrence) can be archived to `memory/corrections-archive.md`.
61 - **Size cap**: If corrections.md exceeds 50 entries, consolidate the oldest resolved entries into a summary paragraph in the archive.
62 - Apply the same consolidation to `memory/patterns.md`.
63 *Inspired by: greyhaven-ai/autocontext curator agent — periodic dedup, cap, and contradiction removal.*
64
658. **Update TL;DR section**:
66 - Regenerate the TL;DR in corrections.md with the top 5 most impactful corrections
67 - Impact = frequency x severity (blocking vs. quality vs. cosmetic)
68
699. **Recommend actions**:
70 - For each graduation candidate: specific guardrail text, tier, and constraint type
71 - For failed preventions: what went wrong and what stronger mechanism to use
72 - For origin imbalances: specific context improvements
73
74## Output Format
75
76```
77## Corrections Audit
78
79### Summary
80Total corrections: [N]
81Period: [earliest date] to [latest date]
82
83### Frequency Analysis
84| Category | Count | Trend |
85|----------|-------|-------|
86| engineering | 3 | rising |
87| bias | 1 | stable |
88
89### Origin Distribution
90| Origin | Count | % |
91|--------|-------|---|
92| ai-generated | 4 | 57% |
93| human-written | 2 | 29% |
94| ai-assisted | 1 | 14% |
95
96### Recurring Patterns
97- [Pattern description]: [N] occurrences -> [recommendation]
98
99### Graduation Candidates
1001. [Correction pattern] -> Proposed guardrail: G-XX "[text]" `[TIER]` `[type]`
101
102### Failed Preventions
103- [Correction] was logged again despite prevention "[strategy]" -> [escalation]
104
105### TL;DR Update
106[Updated summary for corrections.md TL;DR section]
107```
108
109## Theory Citations
110- Mycelium internal learning loop
111- APEX framework (origin-aware quality tracking)
112- Senge: systems thinking (recurring patterns signal structural issues)