code-refactoring-context-restore

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

A guide for recovering the relevant project knowledge needed to continue work after context has been lost across long-running or distributed coding tasks.

In plain words
What is it for?
Use it when restoring project goals, constraints, decisions, and working context for an ongoing software task.
Why use it?
It reduces the risk of repeating work or making decisions without important earlier information.

Skill for Claude CodeCodex

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

Good fit Use it when restoring project goals, constraints, decisions, and working context for an ongoing software task.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rmyndharis/antigravity-skills/code-refactoring-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,502 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 code-refactoring-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 code-refactoring-context-restore

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rmyndharis/antigravity-skills/code-refactoring-context-restore"><img src="https://agentmods.dev/badge/skills/rmyndharis/antigravity-skills/code-refactoring-context-restore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,157 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00016 $0.01157
Opus 5 $0.00008 $0.00579
Sonnet 5 $0.00003 $0.00231
Haiku 4.5 $0.00002 $0.00116

Measured 9d ago against content hash 6a11fc47542b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

code-refactoring-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 9d 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

Copies of this mod

5 near-identical copies found in the catalogue:

skills/code-refactoring-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. 9d ago First seen · 179 lines · 16 tokens per session scan A 6a11fc47542b

Subscribe to this mod's changes

code-refactoring-context-restore is a skill published in the GitHub repository rmyndharis/antigravity-skills (1,502 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 1,157 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other skills, from other repositories

incident-response

When something breaks in production: triage the severity, gather evidence, identify root cause, deploy a fix or mitigation, and write a post-mortem. Provides a calm, structured process for high-stress moments.

omergocmen/vibe-coder-kit · 47 tokens

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

mm-doctor

A diagnostic workflow for checking the health of the mm system, including its configuration, project links, note vault, passports, session archive, and planning consistency.

mworldorg/markdown-memory · 126 tokens

kuma-mcp

Kuma MCP — safety toolkit for AI coding agents.

plumpslabs/kuma · 15 tokens

context-degradation

Language models exhibit predictable degradation patterns as context length increases. Understanding these patterns is essential for diagnosing failures and designing resilient systems.

sinhoneyy/master-skills · 28 tokens