context-management-context-restore

context-management-context-restore is a skill for Claude Code, Codex from rmyndharis/antigravity-skills. It costs 14 tokens per session (1,155 once invoked), scanned A, a copy of code-refactoring-context-restore, MIT.

A guide to restoring saved project information so an AI workflow can continue with relevant knowledge. It focuses on retrieving and rebuilding context across distributed, long-running work.

In plain words
What is it for?
Use it to design semantic context retrieval and reconstruct project state with as little missing information as possible.
Why use it?
It helps prevent the loss of project understanding between sessions or between cooperating AI agents.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design semantic context retrieval and reconstruct project state with as little missing information as possible.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rmyndharis/antigravity-skills/context-management-context-restore
About the project

Antigravity Skill Vault is a collection of reusable Agent Skills for Google Antigravity, covering software development, operations, security, and business work. It is for people who want Antigravity agents to follow specialized expertise, personas, and structured workflows. The catalogue skills are entries from this collection.

rmyndharis/antigravity-skills · 1,522 stars · on GitHub

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 rmyndharis/antigravity-skills --skill context-management-context-restore
Clone the repo
git clone --depth 1 https://github.com/rmyndharis/antigravity-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-management-context-restore

README.md
[![agentmods](https://agentmods.dev/badge/skills/rmyndharis/antigravity-skills/context-management-context-restore/github.svg)](https://agentmods.dev/skills/rmyndharis/antigravity-skills/context-management-context-restore)
Your own site
<a href="https://agentmods.dev/skills/rmyndharis/antigravity-skills/context-management-context-restore"><img src="https://agentmods.dev/badge/skills/rmyndharis/antigravity-skills/context-management-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-management-context-restore

Your own site · 80×15
<a href="https://agentmods.dev/skills/rmyndharis/antigravity-skills/context-management-context-restore"><img src="https://agentmods.dev/badge/skills/rmyndharis/antigravity-skills/context-management-context-restore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,155 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 94% copy Near-identical to another mod 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.00014 $0.01155
Opus 5 $0.00007 $0.00577
Sonnet 5 $0.00003 $0.00231
Haiku 4.5 $0.00001 $0.00115

Measured 7d ago against content hash 95cfc8b1c53e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

context-management-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 7d ago.

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.

Origin

This is a copy

94% identical to code-refactoring-context-restore — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/context-management-context-restore/SKILL.md · 179 lines

How it starts

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

Context Restoration: Advanced Semantic Memory Rehydration

Use this skill when

  • Working on context restoration: advanced semantic memory rehydration tasks or workflows
  • Needing guidance, best practices, or checklists for context restoration: advanced semantic memory rehydration

Do not use this skill when

  • The task is unrelated to context restoration: advanced semantic memory rehydration
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.

Role Statement

Expert Context Restoration Specialist focused on intelligent, semantic-aware context retrieval and reconstruction across complex multi-agent AI workflows. Specializes in preserving and reconstructing project knowledge with high fidelity and minimal information loss.

Context Overview

The Context Restoration tool is a sophisticated memory management system designed to:

  • Recover and reconstruct project context across distributed AI workflows
  • Enable seamless continuity in complex, long-running projects
  • Provide intelligent, semantically-aware context rehydration
  • Maintain historical knowledge integrity and decision traceability

Core Requirements and Arguments

Input Parameters

  • context_source: Primary context storage location (vector database, file system)
  • project_identifier: Unique project namespace
  • restoration_mode:
    • full: Complete context restoration
    • incremental: Partial context update
    • diff: Compare and merge context versions
  • token_budget: Maximum context tokens to restore (default: 8192)
  • relevance_threshold: Semantic similarity cutoff for context components (default: 0.75)

Advanced Context Retrieval Strategies

1. Semantic Vector Search

  • Utilize multi-dimensional embedding models for context retrieval
  • Employ cosine similarity and vector clustering techniques
  • Support multi-modal embedding (text, code, architectural diagrams)

Read the full file on GitHub · 179 lines

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. 7d ago First seen · 179 lines · 14 tokens per session scan A 95cfc8b1c53e

Subscribe to this mod's changes

context-management-context-restore is a skill published in the GitHub repository rmyndharis/antigravity-skills (1,522 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 1,155 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to code-refactoring-context-restore, differing in 4 lines, and is treated as a copy.

Related

Other skills, from other repositories

knowledge-base-update

Use this skill whenever you learn something important during a conversation: a key architectural decision, a project-specific convention, a bug root-cause, a 3rd-party API quirk, or any fact that would help a future agent avoid re-doing the same research. Writes structured entries to the project's knowledge base so…

omergocmen/vibe-coder-kit · 75 tokens

project-context-primer

Run this skill at the very start of any new conversation or agent session before writing a single line of code. It loads the project's architectural decisions, conventions, known gotchas, and current task status so the agent operates with full context — not as a blank slate.

omergocmen/vibe-coder-kit · 58 tokens

analyzing-memory-forensics-with-lime-and-volatility

Performs Linux memory acquisition using LiME (Linux Memory Extractor) kernel module and analysis with Volatility 3 framework. Extracts process lists, network connections, bash history, loaded kernel modules, and injected code from Linux memory images. Use when performing incident response on compromised Linux systems.

marysatasselshaped667/skills-collection-1 · 71 tokens

agent-memory-mcp

A hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

marysatasselshaped667/skills-collection-1 · 26 tokens

agent-memory-systems

You are a cognitive architect who understands that memory makes agents intelligent. You've built memory systems for agents handling millions of interactions. You know that the hard part isn't storing - it's retrieving the right memory at the right time.

marysatasselshaped667/skills-collection-1 · 48 tokens

Agent Memory Mcp

A hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

mayurrathi/awesome-agent-skills · 26 tokens