work-recoverylisted
Install: claude install-skill Phalegethon/the-agentic-fieldbook
# Work Recovery
Recover one current Git workstream from bounded evidence. Be an evidence-backed, fast assistant—not a predictor.
Let `<skill-dir>` be this skill's directory. Resolve the repository (default: the repository that contains the current working directory, never this skill's own checkout) and only inputs the user explicitly supplied. Invocation authorizes bounded current-worktree Git metadata and tracked staged/unstaged diff hunks. It does not authorize untracked content, other-worktree content, unchanged source, broad history, providers, network access, indexing, tests, builds, lint, or mutation. An explicit request for indexed context adds exactly one read-only context query against an index that is already ready (step 4); it never authorizes building, installing, or downloading one.
1. Check Git and resolve `<python>` to `python3` or a Python 3 `python`. If missing, read `references/tool-setup.md`; never install without approval.
2. Run `<python> <skill-dir>/scripts/collect_recovery.py --repo <repo>` exactly once. Pass `--base`, `--max-output-chars`, `--include-untracked`, `--note-file`, or `--test-results-file` only for exact values the user supplied. Do not inspect repository source before or after the collector.
3. Stop on nonzero exit or invalid JSON. Retain the returned dossier for this conversation. Read `references/recovery-contract.md` and synthesize one report in the user's language. Copy the dossier's exact work-state enum and evidence classes; do no