Conversation Compaction
Prismer-AI/PrismerCloud
Produce the SESSION PROJECTION of memory for an aging conversation slice.
Recover missing conversation context after explicit compaction or truncation, or when the user explicitly asks to recover prior work.
$ npx skills add jdrhyne/agent-skills --skill context-recovery -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jdrhyne/agent-skills context-recovery --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jdrhyne/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/context-recovery .claude/skills/context-recovery && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "context-recovery" agent skill from https://github.com/jdrhyne/agent-skills/tree/main/skills/context-recovery into .claude/skills/context-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-recovery", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jdrhyne/agent-skills/tree/main/skills/context-recoveryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jdrhyne/agent-skills --skill context-recovery -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jdrhyne/agent-skills context-recovery --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jdrhyne/agent-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/context-recovery .agents/skills/context-recovery && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "context-recovery" agent skill from https://github.com/jdrhyne/agent-skills/tree/main/skills/context-recovery into .agents/skills/context-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-recovery", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jdrhyne/agent-skills --skill context-recovery -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jdrhyne/agent-skills context-recovery --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jdrhyne/agent-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/context-recovery .cursor/skills/context-recovery && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "context-recovery" agent skill from https://github.com/jdrhyne/agent-skills/tree/main/skills/context-recovery into .cursor/skills/context-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-recovery", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jdrhyne/agent-skills.git --path skills/context-recovery--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jdrhyne/agent-skills --skill context-recovery -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jdrhyne/agent-skills context-recovery --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jdrhyne/agent-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/context-recovery .gemini/skills/context-recovery && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "context-recovery" agent skill from https://github.com/jdrhyne/agent-skills/tree/main/skills/context-recovery into .gemini/skills/context-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-recovery", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jdrhyne/agent-skills context-recoveryInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jdrhyne/agent-skills --skill context-recovery -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jdrhyne/agent-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/context-recovery .github/skills/context-recovery && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "context-recovery" agent skill from https://github.com/jdrhyne/agent-skills/tree/main/skills/context-recovery into .github/skills/context-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-recovery", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jdrhyne/agent-skills --skill context-recovery -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jdrhyne/agent-skills context-recovery --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jdrhyne/agent-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/context-recovery .opencode/skills/context-recovery && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "context-recovery" agent skill from https://github.com/jdrhyne/agent-skills/tree/main/skills/context-recovery into .opencode/skills/context-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-recovery", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
context-recoveryRecover missing conversation context after explicit compaction or truncation, or when the user explicitly asks to recover prior work.
Context Recovery is an agent skill from jdrhyne/agent-skills. Recover missing conversation context after explicit compaction or truncation, or when the user explicitly asks to recover prior work. Use for requests such as "where were we before compaction?" when the current thread is insufficient. Do not trigger on a generic "continue" when the current thread already provides an actionable next step.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files (for example `.clawhub/origin.json`, `_meta.json` and `tests/routing-and-safety.json`).
The repository describes itself as: A collection of AI agent skills for Clawdbot, Claude Code, Codex. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 439cd3a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context Recovery loads about 1.7k tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 825 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from jdrhyne/agent-skills at commit 439cd3a, republished under its MIT licence (© jdrhyne). 825 words, ~1,691 tokens.
.claude/skills/context-recovery/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.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:
## 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.
© jdrhyne, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files in skills/context-recovery of jdrhyne/agent-skills.
Open the folder on GitHubat commit 439cd3a
Context Recovery next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Context Recovery this skilljdrhyne/agent-skills | 240 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Conversation CompactionPrismer-AI/PrismerCloud | 1.6k | — | ~1.5k | Automated safety check: Pass | MIT | |
| Strategic Compactaffaan-m/ECC | 277k | 1 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Backup Recoverysickn33/agentic-awesome-skills | 47k | 2 repos | ~3k | Automated safety check: Warn | MIT | |
| Disaster Recoverysickn33/agentic-awesome-skills | 47k | 2 repos | ~3k | Automated safety check: Pass | MIT | |
| Modeling Conversion MetricsPostHog/posthog | 40k | — | ~1.4k | Automated safety check: Pass | Custom licence |
Prismer-AI/PrismerCloud
Produce the SESSION PROJECTION of memory for an aging conversation slice.
affaan-m/ECC
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
sickn33/agentic-awesome-skills
Implement backup and recovery strategies. An agent skill from sickn33/agentic-awesome-skills.
sickn33/agentic-awesome-skills
Implement disaster recovery strategies and runbooks. An agent skill from sickn33/agentic-awesome-skills.
PostHog/posthog
Build reusable conversion models — funnel/step conversion rates, drop-off, and time-to-convert — on either PostHog data-warehouse views (HogQL) or an external dbt project.
catlog22/Claude-Code-Workflow
Compact current session memory into structured text for session recovery.
jdrhyne/agent-skills
Gong API for searching calls, transcripts, and conversation intelligence.
jdrhyne/agent-skills
Generate beautifully designed PDF reports with a Nordic/Scandinavian aesthetic.
jdrhyne/agent-skills
Read Google Analytics 4 reporting data through the GA4 Data API.
jdrhyne/agent-skills
Bulk download images from login-protected gallery websites using an attached browser session.
jdrhyne/agent-skills
Read Google Search Console properties, Search Analytics, URL Inspection, and sitemaps.
jdrhyne/agent-skills
Upload, edit, and export documents via Nudocs.ai. An agent skill from jdrhyne/agent-skills.
Recover missing conversation context after explicit compaction or truncation, or when the user explicitly asks to recover prior work. Context Recovery is an agent skill from jdrhyne/agent-skills. Recover missing conversation context after explicit compaction or truncation, or when the user explicitly asks to recover prior work.
Context Recovery fits situations like: explicitly asks to recover prior work; requests such as where were we before compaction? when the current thread is insufficient; A generic continue when the current thread already provides an actionable next step.
Run `npx skills add jdrhyne/agent-skills --skill context-recovery -a claude-code`. Or copy the skill folder (skills/context-recovery in jdrhyne/agent-skills) into .claude/skills/context-recovery in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jdrhyne/agent-skills --skill context-recovery -a codex`. Or copy the skill folder (skills/context-recovery in jdrhyne/agent-skills) into .agents/skills/context-recovery in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jdrhyne/agent-skills --skill context-recovery -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-recovery, .gemini/skills/context-recovery, .github/skills/context-recovery and .opencode/skills/context-recovery in your project.
Going by SKILL.md and its folder, Context Recovery needs Python for the scripts in its folder. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Context Recovery is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Context Recovery: Conversation Compaction (Prismer-AI/PrismerCloud, 1.6k stars), Strategic Compact (affaan-m/ECC, 277k stars), Backup Recovery (sickn33/agentic-awesome-skills, 47k stars) and Disaster Recovery (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jdrhyne (a GitHub user) maintains it in jdrhyne/agent-skills, which has 240 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on August 30, 2026.
Source: jdrhyne/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.