context-restore
Skill30 starsChanged 4 days agoApache-2.0View on GitHub
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/).
We split this skill into the rules it gives an agent
5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Orchestrator State 0 Silent Restore: When context/memory/MEMORY.md exists, silently absorb cross-AI handoff state (<= 80-100 lines) left by …
- Very specific: line 23
Read Master Index Only (
~500 tokens): If context/memory/MEMORY.md exists, read ONLY context/memory/MEMORY.md (<= 80-100 lines) to absorb … - Very specific: line 31
If exists: false, continue normally without noise.
- Very specific: line 47
Claude Code: Read context/memory/MEMORY.md silently in State 0.
- Very specific: line 48
Antigravity: Read context/memory/MEMORY.md silently in State 0.
“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.mdexists, 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/orcontext/, 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)
- Read Master Index Only (
~500 tokens): Ifcontext/memory/MEMORY.mdexists, read ONLYcontext/memory/MEMORY.md(<= 80-100 lines) to absorb active host, branch/task, recent decisions, and pointers to rootAGENTS.md(<= 90 lines),DESIGN.md(<= 110 lines), and the last 5 daily logs. - Drill Down Strictly on Demand: Open
context/memory/architecture.md,context/memory/conventions.md,DESIGN.md, or a specificcontext/memory/log/YYYY-MM-DD.mdonly when the active task touches that domain.
Mode B: Interactive Restore for Scripted Sessions (context/sessions/)
- Discover Sessions Non-Invasively:
Ifpython3 ./skills/context-restore/scripts/context_list.py --jsonexists: false, continue normally without noise. - Rank & Ask User Before Loading: Rank recent, matching, or
in-progress/blockedsessions first, then ask the user to selectFull(summary.md,decisions.md,architecture.md,preferences.md),Light(architecture.md+preferences.md),Just list, orSkip(honoringrestore.askBeforeLoadincontext/.contextrc.json). - 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.
Usage
Commands & Progressive Disclosure Reads
# Mode A — Read master wiki index first; open linked pages only on demand
cat context/memory/MEMORY.md
# Mode B — List scripted sessions (JSON or human-readable)
python3 ./skills/context-restore/scripts/context_list.py --json
python3 ./skills/context-restore/scripts/context_list.pyHost Execution Instructions
- Claude Code: Read
context/memory/MEMORY.mdsilently in State 0; in standalone mode, runcontext_list.py --jsonvia Bash and ask (Full / Light / Just list / Skip). - Antigravity: Read
context/memory/MEMORY.mdsilently in State 0; in standalone mode, usecontext-keeperorcontext_list.py --jsonwith user confirmation.
Red Flags
- Eager-reading all
context/memory/log/files or unpacking archives upfront instead of reading onlyMEMORY.mdfirst. - Loading
context/sessions/archives in standalone mode without asking the user (Full / Light / Just list / Skip). - Silently following an outdated decision that conflicts with explicit new user instructions.
Verification
- In State 0, only
context/memory/MEMORY.md(~500 tokens) is read initially; linked pages load strictly on demand. - In standalone
context/sessions/mode, discovery runs cleanly and user confirms (Full / Light / Just list / Skip) before ingestion:python3 ./skills/context-restore/scripts/context_list.py --json - Active branch, decisions, and pending items are honored without token bloat.
References
- Restore checklist
Other versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 24
- garrytan/gstack★ 139ksame name
- Quarktex/qcobrain★ 4same name
- GTMify/claude-skills-starter★ 2same name
- HanksChen0110/skills★ 2same name
- chloropine/cgstack★ 1same name
- IyedBecheikh/bstack★ 1same name
- jpoindexter/theft-kit★ 1same name
- leishifu666/skills★ 1same name
- mahiunfiltered/claude-code-skills★ 1same name
- manastalukdar/ai-devstudio★ 1same name
14 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use ios-clean, ios-fix and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Saqlain-811Skillios-clean
Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)
Also in 5 projects that use this
Saqlain-811Skillios-fix
Autonomous iOS bug fixer. (gstack)
Also in 5 projects that use this
bastosSkillios-design-review
Review iOS app UI/UX design quality using Apple's design principles and the Liquid Glass-era design language from WWDC25/26. Use when asked for a design review, UX critique, visual design assessment, or evaluation of an app's interface quality, design intent, alignment with the new Apple design system, or usability. Triggers: "design review", "UX review", "visual design critique", "review the UI", "does this design work", "evaluate this interface", "design feedback", "Liquid Glass review".
Also in 5 projects that use this
SentrySkillspec
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.
Also in 7 projects that use this
johnlindquistSkilldiagram
Maintain and synchronize Unified Impact Diagrams following Diagram Driven Development (DDD) methodology. Create, update, and manage diagrams that connect user value to technical implementation.
Also in 3 projects that use this
- +3 more from Saqlain-811
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adversarial-challengerSkill
- agent-metricsSkill
- bigquery-query-optimizationSkill
- blackbox-testerSkill
- build-and-ci-gatesSkill
- cdc-scd-patternsSkill
- code-criticSkill
- code-implementerSkill
- code-smells-expertSkill
- commit-expertSkill
- compliance-verifierSkill
- context-captureSkill
- database-migration-expertSkill
- design-spec-expertSkill
- documentation-expertSkill
- flutter-architecture-decisionsSkill
- flutter-performance-profilingSkill
- flutter-release-engineeringSkill
- flutter-review-checklistSkill
- flutter-senior-orchestrationSkill
- flutter-test-strategySkill
- flutter-upgrade-migrationSkill
- gcp-data-engineeringSkill
- guidelines-karpathySkill
- loop-engineeringSkill
- performance-scalabilitySkill
- product-analystSkill
- pull-request-expertSkill
- python-expertSkill
- qa-testerSkill
- refactoring-code-expertSkill
- repo-researchSkill
- security-auditSkill
- senior-architect-engineeringSkill
- senior-dev-orchestratorSkill
- sql-query-optimizationSkill
- test-driven-developmentSkill
- testing-expertSkill
- ui-ux-designerSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

