skills/work-recovery/SKILL.md
Reconstruct what a past coding-agent session was doing so you can resume it — goal, files touched, last verified state, and the next step — by querying the session logs. Use when the user says "what was I working on", "recover that session", "reconstruct where I left off", "resume my last session", "what did that session change", "rebuild context from logs", or invokes /work-recovery. Report-only — it never scores or judges. Do NOT use for usage scoring (that is /skill-improver, /tool-efficiency, /prompt-analytics) or one-off interactive log queries (that is /session-analytics).
npx skillsauth add paulnsorensen/dotfiles work-recoveryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reconstruct a past session's working state from the logs so a fresh agent (or the user) can resume without re-reading the transcript. Report-only: it reconstructs and presents; it does NOT score, rank, or recommend.
A target session: a sessionId, a project/branch, or "my last session". If
ambiguous, list recent candidate sessions (via the session-shape pack) and ask
which one. Optional harness filter (all default).
Two analytics packs under references/:
| Domain | Pack | What it surfaces |
|--------|------|------------------|
| session-shape | session-shape.md | Recent sessions, timeline, size — for picking the target |
| work-recovery | work-recovery.md | Goal, files touched, last verified state, next step — for the chosen session |
Ingest — python3 ~/Dev/dotfiles/skills/session-analytics/scripts/ingest.py
(1-hour TTL). Best-effort.
Fan out — spawn one parallel duckdb-expert per owned domain
(one-domain-per-spawn). Use session-shape first if the target is unknown,
then work-recovery once a sessionId is chosen:
spawn duckdb-expert "Run analytics pack work-recovery/references/<domain>.md for target {SESSION}. harness={HARNESS}"
Collect the digests.
Reconstruct — assemble the recovery brief below. No scoring, no calibration tags, no recommendations — just the reconstructed state.
## Session Recovery: {SESSION}
- **Project / branch:** <cwd> @ <branch> · Harness: <harness>
- **Span:** <first_seen> → <last_seen> (<n> entries)
### Goal
<inferred from the opening prompt(s) — quote them>
### Files touched
| File | Reads | Edits/Writes |
|------|-------|--------------|
### Last verified state
<last test/build/git command and its outcome, if any>
### Next step
<the last incomplete action or the explicit "next" the session was heading toward>
duckdb-expert spawn.development
Curate this repo's hallouminate wiki (.hallouminate/wiki/, the repo:dotfiles:wiki corpus) — add or update architecture pages, per-harness docs, and gotchas. Use when the user says "update the wiki", "document this in the wiki", "refresh the harness docs", "add a wiki page", "curate the wiki", "the wiki is stale", or invokes /wiki-curator. Also use at session end to write back a non-obvious decision or gotcha worth preserving. Grounds the existing wiki first, follows one-topic-per-file conventions, verifies every external doc URL before writing, and reindexes. Do NOT use for general code search (that is cheez-search) or for editing AGENTS.md command reference.
tools
Audit how a tool, command, or MCP server is actually used across coding-agent sessions and produce calibrated recommendations — tool-vs-task fit, error forensics, fix recommendations, permission friction, MCP health, and token economics. Use when the user says "tool efficiency", "am I using X efficiently", "audit tool usage", "why does X keep failing", "how do I fix this error", "what should I change", "permission friction", "is this MCP worth it", "tool error rate", "fix recommendations", or invokes /tool-efficiency. Do NOT use for auditing a skill or agent definition (that is /skill-improver) or for one-off interactive log queries (that is /session-analytics).
tools
Analyze how prompts and skill routing behave across coding-agent sessions and produce calibrated recommendations — prompt-pattern analysis, routing accuracy, and knowledge gaps. Use when the user says "analyze my prompts", "prompt patterns", "is routing working", "which skill should have fired", "knowledge gaps", "what do I keep asking", or invokes /prompt-analytics. Do NOT use for auditing a single skill/agent definition (that is /skill-improver), tool/MCP efficiency (that is /tool-efficiency), or one-off interactive log queries (that is /session-analytics).
development
Diagnose and self-heal harness-config drift between live files (~/.claude, ~/.codex, opencode, Cursor, Copilot) and what `ap` renders from the dotfiles registries. Use when the user says "harness doctor", "check my harness config", "settings drifted", "why is this hook firing twice", or asks to audit agent config. In Codex, invoke via `$harness-doctor` or `/skills`, not `/harness-doctor`. Do NOT use for general code review (/age), single-file permission cleanup (/settings-clean), or app-level debugging.