From mycelium
Analyzes corrections.md, warnings-log.md, and cluster-instances.md for trends, recurring patterns (3+ occurrences), origin distributions, and candidates to graduate to guardrails or anti-patterns. Use after 3+ corrections or repeating categories.
npx claudepluginhub haabe/mycelium --plugin myceliumThis skill uses the workspace's default tool permissions.
Analyze corrections.md for trends, recurring patterns, and actionable insights.
Logs data analyst errors like wrong SQL, metrics, schema, or logic with fixes, severity, categories, and datasets for future learning. Triggered by 'log a correction' or /log-correction.
Captures tool failures via PostToolUseFailure, detects error patterns in lessons-learned.md, promotes to permanent rules, and rotates files for Claude Code self-healing.
Reviews completed coding sessions to extract actionable improvements: DX friction, documentation gaps, architecture issues, anti-patterns, bug prevention, and tooling updates.
Share bugs, ideas, or general feedback.
Analyze corrections.md for trends, recurring patterns, and actionable insights.
/mycelium:diamond-assess if corrections gate has findingsLoad corrections AND warnings AND clusters: Read .claude/memory/corrections.md, .claude/memory/warnings-log.md, AND .claude/memory/cluster-instances.md (the cluster log graduated 2026-05-08 — canonical record of recurring-pattern instances and their graduation status; without it, "the cluster has graduated N times" has no auditable backing).
Categorize by frequency:
Category (bias, security, engineering, process, communication)Scope (discovery, delivery, orchestration, quality)Detect recurring patterns:
Check origin distribution (APEX alignment):
Origin (ai-generated, human-written, ai-assisted)detection_origin cross-check below before acting on this interpretation4b. Cross-check with detection_origin (when field is present — see .claude/memory/README.md):
Detection_origin if present (user / agent_self / hook / evaluator / eval_runner / external_review)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.user (>70%): flag for harness-detection gap. Suggest where new hooks or evaluators could catch the failure modes earlier.Root-cause recurring corrections (5 Whys): For each correction that appears 3+ times, apply 5 Whys to find the systemic root:
Identify graduation candidates (across corrections, warnings, AND cluster-instances):
Count: 3+ and Status: open in .claude/harness/warnings-log.md -> graduation candidate. Consult ${CLAUDE_PLUGIN_ROOT}/engine/warning-handbook.md for the canonical fix; if the canonical fix is "manifest-driven" or similar structural pattern that's already shipped, the recurrence indicates a regression, not a new pattern.6b. Cluster-instance audit (graduated 2026-05-08):
For each entry in cluster-instances.md:
spec graduation status (e.g., "documented-rule-diverges-from-enforcement" → ${CLAUDE_PLUGIN_ROOT}/engine/consistency-check-spec.md), check whether new instances introduce subclass shapes the spec hasn't yet considered. New subclasses extend the spec; recurring known subclasses just increment the count.6c. Scan docs/receipts/cases/ frontmatter for graduation signals (added 2026-05-08 with the docs restructure):
For each case file in docs/receipts/cases/*.md:
id, date, contributor, mechanism_or_status, commits, subclass).cluster-instances.md: if the case's subclass field names a known cluster, ensure the cluster's instance count includes this case. If the case is the first instance of a recurring shape that has no cluster entry, propose a new cluster.mechanism_or_status: in-progress and the underlying friction recurs, that is a graduation-readiness signal — the partial fix has not converged. If multiple cases share mechanism_or_status: one-off, check whether they actually share a root-cause shape that warrants graduation to a cluster.mechanism_or_status: spec that has been at spec ≥30 days without a promotion-bar update is a stalled-spec signal worth surfacing.
The frontmatter exists specifically so this audit step can detect graduations from cases without parsing prose. See docs/contributing/style.md#receipts-case-file-frontmatter.Consolidate memory files (automated hygiene):
.claude/memory/corrections-archive.md..claude/memory/patterns.md.
Inspired by: greyhaven-ai/autocontext curator agent — periodic dedup, cap, and contradiction removal.Update TL;DR section:
Recommend actions:
## 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]
### Cluster Status (from cluster-instances.md)
| Cluster | Instances | Status | Graduation criterion | Notes |
|---|---|---|---|---|
| documented-rule-diverges-from-enforcement | 8 | spec | ≥3 detection rules validated, <5% FP | Spec at ${CLAUDE_PLUGIN_ROOT}/engine/consistency-check-spec.md (graduated 2026-05-08) |
### Graduation Candidates
1. [Correction pattern] -> Proposed guardrail: G-XX "[text]" `[TIER]` `[type]`
2. [Cluster X reaching its graduation criterion] -> Proposed promotion from <current_status> to <next_status>: <action>
### Failed Preventions
- [Correction] was logged again despite prevention "[strategy]" -> [escalation]
### TL;DR Update
[Updated summary for corrections.md TL;DR section]