error-audit
Skill1 starsChanged 7 months agoMITView on GitHub
Audit errors across Claude Code session transcripts. Scans ~/.claude/projects/*.jsonl for 7 error classes (tool_error, validation_error, permission_denial, hook_block, bash_fail, retry_storm, read_before_edit), clusters by root-cause signature, and surfaces top N with suggested remediation tiers. Use when the user says "error audit", "errors across sessions", "system health errors", or "/error-audit".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- markmdev/meridiantheir own version, first seen Feb 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- markmdev/meridian★ 185same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- checkSkill
- plan-archiveSkill
- press1-checkSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
Run python3 <skill-path>/error-audit.py with any arguments the user provided.
- Distinctive: line 42
Do NOT auto-apply any remediation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/error-audit — Cross-session error audit
Scan every Claude Code session transcript for errors, cluster by root cause, surface the top offenders with suggested remediations.
Usage
# Default: all sessions, top 20 clusters, human output
python3 error-audit.py
# Last 30 days only
python3 error-audit.py --since 30
# Show fewer clusters
python3 error-audit.py --top 10
# Machine-readable (for piping into other tools)
python3 error-audit.py --json
# Override the projects dir (useful for testing)
python3 error-audit.py --projects-dir /path/to/projects
# Override or disable suppressions
python3 error-audit.py --suppressions-path /path/to/suppressions.md
python3 error-audit.py --no-suppressions
python3 error-audit.py --show-suppressedSteps (when invoking via /error-audit)
- Run
python3 <skill-path>/error-audit.pywith any arguments the user provided. - Display the output to the user exactly as printed (includes colour-coded counts and suggested remediation tiers).
- For the top 3 clusters, propose a concrete action:
- Tier 1 (settings allowlist): show the exact
~/.claude/settings.jsonentry to add, but do NOT auto-apply — user must review Bash allowlist changes. - Tier 2 (hook or script fix): locate the hook/script and propose the edit.
- Tier 3 (instruction/memory): draft the feedback or mechanism memory entry.
- Tier 1 (settings allowlist): show the exact
- Do NOT auto-apply any remediation. This skill surfaces and proposes; the user decides.
Configuration
| Env var | Purpose | Default |
CLAUDE_ERROR_AUDIT_SUPPRESSIONS | Suppressions file path (cluster_keys to hide as working-as-designed) | <skill-dir>/suppressions.md (ships with toolkit) |
The suppressions file ships with one entry by default: the plan-review-gate's intentional permission_denial:ExitPlanMode blocks. Add your own entries to silence known-good clusters.
What counts as "actionable"
A cluster is actionable if the signature is concrete enough to map to a single fix:
permission_denial:Bash:git→ allowlist-adjacent, concretetool_error:Read:File does not exist: <X>/...→ behavioural, concrete ("Glob before Read")hook_block:Stop:response-linter:Want me to→ specific linter rule, concrete
Clusters with vague signatures (single-count generic errors) are monitor-only until a pattern forms.
Implements
- Mechanism #19 — Detection rules: more specific patterns, never broader allowlists
- Mechanism #21 — Structural intervention beats pattern N+1
See https://github.com/christophecapel/claude-mechanisms
Out of scope (this release)
/error-audit-triage(interactive remediation flow with Linear ticket creation) — myOS-coupled today, deferred to v0.3.1+ once the agent path + Linear flow are decoupled.error-audit-post.py(post findings to a GitHub health-check issue) — myOS-specific health-check format, stays myOS-only.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

