memory-capture

memory-capture is a skill for Claude Code from catlog22/Claude-Code-Workflow. It costs 48 tokens per session (1,178 once invoked), scanned A, original, MIT.

A memory-capture tool that either compresses a work session for later recovery or saves a quick note, idea, snippet, or insight.

In plain words
What is it for?
It helps save full-session recovery notes and short tips into project memory.
Why use it?
It prevents useful context from being lost when a session ends or when you need to record something quickly.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit It helps save full-session recovery notes and short tips into project memory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/catlog22/claude-code-workflow/memory-capture
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 catlog22/Claude-Code-Workflow --skill memory-capture
Clone the repo
git clone --depth 1 https://github.com/catlog22/Claude-Code-Workflow

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/catlog22/claude-code-workflow/memory-capture"><img src="https://agentmods.dev/badge/skills/catlog22/claude-code-workflow/memory-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,178 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.00048 $0.01178
Opus 5.5 $0.00019 $0.00471
Sonnet 5.5 $0.00010 $0.00236
Haiku 4.5 $0.00005 $0.00118

Measured 1mo ago against content hash 77b76a1cdaa1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memory-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 1mo 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.

.claude/skills/memory-capture/SKILL.md · 130 lines

How it starts

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

Memory Capture Skill

Unified memory capture skill that routes to two execution modes:

  • Compact: Compress full session memory into structured text for recovery
  • Tips: Quick note-taking for ideas, snippets, and insights

Architecture Overview

┌─────────────────────────────────────────────────────┐
│  Memory Capture (Router)                            │
│  → Parse input → Detect mode → Route to phase       │
└───────────────┬─────────────────────────────────────┘
                │
        ┌───────┴───────┐
        ↓               ↓
  ┌───────────┐   ┌───────────┐
  │  Compact  │   │   Tips    │
  │  (Phase1) │   │  (Phase2) │
  │  Full     │   │  Quick    │
  │  Session  │   │  Note     │
  └─────┬─────┘   └─────┬─────┘
        │               │
        └───────┬───────┘
                ↓
        ┌───────────────┐
        │  core_memory  │
        │   (import)    │
        └───────────────┘

Execution Flow

Step 1: Parse Input & Route

Detect execution mode from user input:

Auto-Route Rules (priority order):

Signal Route Examples
Keyword: compact, session, 压缩, recovery, 保存会话 → Compact "compact current session"
Keyword: tip, note, 记录, 快速 → Tips "记录一个想法"
Has --tag or --context flags → Tips "note content" --tag bug
Short text (<100 chars) + no session keywords → Tips "Remember to use Redis"
Ambiguous or no arguments → AskUserQuestion /memory-capture

When ambiguous, use AskUserQuestion:

Question: "选择记忆捕获模式"
Options:
  1. Compact - 压缩当前完整会话记忆(用于会话恢复)
  2. Tips - 快速记录一条笔记/想法/提示

Step 2: Execute Selected Phase

Based on routing result, read and execute the corresponding phase:

Phase Reference Documents (read on-demand when phase executes):

Mode Document Purpose
Compact phases/01-compact.md Full session memory compression and structured export
Tips phases/02-tips.md Quick note-taking with tags and context

Read the full file on GitHub · 130 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 130 lines · 48 tokens per session scan A 77b76a1cdaa1

Subscribe to this mod's changes

memory-capture is a skill published in the GitHub repository catlog22/Claude-Code-Workflow (2,124 stars, last pushed 4mo ago), licensed MIT. It adds 48 tokens to every session and 1,178 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

alive-morning

Morning briefing -- read all walnut states, surface priorities, inbox count, stale walnuts, people nudges.

alivecontext/alive · 24 tokens

fresh-start

Continue in a new chat without losing anything — writes a compact handoff to paste into a fresh conversation. Use whenever the user wants to move to a new chat or conversation, hits usage limits, says replies got slow or Claude forgets earlier details, or the conversation has grown long.

egorfedorov/claude-context-optimizer · 60 tokens

token-check

Estimate how many tokens a pasted text, an attached file or the conversation so far takes, what it means for the context window and usage limits, and how to cut it. Use when the user asks how big something is in tokens, why they keep hitting limits, or whether a file is too large to send.

egorfedorov/claude-context-optimizer · 66 tokens

contextstream-coach

Coach this agent on work the person needs again and again, such as a weekly note, an article, a recap or an image series. Use it when the person starts a job for one of their workflows, reacts to a draft, or asks what was learned from earlier jobs. Goals, drafts and the person's own words are saved in their…

contextstream/mcp-server · 103 tokens

wrapup

Wrap up and save the current session summary to the session log. Use at end of session when the user says 'bye', 'wrap up', 'save session', or an end-of-session signal is detected. /wrapup writes to 07-logs/ only. Do NOT use for: promoting insights to memory/ (use recap), synthesizing a topic across sessions (use…

onebrain-ai/onebrain · 91 tokens

obsidian-todo-collector

An Obsidian note-organising tool that scans dated notes for unfinished events and plans, then gathers them into one tracking document. Obsidian is an app for storing linked notes as Markdown files.

cafe3310/public-agent-skills · 34 tokens