Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Automatically recover working context after session compaction or when continuation is implied but context is missing. Works across Discord, Slack, Telegram, Signal, and other supported channels.
.claude/skills/jdrhyne-context-recovery/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 114% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 57% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 71% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 310% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 180% | 0% |
Recover the smallest amount of conversation history needed to resume work safely. Default to the current thread and make uncertainty visible.
Activate when both of these are true:
Do not activate merely because the user says "continue," "go on," or "next" when the current thread contains an actionable task or promised next step. Continue that work normally. Likewise, a vague reference such as "the project" is not proof that context was lost; ask one focused clarification when the intended object cannot be identified from the current thread.
If compaction is evident but a supplied summary already contains sufficient state, use that current context and label any uncertainty. Do not retrieve more history automatically.
Use the first sufficient stage and stop.
Inspect the active turn, runtime-provided compaction summary, current thread metadata, and already supplied messages. This is the default and needs no additional approval.
If available, use the runtime's authenticated current-session or current-thread history capability. Inspect the live capability schema rather than assuming a connector name or parameter shape. Start with the most recent relevant messages and impose a hard bound of 50 items or 24 hours, whichever is smaller. Narrow further when a task, timestamp, or identifier is known.
Current-thread recovery does not require an extra approval because it remains inside the conversation the user is actively using. State the retrieved item count and time range.
Another channel, thread, session, workspace, memory store, local transcript, or log is a separate source. Before accessing it, show:
Then obtain explicit user approval. An instruction to recover a named external source identifies the desired scope but does not waive this action-time approval. Do not retrieve anything from that source before approval, and do not broaden an approved scope without a new approval.
Never discover context by globbing or recursively searching session, archive, home, project, or memory directories. Prefer the runtime's current authenticated session/thread APIs. If no suitable scoped capability exists, explain the limitation and ask the user for a specific source or a pasted excerpt.
Suggested approval prompt:
> The current thread does not resolve <missing fact>. I can search <source> from <time range>, up to <limit> items; this may expose <privacy category>. Should I perform that read-only recovery?
For each recovered fact, preserve:
Keep a bounded evidence timeline. Seek counterevidence for status claims such as completed, approved, pushed, published, or deployed. Tool output or a later verified state can support those claims; an assistant's earlier promise cannot.
When sources disagree, surface the conflict instead of choosing silently. A later item may supersede an earlier one only when it explicitly records the change or independent evidence verifies the later state. Otherwise present both versions, their timestamps and sources, and the decision still needed.
Do not claim that recovery is complete when a source is partial, unavailable, redacted, or outside the approved scope.
Return a compact recovery report:
markdown## Recovered context - Scope: <current supplied context/current thread/approved source> - Sources: <source IDs, time ranges, and item counts> - Likely active task: <task or unknown> (<confidence and reason>) ### Evidence timeline - <timestamp> — <source and speaker> — <fact or claim> ### Conflicts and counterevidence - <claim A versus claim B, or "None found within the approved scope"> ### Unresolved - <missing or ambiguous facts> ### Proposed next step - <one safe action; do not imply authorization for a write>
If recovery does not identify the task reliably, say so and ask one focused question. Do not fabricate continuity.
Do not write recovered content to memory, notes, files, tickets, or another service by default. If persistence would help, first show the exact redacted note, destination, and expected retention, then ask for consent. Approval to read a source is not approval to persist its contents.
If a scoped history capability is missing, access is denied, or approved history is insufficient:
Do not substitute an unapproved channel or a broad filesystem search.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 14,067 | 12,257 | -13% | 1 | 1 | 0% | 1,158 | 2,475 | +114% | 0 | 0 | — |
case-02 | fail→pass | 34,910 | 34,620 | -1% | 1 | 1 | 0% | 1,519 | 2,390 | +57% | 0 | 0 | — |
case-03 | fail→pass | 21,318 | 25,213 | +18% | 1 | 1 | 0% | 1,619 | 2,769 | +71% | 0 | 0 | — |
case-04 | pass→pass | 10,149 | 9,597 | -5% | 1 | 1 | 0% | 972 | 2,028 | +109% | 0 | 0 | — |
case-05 | pass→pass | 42,912 | 34,958 | -19% | 1 | 1 | 0% | 2,687 | 3,361 | +25% | 0 | 0 | — |
case-06 | fail→fail | 7,682 | 19,179 | +150% | 1 | 1 | 0% | 319 | 2,105 | +560% | 0 | 0 | — |
case-07 | pass→pass | 27,881 | 17,134 | -39% | 1 | 1 | 0% | 1,542 | 3,439 | +123% | 0 | 0 | — |
case-08 | fail→pass | 11,123 | 13,077 | +18% | 1 | 1 | 0% | 674 | 2,761 | +310% | 0 | 0 | — |
case-09 | fail→pass | 11,149 | 14,426 | +29% | 1 | 1 | 0% | 967 | 2,712 | +180% | 0 | 0 | — |
case-10 | pass→pass | 28,690 | 14,061 | -51% | 1 | 1 | 0% | 2,095 | 1,641 | -22% | 0 | 0 | — |
case-11 | fail→pass | 12,906 | 13,345 | +3% | 1 | 1 | 0% | 1,114 | 2,656 | +138% | 0 | 0 | — |
case-12 | fail→fail | 10,877 | 8,761 | -19% | 1 | 1 | 0% | 1,206 | 1,918 | +59% | 0 | 0 | — |
case-13 | pass→pass | 16,511 | 14,303 | -13% | 1 | 1 | 0% | 1,783 | 2,526 | +42% | 0 | 0 | — |
case-14 | pass→pass | 12,809 | 9,875 | -23% | 1 | 1 | 0% | 1,239 | 2,019 | +63% | 0 | 0 | — |
case-15 | pass→pass | 16,355 | 13,129 | -20% | 1 | 1 | 0% | 940 | 2,510 | +167% | 0 | 0 | — |
case-16 | pass→pass | 28,669 | 20,324 | -29% | 1 | 1 | 0% | 2,618 | 2,753 | +5% | 0 | 0 | — |
case-17 | pass→pass | 11,376 | 14,731 | +29% | 1 | 1 | 0% | 843 | 2,808 | +233% | 0 | 0 | — |
case-18 | pass→pass | 12,747 | 12,178 | -4% | 1 | 1 | 0% | 1,128 | 2,248 | +99% | 0 | 0 | — |
case-19 | pass→pass | 14,139 | 5,277 | -63% | 1 | 1 | 0% | 1,531 | 1,929 | +26% | 0 | 0 | — |
case-20 | pass→pass | 8,261 | 11,732 | +42% | 1 | 1 | 0% | 1,168 | 2,281 | +95% | 0 | 0 | — |
case-21 | fail→pass | 12,357 | 12,076 | -2% | 1 | 1 | 0% | 1,138 | 2,129 | +87% | 0 | 0 | — |
case-22 | fail→pass | 11,263 | 11,005 | -2% | 1 | 1 | 0% | 871 | 1,671 | +92% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +36 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 8/24/2026 | +32% |
Other measured skills in the registry, with their headline benchmark lift.