rehydrate
Read workflow state after a context break and restore the working context: the phase, the task progress, the capsule terms and the next step. Read-only: it…
от lvlup-sw★ 19 звёзд на GitHub
Установить rehydrate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Workflow Rehydrate Skill
Overview
Restore the workflow context after a context break, from the stored record and git. The skill is read-only. It makes two kinds of read and no write:
remit describe -f <featureId>reads one stored workflow: its phase, workflow type, tasks, artifacts and recent events.remit capsule --stream-id <featureId> --capsule-version <n>reads a page of the prepared capsule: the task contexts and the terms that settlement judges.
Only remit prepare and remit settle write workflow state. The harness owns the session itself.
Triggers
Activate this skill when:
- Restoring context after summarization (
rehydrate <featureId>) - The agent has drifted after context compaction
- Returning to a workflow after a break
Does this workflow exist?
The event store is the record of whether a workflow exists. A <featureId>.state.json file is not an existence signal: it can be absent for a workflow that exists.
Read workflowExists in the result of remit describe -f <featureId> --json. A read of an unknown feature ID returns workflowExists: false and appends nothing. Never infer existence from a file on disk. If the user did not name a feature ID, ask for it.
Step 1: Read the workflow
remit describe -f <featureId> --json
Read from the result:
phaseandworkflowType- the task roster and the count of tasks by status
- the artifact map (design record, plan, RCA, report)
- the recent events: their types show the last
workflow.preparedandexecution.settledrecords
Use the saved prepare and settle receipts if available. If either receipt is missing, read data.capsuleVersion and data.lastSettlement from the describe result. The latest settlement can refer to an earlier capsule. Compare its capsuleVersion with the current one before acting on its outcome. If lastSettlement.findingCounts includes critic-blocked, follow the blocked-critic row below. For a held worker deviation, use the saved settlement receipt or ask for it before making decisions.
Step 2: Read the capsule
When the workflow has a prepared capsule, read its task contexts and terms. Follow data.continuation until you hold every page:
remit capsule --stream-id <featureId> --capsule-version <capsuleVersion> --offset 0 --limit 10 --json
The read is read-only, and it reads the pinned custody of that exact capsule version.
Step 3: Compare with git
Compare the stored record with the work in git:
git worktree list
git log --oneline -10 <integration branch>
A task worktree with commits that no settlement judged is work in progress. A task head that is not on the integration ref has not landed.
Step 4: Restore the context
Render a compact summary:
## Workflow Rehydrated: <featureId>
**Phase:** <phase> | **Type:** <workflowType> | **Capsule:** v<capsuleVersion>
### Task Progress
<task table: id, title, status, worktree>
### Artifacts
- Design record: <path or "not created">
- Last settlement: <outcome, unresolved tasks>
### Next Step
<one step from the table below>
| State | Next step |
|---|---|
workflowExists: false |
No workflow. Start one with the skill of its type (the first call is remit prepare) |
| Prepared, no settlement | Continue the work of the capsule, then settle the batch |
Last outcome corrective-capsule |
Fix the unresolved tasks, then settle a new batch on the same capsule |
Last outcome deviation-pending with entries in pendingDeviations |
Ask a person to decide each pending deviation, then settle the same batch with the decisions |
Finding critic-blocked |
Resolve the blocker, then submit the corrected critic claim with a new batchId |
Last outcome recompile-required, or a design revision |
Prepare a compile continuation |
Phase completed |
The workflow is complete. Continue with the harness steps after the boundary (PR, merge) |
Keep the summary short. The full details stay in files and in the stored record.
Anti-patterns
| Do not | Do instead |
|---|---|
Infer existence from a .state.json file |
Read workflowExists from remit describe |
| Remember state from before the break | Read it from the stored record and git |
| Edit a state file to match git | Correct the work with git, then settle again |
| Paste the current plan text in place of the capsule | Read the capsule pages of the prepared version |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rehydrate?
Read workflow state after a context break and restore the working context: the phase, the task progress, the capsule terms and the next step. Read-only: it runs remit describe and remit capsule, and writes nothing. Use when the user says 'resume', 'rehydrate', 'where were we', or runs /rehydrate, or when the agent has drifted after context compaction. Do NOT use to change workflow state: only remit prepare and remit settle write it.
Как установить скилл rehydrate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rehydrate запускает скрипты?
Нет, скилл состоит только из инструкций (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…