audit-agent-history
Installation
SKILL.md
Audit agent history
Rules written from guesses miss. Rules written from counted corrections in the user's own logs hit. This skill counts, then proposes at most three lines for bundles/workflow/rules/workflow-hazards.md, plus the consumer overlay pairs worth hoisting into their hub rule.
Where the logs live
Verify each path with ls first. Skip what is absent, say so in the report.
| Harness | Path | Shape |
|---|---|---|
| Claude Code | ~/.claude/projects/<project-slug>/*.jsonl |
one file per session, one JSON message per line; type is user or assistant; cwd names the repo; assistant lines carry model (claude-fable-5, claude-opus-5) |
| Codex | ~/.codex/sessions/<yyyy>/<mm>/<dd>/rollout-*.jsonl |
one file per session; first line type: session_meta with cwd; later lines carry model (gpt-5.6) |
The project slug is the repo path with / replaced by -: /Users/x/repo/skilly becomes -Users-x-repo-skilly.
Scope
Ask for, or default: