capture-context

capture-context is a skill for Claude Code from alivecontext/alive. It costs 72 tokens per session (3,212 once invoked), scanned A, original, MIT.

A workflow for saving outside material—such as emails, meeting transcripts, screenshots, documents, files, articles, or research—into an organised context system. It identifies the material, records its source and sensitivity, stores the original content, and routes it to a bundle.

In plain words
What is it for?
Use it when external content is shared or when you need to check an inbox for unrouted files. It can also extract tasks from captured material.
Why use it?
Useful information arriving during a session can otherwise remain scattered or be forgotten. This workflow preserves the original material and helps place it where later work can find it.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: positional $N argument.

Part of the alive plugin — 17 skills, 5 hooks shipped together

Good fit Use it when external content is shared or when you need to check an inbox for unrouted files. It can also extract tasks from captured material.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivecontext/alive/capture-context
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 alivecontext/alive --skill capture-context
Clone the repo
git clone --depth 1 https://github.com/alivecontext/alive

Made for: Claude Code.

Or install alive, the plugin that ships this one along with the rest of its 17 skills, 5 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivecontext/alive/capture-context"><img src="https://agentmods.dev/badge/skills/alivecontext/alive/capture-context.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 3,212 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 54
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00072 $0.03212
Opus 5.5 $0.00029 $0.01285
Sonnet 5.5 $0.00014 $0.00642
Haiku 4.5 $0.00007 $0.00321

Measured 19d ago against content hash cf5843823459, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

capture-context 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 19d 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.

plugins/alive/skills/capture-context/SKILL.md · 321 lines

How it starts

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

Capture

Bring context in. The most important skill in the system.

If capture is hard, people skip it. If people skip it, the system dies. Capture must feel instant.


When It Fires

  • File pasted or dropped into conversation
  • Email forwarded or pulled via API
  • Transcript from a call or meeting
  • Screenshot shared
  • Content pasted from another app
  • API context pulled (Gmail, Slack, Calendar)
  • Research completed during a session
  • The human says "capture this" or "add this"
  • Squirrel detects external content and offers to capture
  • The human says "check inbox", "clear inputs", or "what's in my inbox"
  • Capture is invoked with no obvious in-conversation content (triggers inbox scan — see below)

Capture is one of two operations that writes mid-session (the other is bundle drafts). Everything else waits for save.


Three Stages

Stage 0 — Detect and Classify (instant)

No processing. Just identification.

  • ref_type — email, transcript, screenshot, document, message, article, research
  • sensitivity — public, private, restricted (default: private)
  • source — gmail, slack, web, manual, in-session

Stage 1 — Store Raw + Route to Bundle (always happens, non-negotiable)

Even if extraction fails or is skipped, the raw content is preserved.

Pre-capture check: Before proposing a destination, grep the target walnut's bundle manifests and brief.md files for the inbox filename. If found, the file is already referenced — route into that bundle's raw/ with a note "file was already cited by this bundle" rather than creating a duplicate reference elsewhere.

Routing decision: Check _kernel/now.json for an active bundle: field.

If active bundle exists — all three steps are mandatory, not optional:

  1. Write raw file → {bundle}/raw/[name].[ext] with frontmatter added (type, date, source, squirrel — see type-specific templates below)
  2. Update manifest → add entry to context_routes: list in {bundle}/context.manifest.yaml with path:, description:, type:, date: (see Manifest Enrichment below)
  3. Add inline summary → append structured summary to manifest body (## Summary, ## Key Points, ## Action Items) so the raw file rarely needs to be re-read

Read the full file on GitHub · 321 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. 19d ago Changed cf5843823459
  2. 21d ago Changed · -8 lines · -2 tokens per session 0ad57aa6651a
  3. 3mo ago First seen · 329 lines · 74 tokens per session scan A f3d4f2bdf966

Subscribe to this mod's changes

capture-context is a skill published in the GitHub repository alivecontext/alive (132 stars, last pushed 13d ago), licensed MIT. It adds 72 tokens to every session and 3,212 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-08-30.

Related

capture-context compared with skills from other repositories

capture-context next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
capture-contextalivecontext/aliveSkill13213d agoMITA72Claude Code
fresh-startegorfedorov/claude-context-optimizerSkill1377d agoMITA60Claude Code
doc-digestegorfedorov/claude-context-optimizerSkill1377d agoMITA75Claude Code
project-contextegorfedorov/claude-context-optimizerSkill1377d agoMITA81Claude Code
token-checkegorfedorov/claude-context-optimizerSkill1377d agoMITA66Claude Code
brain-logtoroleapinc/claude-brainSkill965mo agoMITB10Claude Code
writing-handoffse4thvin/context-handoffSkill16mo agoMITA93Claude Code