save-topic

save-topic is a skill for Claude Code from hatawong/claude-recap. It costs 29 tokens per session (657 once invoked), scanned A, original, MIT.

A skill for saving a structured checkpoint of one or more discussion topics to a persistent file. The checkpoint can include status, decisions, failures, and next steps.

In plain words
What is it for?
Use it to save the current topic, a named topic, or all topics before ending a session or switching tasks.
Why use it?
It preserves useful progress when a session ends or work needs to be resumed later. This avoids reconstructing the discussion from memory.

Skill for Claude Code

Written for Claude Code: SessionStart hook event.

Part of the claude-recap plugin — 4 skills, 2 hooks shipped together

Good fit Use it to save the current topic, a named topic, or all…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hatawong/claude-recap/save-topic
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 hatawong/claude-recap --skill save-topic
Clone the repo
git clone --depth 1 https://github.com/hatawong/claude-recap

Made for: Claude Code.

Or install claude-recap, the plugin that ships this one along with the rest of its 4 skills, 2 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 save-topic

README.md
[![agentmods](https://agentmods.dev/badge/skills/hatawong/claude-recap/save-topic.svg)](https://agentmods.dev/skills/hatawong/claude-recap/save-topic)
Your own site
<a href="https://agentmods.dev/skills/hatawong/claude-recap/save-topic"><img src="https://agentmods.dev/badge/skills/hatawong/claude-recap/save-topic.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 657 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.00029 $0.00657
Opus 5 $0.00015 $0.00329
Sonnet 5 $0.00006 $0.00131
Haiku 4.5 $0.00003 $0.00066

Measured 7d ago against content hash 520b6ae762a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

save-topic 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 7d 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

1 near-identical copy found in the catalogue:

skills/save-topic/SKILL.md · 79 lines

How it starts

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

save-topic

Overview

Saves a structured summary of a topic to a persistent file. Supports saving the current topic, a specific topic by slug, or multiple topics at once.

Instructions

Preparation

  1. Get the session ID from the SessionStart injection in your context: [SessionStart] session=SESSION_ID source=...

  2. Get the plugin scripts path from the SessionStart injection: Plugin scripts path: /path/to/scripts

  3. Determine which topics to save:

    • "save topic" / "checkpoint" → current topic only
    • "save topic X" → the specified topic slug
    • "save all topics" → all topics in this session

Saving the current topic

  1. Get the current topic slug from your topic tag (the › \slug`` you've been outputting).

  2. Write a structured summary using the format below (section headings in English, content in user's language, skip empty sections):

## Status
What was done, key progress.

## Decisions
What was chosen, why, what was rejected.

## Failures
What was tried, why it failed, the fix or workaround.

## Next Steps
What to do next. Be specific and actionable.
  1. Run:
bash "<plugin_scripts_path>/save-topic.sh" "<slug>" "<session_id>" "<summary>"

Saving a non-current topic

For topics you are NOT currently discussing, your LLM context is likely incomplete. Use the --cold flag to force cold-read from JSONL:

bash "<plugin_scripts_path>/save-topic.sh" --cold "<slug>" "<session_id>" ""

The script will extract the conversation from JSONL and generate a summary via claude -p. The third argument (summary) is ignored when --cold succeeds.

Saving multiple topics

  1. Get all topic slugs by running extract-topic.js (same as list-topics skill step 4): node "<plugin_scripts_path>/extract-topic.js" "$HOME/.claude/projects/<project_id>/<session_id>.jsonl" __all__ Filter out __untagged__ from the output.
  2. Save the current topic using the normal path (LLM writes summary).
  3. Save each non-current topic using the --cold flag.

Read the full file on GitHub · 79 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. 7d ago First seen · 79 lines · 29 tokens per session scan A 520b6ae762a2

Subscribe to this mod's changes

save-topic is a skill published in the GitHub repository hatawong/claude-recap (39 stars, last pushed 6mo ago), licensed MIT. It adds 29 tokens to every session and 657 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

memory-write

Captures a durable fact to project memory through the kit's safe write path (PoisonGuard secret/injection screening + home-path sanitization + dedup + conflict detection) — preferring the cmk MCP tools (mkremember / mkforget / mktrust) when connected, falling back to the cmk CLI. Use when the user says "remember…

LH8PPL/core-memory-kit · 202 tokens

bootstrap

Scaffolds the core-memory-kit directory structure (context/, scripts/, cron/jobs/) into the current project. Idempotent — never overwrites existing files. Run once per project after installing the plugin. Use when the user says "bootstrap the memory system", "set up memory here", or "scaffold the memory kit".

LH8PPL/core-memory-kit · 66 tokens

troubleshooting

Diagnoses and repairs core-memory-kit itself when the memory system is broken — the per-failure-code repair book. Fire whenever a "⚠ [core-memory-kit]" whisper appears on the prompt (it names the failure and points here), or when the user reports a kit symptom however they phrase it: memory is not being saved, nothing…

LH8PPL/core-memory-kit · 159 tokens

memory-search

Searches the project's recorded memory (core-memory-kit) — decisions, conventions, architecture, the reasoning behind choices, and where things live — and returns a curated, cited summary. Fire whenever the answer might be something the project already established in past work, HOWEVER the question is phrased — any…

LH8PPL/core-memory-kit · 208 tokens

mem9

Persistent cloud memory for OpenClaw agents. Use when users say: "install mem9" "setup memory" "add memory plugin" "openclaw memory" "mem9 onboarding" "memory not working" "import memories" "upload sessions".

unvulcanised-watercress762/mem9 · 63 tokens

mem9

Persistent cloud memory for OpenClaw agents. Use when users say: "install mem9" "setup memory" "add memory plugin" "openclaw memory" "mem9 onboarding" "memory not working" "import memories" "upload sessions".

unvulcanised-watercress762/mem9 · 63 tokens