planning-with-files
Optional persistent file-based planning for multi-phase or long-running work that benefits from recovery across sessions or…
Audit coding-agent sessions and mine cross-harness history for recurring corrections, skill-routing gaps, and harness faults. Use for retrospective AI-tool efficacy checks or history-driven tuning of skills and shared context.
$ npx -y skills add khaneliman/khanelinix --skill ai-session-audit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ai-session-auditContext preview
The summary Claude sees to decide when to auto-load this skill.
Audit coding-agent sessions and mine cross-harness history for recurring corrections, skill-routing gaps, and harness faults. Use for retrospective AI-tool efficacy checks or history-driven tuning of skills and shared context.
name: ai-session-audit description: "Audit coding-agent sessions and mine cross-harness history for recurring corrections, skill-routing gaps, and harness faults. Use for retrospective AI-tool efficacy checks or history-driven tuning of skills and shared context."
Extract deterministic facts before semantic judgment. Choose one lane:
replies, to find what users keep correcting and whether rule changes stuck. Use it for a history review, a tune-up of skills or shared context, or a fresh-start review after a model change.
or tool content. Use them for tool, worker, token, and model-route counts.
python3 <skill-dir>/scripts/history_audit.py status
python3 <skill-dir>/scripts/history_audit.py run \
--out "${XDG_CACHE_HOME:-$HOME/.cache}/ai-session-audit/<date>" \
--since <date> --boundary <policy-change-date> \
--skills-root <canonical-skills-root>`run` writes cleaned prompts, threads, routing, phrase, and signal tables, and chunked worker digests. The `extract`, `threads`, `digest`, `corrections`, `routing`, `phrases`, and `signals` commands rerun one stage in a run directory. `ledger --file <instruction-file> --out <dir>` traces the commit behind each rule block. Add routing triggers, aliases, or edit suffixes in [assets/routing-triggers.json](assets/routing-triggers.json).
1. Follow [references/retrospective.md](references/retrospective.md) from coverage through delivery; each stage ends with a completion check. 2. Read [references/rubrics.md](references/rubrics.md) before spawning classification workers. 3. Read [references/fresh-start.md](references/fresh-start.md) when a new model or harness replaces the default. 4. Read [references/backends.md](references/backends.md) before syncing or querying the archive.
python3 <skill-dir>/scripts/ai_session_audit.py summary \ --since 2026-08-20 --format markdown python3 <skill-dir>/scripts/ai_session_audit.py events \ --since 2026-08-20 --output audit.ndjson
Use `--provider`, `--thread`, and `--until` to narrow either command. Output goes to stdout unless `--output` is explicit. Existing output requires `--force`.
1. Run `summary` against the smallest useful date range. 2. Treat tool order, turn count, provider-reported tokens, skill observations, worker tasks, and model routes as deterministic evidence. 3. Read [references/schema.md](references/schema.md) before comparing providers or interpreting token and task fields. 4. Use `events` when longitudinal queries or visualization justify a database. Read [references/backends.md](references/backends.md) before selecting one. 5. Separate observed behavior from inferred policy compliance. A transcript can prove that a skill ran. Deciding whether one should have run still requires a frozen routing corpus or a reviewed rubric.
reasoning, or assistant prose.
Quote short user excerpts in reports; never publish digests or paste them into public prose. Digests hold raw prompts; send them only to workers on providers that already hold that history.
commit-date windows approximate.
missing complaint does not prove that a rule is unnecessary.
Run packages directly with: Or install from the packages output. For example:
Optional persistent file-based planning for multi-phase or long-running work that benefits from recovery across sessions or…
Design and audit agent instructions, skills, plugins, subagents, prompts, hooks, and provider configuration. Use for AI-tool…
Sketch interfaces, state, and module structure before code. Use for explicit design-led implementation or as a caller-owned…
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena,…
Bevy workflows for ECS, migrations, first-party UI/input/rendering/assets/shaders, plugin selection, scenes, scheduling, hot…
Find what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by…