Agent skill

Memory Capture

by catlog22 in catlog22/Claude-Code-Workflow

Unified memory capture with routing - session compact or quick tips.

MITAuto-check passed

Install Memory Capture

skills CLI
$ npx skills add catlog22/Claude-Code-Workflow --skill memory-capture -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install catlog22/Claude-Code-Workflow memory-capture --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/catlog22/Claude-Code-Workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/memory-capture .claude/skills/memory-capture && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
memory-capture
GitHub stars
2.1k
Token cost
~1.1k tokens
SKILL.md length
323 words
Files
3
Skills in repo
82
Repo updated
First seen
Licence
MIT

At a glance

Unified memory capture with routing - session compact or quick tips.

  • Works in 3 steps: Parse Input & Route → Execute Selected Phase → Save via core_memory
  • Compact session
  • SKILL.md covers Architecture Overview, Execution Flow, Core Rules and Input Processing, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Memory Capture is an agent skill from catlog22/Claude-Code-Workflow. Unified memory capture with routing - session compact or quick tips. Triggers on "memory capture", "compact session", "save session", "quick tip", "memory tips", "记录", "压缩会话".

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `phases/01-compact.md` and `phases/02-tips.md`).

The repository describes itself as: JSON-driven multi-agent cadence-team development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution. The licence is MIT.

When your agent uses it

  • Compact session

Example prompts

  • “memory capture”
  • “compact session”
  • “save session”
  • “/memory-capture”

Requirements

  • Pre-approved tools (allowed-tools): mcp__ccw-tools__core_memory(*), Read(*), AskUserQuestion

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Parse Input & Route
  2. Execute Selected Phase
  3. Save via core_memory

What it can do on your machine

Read from SKILL.md and the folder at commit 07491b0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • mcp__ccw-tools__core_memory(*)
    • Read(*)
    • AskUserQuestion

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Memory Capture loads about 1.1k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 323 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from catlog22/Claude-Code-Workflow at commit 07491b0, republished under its MIT licence (© catlog22). 323 words, ~1,103 tokens.

Download SKILL.mdSave it as .claude/skills/memory-capture/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
memory-capture
description
Unified memory capture with routing - session compact or quick tips. Triggers on "memory capture", "compact session", "save session", "quick tip", "memory tips", "记录", "压缩会话".
allowed-tools
mcp__ccw-tools__core_memory(*), Read(*), AskUserQuestion

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):

SignalRouteExamples
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):

ModeDocumentPurpose
Compactphases/01-compact.mdFull session memory compression and structured export
Tipsphases/02-tips.mdQuick note-taking with tags and context
Step 3: Save via core_memory

Both phases converge on the same storage mechanism:

javascript
mcp__ccw-tools__core_memory({
  operation: "import",
  text: structuredText  // Generated by the selected phase
})

Core Rules

  1. Single Phase Execution: Only ONE phase executes per invocation - never both
  2. Content Faithful: Phase files contain full execution detail - follow them verbatim
  3. Absolute Paths: All file paths in output must be absolute
  4. No Summarization: Compact mode preserves complete plan verbatim - never abbreviate
  5. Speed Priority: Tips mode should be fast - minimal analysis overhead

Input Processing

Compact Mode Input
  • Optional: "session description" as supplementary context
  • Example: /memory-capture compact or /memory-capture "completed auth module"
Tips Mode Input
  • Required: <note content> - the tip/note text
  • Optional: --tag <tag1,tag2> for categorization
  • Optional: --context <context> for related code/feature reference
  • Example: /memory-capture tip "Use Redis for rate limiting" --tag config

Data Flow

User Input
    │
    ├─ [compact detected] → Read phases/01-compact.md
    │                        → Analyze session → Generate structured text
    │                        → core_memory import → Report Recovery ID
    │
    └─ [tips detected] → Read phases/02-tips.md
                         → Parse args → Gather context → Generate tip text
                         → core_memory import → Confirm with ID + tags

Error Handling

ErrorAction
core_memory import failsRetry once, then report error with structured text for manual save
No session context (compact)Warn user, generate with available info
Empty note content (tips)Ask user to provide content via AskUserQuestion
Ambiguous routingDefault to AskUserQuestion - never guess

© catlog22, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in .claude/skills/memory-capture of catlog22/Claude-Code-Workflow.

  • SKILL.md
  • phases/01-compact.md
  • phases/02-tips.md

Open the folder on GitHubat commit 07491b0

Compare with similar skills

Memory Capture next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Memory Capture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Memory Capture this skillcatlog22/Claude-Code-Workflow2.1k—~1.1kAutomated safety check: PassMIT
Strategic Compactaffaan-m/ECC274k1 repos~2.1kAutomated safety check: PassMIT
Capturealirezarezvani/claude-skills28k1 repos~2.8kAutomated safety check: PassMIT
Strategic Compactaffaan-m/ECC274k2 repos~434Automated safety check: PassMIT
Strategic Compactaffaan-m/ECC274k2 repos~724Automated safety check: PassMIT
Unified Memoryaffaan-m/ECC274k1 repos~2kAutomated safety check: PassMIT

Similar skills

  • Strategic Compact

    affaan-m/ECC

    Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.

    274k GitHub starsUsed in 1 repo~2.1k tokens
    Agent WorkflowsAuto-check passed
  • Capture

    alirezarezvani/claude-skills

    Captures and organizes chaotic brain dumps into a structured, actionable system with zero information loss.

    28k GitHub starsUsed in 1 repo~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Strategic Compact

    affaan-m/ECC

    任意の自動コンパクションではなく、タスクフェーズを通じてコンテキストを保持するための論理的な間隔での手動コンパクションを提案します。

    274k GitHub starsUsed in 2 repos~434 tokens
    Auto-check passed
  • Strategic Compact

    affaan-m/ECC

    임의의 자동 컴팩션 대신 논리적 간격에서 수동 컨텍스트 압축을 제안하여 작업 단계를 통해 컨텍스트를 보존합니다.

    274k GitHub starsUsed in 2 repos~724 tokens
    Auto-check passed
  • Unified Memory

    affaan-m/ECC

    Share durable, inspectable context and handoffs between Claude, Codex, Hermes, Cursor, OpenCode, and other agents through the local ECC Memory Vault.

    274k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Strategic Compact

    affaan-m/ECC

    建议在逻辑间隔处手动压缩上下文,以在任务阶段中保留上下文,而非任意的自动压缩。

    274k GitHub starsUsed in 3 repos~943 tokens
    Auto-check passed

More from catlog22/Claude-Code-Workflow

All 82 skills in this repo
  • Prompt Generator

    catlog22/Claude-Code-Workflow

    Generate or convert Claude Code prompt files — command orchestrators, skill files, agent role definitions, or style conversion of existing files.

    2.1k GitHub starsUsed in 1 repo~4.7k tokens
    Auto-check: notes
  • Ccw Help

    catlog22/Claude-Code-Workflow

    CCW command help system. An agent skill from catlog22/Claude-Code-Workflow.

    2.1k GitHub stars~2.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Team Ultra Analyze

    catlog22/Claude-Code-Workflow

    Deep collaborative analysis team skill. An agent skill from catlog22/Claude-Code-Workflow.

    2.1k GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check: notes
  • Brainstorm

    catlog22/Claude-Code-Workflow

    Unified brainstorming skill with dual-mode operation — auto mode (framework generation, parallel multi-role analysis, cross-role synthesis) and single role analysis.

    2.1k GitHub stars~4.8k tokensUpdated 3 mo ago
    Auto-check: notes
  • Ccw Chain

    catlog22/Claude-Code-Workflow

    Chain-based CCW workflow orchestrator. An agent skill from catlog22/Claude-Code-Workflow.

    2.1k GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check: notes
  • Delegation Check

    catlog22/Claude-Code-Workflow

    Check workflow delegation prompts against agent role definitions for content separation violations.

    2.1k GitHub stars~2.8k tokensUpdated 3 mo ago
    Auto-check: notes

Questions about Memory Capture

What does Memory Capture do?

Unified memory capture with routing - session compact or quick tips. Memory Capture is an agent skill from catlog22/Claude-Code-Workflow. Unified memory capture with routing - session compact or quick tips.

When should I use Memory Capture?

Memory Capture fits situations like: compact session.

How do I install Memory Capture in Claude Code?

Run `npx skills add catlog22/Claude-Code-Workflow --skill memory-capture -a claude-code`. Or copy the skill folder (.claude/skills/memory-capture in catlog22/Claude-Code-Workflow) into .claude/skills/memory-capture in your project. Claude Code loads it when a task matches its description.

How do I install Memory Capture in Codex?

Run `npx skills add catlog22/Claude-Code-Workflow --skill memory-capture -a codex`. Or copy the skill folder (.claude/skills/memory-capture in catlog22/Claude-Code-Workflow) into .agents/skills/memory-capture in your project. Codex loads it when a task matches its description.

Can I use Memory Capture in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add catlog22/Claude-Code-Workflow --skill memory-capture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memory-capture, .gemini/skills/memory-capture, .github/skills/memory-capture and .opencode/skills/memory-capture in your project.

What does Memory Capture need to run?

SKILL.md names no scripts, command-line tools or credentials: Memory Capture is instructions for the agent only. Its frontmatter pre-approves these tools: mcp__ccw-tools__core_memory(*), Read(*), AskUserQuestion.

Does Memory Capture access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Memory Capture safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Memory Capture use?

Memory Capture is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Memory Capture use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Memory Capture?

Skills that share tags, products or a category with Memory Capture: Strategic Compact (affaan-m/ECC, 274k stars), Capture (alirezarezvani/claude-skills, 28k stars), Strategic Compact (affaan-m/ECC, 274k stars) and Strategic Compact (affaan-m/ECC, 274k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memory Capture?

catlog22 (a GitHub user) maintains it in catlog22/Claude-Code-Workflow, which has 2,130 GitHub stars. The repository holds 82 skills in this directory. The repository was last updated on June 18, 2026.

Source: catlog22/Claude-Code-Workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.