context-capture

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

Use when finishing a task at State 5 (Ship & Finish) or when the user explicitly asks to "save context", "guarda contexto", "record decisions", or "hand off" — writes ultra-compact persistent memory to context/memory/ and ensures target-project root AGENTS.md (<= 90 lines) stays wired to DESIGN.md and MEMORY.md across…

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - **Decisions**: <1-2 lines or pointer to ../architecture.md>.

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills
agentmods
npx agentmods add skills/jggomez/expert-ai-developer-skills/context-capture

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-capture

README.md
[![agentmods](https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/context-capture/github.svg)](https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/context-capture)
Your own site
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/context-capture"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/context-capture/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-capture

Your own site · 80×15
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/context-capture"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/context-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,596 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.00086 $0.01596
Opus 5.5 $0.00034 $0.00638
Sonnet 5.5 $0.00017 $0.00319
Haiku 4.5 $0.00009 $0.00160

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

Security

Grade A, and why

context-capture 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 4 executable files (scripts/context_common.py, scripts/context_pack.py, scripts/context_rollup.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-capture/SKILL.md · 82 lines

How it starts

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

Context Capture Skill

Overview

This skill preserves durable project context, architectural decisions, conventions, and active handoff state across AI sessions using the Cross-AI LLM Wiki (context/memory/) shared seamlessly between Claude Code and Google Antigravity. At milestone completion (State 5), it updates living wiki pages in-place, appends a concise daily log block, and ensures target user repositories maintain a concise root AGENTS.md (<= 90 lines) wired to executable commands, root DESIGN.md, and context/memory/MEMORY.md. It also supports an optional scripted archive mode (context/sessions/).

When to Use

Token Conservation & Trigger Timing Rules

  • At State 5 (Ship & Finish): Run ONLY after QA verification (exit code 0) and compliance audit (APPROVED) pass.
  • On explicit user handoff request: When the user asks to "save context", "guarda contexto", "record decisions", or "hand off" between Claude Code and Antigravity.
  • Standalone shared-context checkpoints: When closing a standalone session containing durable architectural or convention changes.

When NOT to Use

  • Intermediate workflow states (State 0–State 4): Never checkpoint every few tool calls or mid-implementation.
  • Read-only Q&A or exploration: Skip when zero code, architecture, or convention changes occurred.

Process

Mode A: Primary Cross-AI LLM Wiki (context/memory/) + Target-Project AGENTS.md Sync

  1. context/memory/MEMORY.md (Master Wiki Index & Handoff State, <= 80-100 lines):
    • Overwrite and compact in-place with three crisp blocks:
      1. Active Handoff State: Last AI host (Claude Code or Antigravity), active branch/task, completed milestone, and immediate next step.
      2. Key Architecture & Conventions Summary: High-signal bullets pointing to `[architecture.md]` (`./architecture.md`) and `[conventions.md]` (`./conventions.md`).
      3. Recent Daily Logs Index: Relative pointers to the 5 latest daily logs: `[YYYY-MM-DD.md]` (`./log/YYYY-MM-DD.md`).
  2. context/memory/architecture.md & context/memory/conventions.md:
    • Update in-place only when structural decisions, module boundaries, or durable coding/tooling conventions changed.
  3. context/memory/log/YYYY-MM-DD.md (Single Daily Chronological Log):
    • Append one concise 5–8 line milestone block per completed task:
      ## [HH:MM | Host: Claude Code | Antigravity] <Task Title>
      - **Outcome**: <1-2 lines of what was built and verified>
      - **Decisions**: <1-2 lines or pointer to ../architecture.md>
      - **Next / Pending**: <Immediate next step for the next AI session>
      
  4. Target-Project Root AGENTS.md Bootstrap / Sync (<= 90 lines):
    • When operating in a target user repository that lacks a root AGENTS.md—or when build/test/lint commands, tech stack, directory conventions, or root DESIGN.md changed—bootstrap or update root AGENTS.md (<= 90 lines, following the 4-section open AGENTS.md template in skills/loop-engineering/references/project-agents-template.md):
      1. ## 1. Project Overview & Tech Stack (3–5 lines)
      2. ## 2. Executable Commands (Install, Dev, Test, Lint / Typecheck, Build)
      3. ## 3. Architecture & Coding Conventions (directory layout & non-obvious invariants)
      4. ## 4. Design & Persistent Memory (explicit links to root DESIGN.md for UI tokens and context/memory/MEMORY.md + architecture.md/conventions.md/log/ for silent cross-session AI memory).

Read the full file on GitHub · 82 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. today First seen · 82 lines · 86 tokens per session scan A 27b1be347d3b

Subscribe to this mod's changes

context-capture is a skill published in the GitHub repository jggomez/expert-ai-developer-skills (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 86 tokens to every session and 1,596 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-capture compared with skills from other repositories

context-capture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-capturejggomez/expert-ai-developer-skillsSkill30yesterdayApache-2.0A86Claude Code, Codex
mem0-statusmem0ai/mem0Skill68k2d agoApache-2.0A44Claude Code, Codex
statusmem0ai/mem0Skill68k2d agoApache-2.0A54Claude Code
supermemorysupermemoryai/supermemorySkill32kyesterdayMITA81Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
browserwing-executorMemTensor/MemOSSkill12k2d agoApache-2.0A42Claude Code, Codex
potpie-repo-baselinepotpie-ai/potpieSkill5.8k7d agoApache-2.0A75Claude Code, Codex