session-audit
Skill22 starsChanged 9 days agoMITView on GitHub
Analyze the current Claude Code session transcript for execution failures, classify errors, and suggest CLAUDE.md rules or settings.json hooks. Use on "audit this session", "what failed", "analyze errors", "what went wrong".
- Installs packages
9 other projects use a version of this.
Adopted by
Most recently taken up by
- 5hirish/ducttheir own version, first seen Nov 8, 2026
- zanellig/skillstheir own version, first seen Nov 1, 2026
- nurmdrafi/pi-nativetheir own version, first seen Oct 25, 2026
- iceberggymnast/skillstheir own version, first seen Oct 17, 2026
- GRIDLOCK-NYC/claude-skillstheir own version, first seen Oct 8, 2026
- t1merickson/skillstheir own version, first seen Sep 4, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- 5hirish/duct★ 8same name
- nurmdrafi/pi-native★ 4same name
- t1merickson/skills★ 1same name
- zanellig/skills★ 1same name
- dylanmoo/workos-plugin★ 0same name
- GRIDLOCK-NYC/claude-skills★ 0same name
- iceberggymnast/skills★ 0same name
- Lucioway/way-stack★ 0same name
- meggiepham06-smile/session-audit-skill★ 0same 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 repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dependency-analyzerSkill
- docsSkill
- handoffSkill
- openai-reviewerSkill
- plugin-homeSkill
- schema-validatorSkill
- security-auditSkill
- test-validatorSkill
- claude-codeSkill
- codexSkill
- opencodeSkill
- chartsSkill
- export-csvSkill
- export-excelSkill
- make-chartSkill
- make-html-reportSkill
- make-pdfSkill
- a2a-communicateSkill
- a2a-handle-inboundSkill
- codebase-inspectionSkill
- ethos-skill-authoringSkill
- native-mcpSkill
- github-authSkill
- github-code-reviewSkill
- github-issuesSkill
- github-pr-workflowSkill
- github-repo-managementSkill
- birth-ritualSkill
- get-to-know-youSkill
- xurlSkill
- arxivSkill
- grounded-citationsSkill
- research-paper-writingSkill
- reddit-researchSkill
- code-reviewSkill
- coding-agentSkill
- planSkill
- requesting-code-reviewSkill
- spikeSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- tddSkill
- writing-plansSkill
- no-ai-slopSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Run the parse script:
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Session Audit
Analyze the current Claude Code session for execution failures and present a structured report.
Phase 1 — Parse transcript
Run the parse script:
python3 "$(dirname "$0")/scripts/parse-transcript"The script outputs JSON:
{
"session": "<path>",
"total_tool_calls": 42,
"failures": [
{
"category": "git-state",
"count": 1,
"examples": ["fatal: 'messaging-queue-background' is already used by worktree at ..."],
"suggestion": {
"type": "claude_md",
"rule": "Before any `git worktree add` or `git checkout -b`, first run `git worktree list` and `git branch --list <name>` to verify the target does not already exist."
}
}
]
}Phase 2 — Present the report
For each failure in the output, format it as:
## <CATEGORY> (<count> occurrence(s))
**What failed:**
> <example snippet — first 200 chars>
**Suggested fix:**
<type: CLAUDE.md rule | settings.json hook>
<the rule or hook config>Categories and their fix types:
git-state→ CLAUDE.md rule about verifying git state before operationstypecheck→ CLAUDE.md rule to always runpnpm typecheckbefore declaring donelint→ settings.json Stop hook:cd <project> && pnpm lint 2>&1 | grep "error" | grep -v WARN || truebuild→ CLAUDE.md rule to runpnpm buildin affected package before reporting completetest→ CLAUDE.md rule to runpnpm testbefore declaring donedependency→ CLAUDE.md rule to runpnpm install && pnpm typecheckafter package changespermission→ CLAUDE.md rule: never bypass hooks with --no-verify; investigate root causeruntime→ CLAUDE.md rule to check~/.ethos/logs/errors.jsonlfor contextexit-code→ no rule (informational only)
Show the full report and stop. Do not ask to apply anything.
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.

