resuming
Resume an interrupted workflow run with verify-first strategy — loads sidecar state, verifies the last step, and continues execution.
от yimwoo★ 27 звёзд на GitHub
Установить resuming в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
HOTL Resume
Overview
Resume a previously interrupted workflow run. HOTL persists execution state in a sidecar file (.hotl/state/<run-id>.json). On resume, it uses a verify-first strategy to determine whether the interrupted step already succeeded before continuing.
For governed native runs, call hotl-rt reconcile <run-id> (or the selected driver's equivalent) before resuming. Treat its result as a read-only recommendation and retain this skill's verify-first rules; never infer completion from a host session status.
Announce: "Looking for interrupted HOTL runs..."
Sidecar State
Execution state is persisted at .hotl/state/<run-id>.json. This is the authoritative source of truth — workflow checkboxes are a human-visible mirror that may drift after a crash.
Schema
{
"run_id": "<slug>-<YYYYMMDDTHHMMSSZ>-<12-hex-nonce>",
"workflow_path": "/abs/path/to/execution-root/docs/plans/YYYY-MM-DD-<slug>-workflow.md",
"source_workflow_path": "/abs/path/to/original/workflow.md",
"workflow_slug": "<slug>",
"intent": "<from workflow frontmatter>",
"branch": "<branch name>",
"repo_root": "/abs/path/to/repo",
"execution_root": "/abs/path/to/repo-or-worktree",
"worktree_path": null,
"executor_mode": "loop | executing-plans | subagent",
"started_at": "<ISO 8601>",
"last_update": "<ISO 8601>",
"status": "running | paused | blocked | ready_to_finish | completed | abandoned",
"ownership_required": true,
"controller": {"status": "active", "owner_id": "<stable-controller-id>", "lease_expires_epoch": 0},
"current_step": 3,
"total_steps": 8,
"steps": [
{"number": 1, "name": "<step name>", "status": "done | in_progress | pending | failed | blocked", "attempts": 1},
{"number": 2, "name": "<step name>", "status": "done", "attempts": 2}
],
"last_verify_output": "<captured stdout/stderr from last verify>"
}
Run ID Format
<slug>-<YYYYMMDDTHHMMSSZ>-<12-hex-nonce> (e.g., add-auth-20260320T212315Z-a1b2c3d4e5f6). The semantic workflow slug and UTC start time keep the identifier readable; operating-system entropy keeps simultaneous runs unique across independent execution roots. Legacy timestamp-only run IDs remain readable.
Status Values
running— execution is in progress (or was interrupted)paused— stopped at agate: humanor averify: human-reviewcheckpoint awaiting approvalblocked— stopped due to verify failure at max_iterationsready_to_finish— all required execution evidence passed; explicit finish disposition is still pendingcompleted— execution evidence passed and finish disposition was recordedabandoned— user explicitly abandoned the run
Run Resolution
- If the user provides a
run_id→ load that specific run - If the user provides a workflow filename → locate matching runs by
workflow_pathorsource_workflow_path - If one match → use it
- If multiple matches → list all matching runs with run_id, step progress, branch, execution_root, and age. Ask the user which to resume or whether to start fresh. Never silently choose among multiple runs.
- If no match → report "No interrupted run found for this workflow."
Worktree-Aware Locator
Use scripts/hotl-locate-run.sh when available:
scripts/hotl-locate-run.sh --workflow <workflow-file>
scripts/hotl-locate-run.sh --run-id <run-id>
The locator prints a JSON array and scans:
- Current checkout
git worktree list --porcelainroots for the repo- HOTL's default isolated worktree root:
$(dirname <repo-root>)/.hotl-worktrees/$(basename <repo-root>)/*
This is required for default isolated-worktree execution. In that mode, .hotl/state/<run-id>.json is created inside the execution worktree, while the workflow file usually remains in the authoring checkout. A new session started from the authoring checkout must find the existing execution worktree and resume there instead of trying to create a new worktree.
If hotl-locate-run.sh is unavailable, manually scan the same locations. Do not run normal Branch/Worktree Preflight until after you have ruled out an interrupted run; preflight will reject an existing execution worktree and can incorrectly look like a start-from-scratch path.
Controller Ownership Resolution
status: running and last_update age are not ownership signals. Age alone never authorizes takeover.
- Run
hotl-rt owner status --run-id <run-id>before any mutation. - If ownership is
legacy-unclaimedorreleased, runowner claim --owner <stable-controller-id> --lease-seconds <bounded-lease> --run-id <run-id>. Parse the returned one-time token without displaying it and export it asHOTL_OWNER_TOKEN. - If the lease is
stale, runowner takeover --owner <stable-controller-id> --reason <auditable-recovery-reason> --lease-seconds <bounded-lease> --run-id <run-id>and retain the new token. - If another controller lease is active, do not mutate. Obtain an explicit `ow
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл resuming?
Resume an interrupted workflow run with verify-first strategy — loads sidecar state, verifies the last step, and continues execution.
Как установить скилл resuming?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл resuming запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…