context-restore

context-restore is a skill for Claude Code, Codex from jggomez/expert-ai-developer-skills. It costs 72 tokens per session (1,093 once invoked), scanned A, original, Apache-2.0.

Use at session start (State 0) or when asked to "load context", "catch up", or "what was done before" — prioritizes LLM Wiki Progressive Disclosure (context/memory/MEMORY.md) across Claude Code and Google Antigravity while supporting user-confirmed restore for scripted sessions (context/sessions/).

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions AGENTS.md.

Install with agentmods
npx agentmods add skills/jggomez/expert-ai-developer-skills/context-restore
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jggomez/expert-ai-developer-skills --skill context-restore
Clone the repo
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-restore

README.md
[![agentmods](https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/context-restore/github.svg)](https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/context-restore)
Your own site
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/context-restore"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/context-restore/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-restore

Your own site · 80×15
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/context-restore"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/context-restore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,093 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.01093
Opus 5.5 $0.00029 $0.00437
Sonnet 5.5 $0.00014 $0.00219
Haiku 4.5 $0.00007 $0.00109

Measured today against content hash 666b017d8eab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-restore scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/context_list.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/antigravity/python-backend/skills/context-restore/SKILL.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context Restore Skill

Overview

This skill restores durable repository memory, decisions, conventions, and active handoff state across Claude Code and Google Antigravity. It prioritizes LLM Wiki Progressive Disclosure (context/memory/MEMORY.md) for ~500-token State 0 handoffs while preserving interactive, user-confirmed restoration for standalone scripted session stores (context/sessions/).

When to Use

Trigger Scenarios

  • Orchestrator State 0 Silent Restore: When context/memory/MEMORY.md exists, silently absorb cross-AI handoff state (<= 80-100 lines) left by Claude Code or Antigravity.
  • Explicit User Handoff Resume: "load context", "catch me up", "resume where Claude Code / Antigravity left off".
  • Standalone Session Discovery: Inspecting historical archives in context/sessions/.

When NOT to Use

  • Repositories without context/memory/ or context/, or when the user explicitly asks to start fresh.
  • Saving new milestones or handoffs: Route to context-capture.

Process

Mode A: LLM Wiki Progressive Disclosure (context/memory/ — Primary)

  1. Read Master Index Only (~500 tokens): If context/memory/MEMORY.md exists, read ONLY context/memory/MEMORY.md (<= 80-100 lines) to absorb active host, branch/task, recent decisions, and pointers to root AGENTS.md (<= 90 lines), DESIGN.md (<= 110 lines), and the last 5 daily logs.
  2. Drill Down Strictly on Demand: Open context/memory/architecture.md, context/memory/conventions.md, DESIGN.md, or a specific context/memory/log/YYYY-MM-DD.md only when the active task touches that domain.

Mode B: Interactive Restore for Scripted Sessions (context/sessions/)

  1. Discover Sessions Non-Invasively:
    python3 ./skills/context-restore/scripts/context_list.py --json
    
    If exists: false, continue normally without noise.
  2. Rank & Ask User Before Loading: Rank recent, matching, or in-progress/blocked sessions first, then ask the user to select Full (summary.md, decisions.md, architecture.md, preferences.md), Light (architecture.md + preferences.md), Just list, or Skip (honoring restore.askBeforeLoad in context/.contextrc.json).
  3. Ingest Approved Scope & State Adoption: Unpack flows only if needed (python3 ./skills/context-capture/scripts/context_pack.py --unpack <session-id>), then state adopted decisions, resumed TODOs, and any conflicts with the current prompt.

Read the full file on GitHub · 65 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 65 lines · 72 tokens per session scan A 666b017d8eab

Subscribe to this mod's changes

context-restore is a skill published in the GitHub repository jggomez/expert-ai-developer-skills (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 72 tokens to every session and 1,093 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

context-restore compared with skills from other repositories

context-restore next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-restorejggomez/expert-ai-developer-skillsSkill30yesterdayApache-2.0A72Claude Code, Codex
wegent-knowledgewecode-ai/WegentSkill882yesterdayApache-2.0A60Claude Code, Codex
ASCII Artagentic-in/elephant-agentSkill5842mo agononeB47Claude Code, Codex
llm-integrationLuuOW/meridian-mcpSkill024d agoMITA29Claude Code, Codex
agent-v3-memory-specialistruvnet/rufloSkill81kyesterdayMITA25Claude Code
statusmem0ai/mem0Skill68k2d agoApache-2.0A54Claude Code
emerging-techniques-long-contextdavila7/claude-code-templatesSkill33kyesterdayMITA78Claude Code, Codex