Session resume
Skill EthanYoQ/Skill-hub/skills/10-business-industry/session-resume
Reusable AI agent skills for Codex, Claude Code etc. — AI coding workflows, SKILL.md templates, and automation practices. 面向 Codex、Claude Code等agents 的可复用 AI Agent Skill 技能库:AI 编程工作流、SKILL.md 模板与自动化实践。
npx -y skills add EthanYoQ/Skill-hub --skill session-resumeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Mid-run failure recovery for disease-market-sizing-orchestration. Inspects .cache/<slug>/ to determine which phase last completed and which phase to run next. Use when orchestration was interrupted and user wants to continue without restarting from phase 1.
The file declares its own license as Cite-or-Block strict (P0 iron law, see ../../CLAUDE.md). That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.2 KB, as published. Nobody here has run it
Session Resume (A12 · part 1)
Detects partial state of an interrupted disease-market-sizing-orchestration run by scanning the per-disease cache directory.
Functions
detect_partial_state(slug_dir: Path) -> PhaseState — returns last_completed_phase + next_phase + reason.
resume_from(slug_dir: Path) -> str — human-readable resume message.
Phase progress signals
| Phase complete | Signal in .cache/<slug>/ |
|---|---|
| 1 (contract) | contract.json exists |
| 2 (staging) | staging.json exists |
| 3 (recall) | sources/ non-empty |
| 4 (compose+audit) | both citations_index.json and verification_report.json exist with verdict: "ok" |
| 5 (bundle) | output/delivery_manifest.json exists |
Usage
Always called by disease-market-sizing-orchestration.run() at the very start to decide whether to start fresh or continue from a partial run.