Context Rescue
/install context-rescue
Context Rescue
Use this skill when an agent is no longer fully sure where the work stands.
This is not for execution. This is for reorientation.
Trigger condition
Use this skill when any of these are true:
- the task feels blurry or fragmented
- too many side-tracks were followed
- the thread is long and the real next step is unclear
- a handoff or resume is happening after a gap
- you need to identify the real next step before doing more work
Core recovery prompt
Read back the full thread content and summarize what we have done so far, where the task is documented, and what the next step is. Do not go further, only produce this detailed summary.
Recovery workflow
- Read the relevant thread or message history.
- Read the canonical files:
state/HOLD.mdstate/ACTIVE.mdstate/DECISIONS.mdstate/CLOSED.mdif present- the canonical
task_plan.md - the canonical
notes.md
- Produce a focused summary with exactly these parts:
- what we did so far
- where the task is documented
- what the actual next step is
- Write a compressed snapshot to
state/ORIENT.md. - Stop. Do not execute the next step unless separately instructed.
Output format
## Reorientation summary
### What we did so far
- ...
- ...
### Where it is documented
- `...`
- `...`
### Actual next step
- ...
### Not the next step
- ...
- ...
### Closure criteria
- ...
- ...
state/ORIENT.md format
## Reorientation snapshot
**Thread / Context:** [which thread or task this is]
**What we did so far:**
- ...
- ...
**Where it is documented:**
- `state/ACTIVE.md`
- `projects/\x3Cslug>/task_plan.md`
- `projects/\x3Cslug>/notes.md`
**Actual next step:**
- ...
**Do not do instead:**
- ...
- ...
**Closure criteria:**
- ...
- ...
**Last updated:** YYYY-MM-DD HH:MM
Rules
- Do not continue into implementation.
- Do not create a new project if one already exists.
- Do not confuse logs with task progress.
- Prefer file truth over vague recollection.
- If the thread and the files conflict, explicitly call that out.
Why this exists
Long threads can consume context and blur the real task. A short, canonical reorientation summary restores focus without pretending the work is done.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install context-rescue - After installation, invoke the skill by name or use
/context-rescue - Provide required inputs per the skill's parameter spec and get structured output
What is Context Rescue?
Create a thread-based recovery summary when an agent loses the thread. Read the relevant conversation and canonical files, summarize what was done, where it... It is an AI Agent Skill for Claude Code / OpenClaw, with 167 downloads so far.
How do I install Context Rescue?
Run "/install context-rescue" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Context Rescue free?
Yes, Context Rescue is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Context Rescue support?
Context Rescue is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Context Rescue?
It is built and maintained by Peter Zsak (@wroadd); the current version is v1.0.0.