session-recap

session-recap is a skill for Claude Code from sxhmilyoyo/sundayhao-plugins. It costs 39 tokens per session (4,579 once invoked), scanned A, original, Apache-2.0.

A workflow for turning a Claude Code session into concise, linked project documentation. It extracts decisions, workflows, and edge cases into a knowledge bank rather than keeping a full transcript.

In plain words
What is it for?
Use it to summarize a finished coding session, capture reusable knowledge, and link the result to related project notes.
Why use it?
It preserves useful lessons from completed work without requiring someone to reread a long session transcript. It is intended to run in a new session after the work ends.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the second-brain plugin — 5 skills, 3 hooks shipped together

Good fit Use it to summarize a finished coding session, capture reusable knowledge, and link the result to related project notes.

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

Made for: Claude Code.

Or install second-brain, the plugin that ships this one along with the rest of its 5 skills, 3 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 session-recap

README.md
[![agentmods](https://agentmods.dev/badge/skills/sxhmilyoyo/sundayhao-plugins/session-recap/github.svg)](https://agentmods.dev/skills/sxhmilyoyo/sundayhao-plugins/session-recap)
Your own site
<a href="https://agentmods.dev/skills/sxhmilyoyo/sundayhao-plugins/session-recap"><img src="https://agentmods.dev/badge/skills/sxhmilyoyo/sundayhao-plugins/session-recap/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 session-recap

Your own site · 80×15
<a href="https://agentmods.dev/skills/sxhmilyoyo/sundayhao-plugins/session-recap"><img src="https://agentmods.dev/badge/skills/sxhmilyoyo/sundayhao-plugins/session-recap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,579 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.00039 $0.04579
Opus 5 $0.00019 $0.02289
Sonnet 5 $0.00008 $0.00916
Haiku 4.5 $0.00004 $0.00458

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

Security

Grade A, and why

session-recap 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 10d ago.

The scan reads SKILL.md. This mod also ships 13 executable files (scripts/analyze_for_distillation.sh, scripts/count_wikilinks.sh, scripts/detect_external_docs.sh, …), 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.

second-brain/skills/session-recap/SKILL.md · 492 lines

How it starts

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

Session Recap

Systematically document Claude Code sessions into the knowledge bank.

Knowledge Bank Location: Read from ~/.claude/plugins/config/second-brain/config.json. Configure via skills/common/setup_kb_path.sh --configure.

Philosophy: Knowledge Bank = BRAIN, not ARCHIVE. Preserve workflows, edge cases, decisions—not verbose traces. Target 95% size reduction, 100% actionable knowledge.


Invocation

Recommended Workflow

Important: Session recap should run in a new session after the work session ends. This ensures the full transcript is captured.

  1. Exit the work session: The SessionEnd hook automatically saves transcript segments and builds session.md as a hub note with links to all artifacts.

  2. Start a new session: Begin fresh to run the recap

    claude
    
  3. Invoke session-recap with the session folder:

    Recap the session at {KB_PATH}/_sessions/YYYY-MM-DD/{session_id}/
    

    Or:

    /second-brain:session-recap {KB_PATH}/_sessions/YYYY-MM-DD/{session_id}/
    

Legacy: Raw Transcript Path

If no session folder exists (e.g., hooks were not configured), you can still provide a raw .jsonl transcript path:

Recap the session at /path/to/session-id.jsonl

Why a New Session?

Running session-recap in the same session would miss the final conversation context. The transcript must be fully saved before knowledge extraction can begin.

Manual Invocation

  • Slash command: /second-brain:session-recap
  • Skill tool: Skill({ skill: "second-brain:session-recap" })

Visibility Settings

Setting Value Effect
user-invocable true Visible in slash menu, Skill tool allowed

RFC 2119 Keywords

This skill uses RFC 2119 keywords:

  • MUST: Absolute requirement, cannot be skipped
  • SHOULD: Valid exceptions may exist but require conscious weighing
  • MAY: Truly optional

Full Recap — No Shortcuts

Read the full file on GitHub · 492 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. 10d ago First seen · 492 lines · 39 tokens per session scan A e5b7374ce501

Subscribe to this mod's changes

session-recap is a skill published in the GitHub repository sxhmilyoyo/sundayhao-plugins (8 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 39 tokens to every session and 4,579 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

evolving-status

View Self-Evolving Loop session status, history, and memory metrics.

claude-world/director-mode-lite · 17 tokens

pocket-init

Onboards an existing (brownfield) project onto Pocket. Scans the codebase and writes a project memory file (CLAUDE.md or AGENTS.md), optionally enables Pocket Enterprise (mode init) and scaffolds GitHub issue/PR templates. Trigger on "pocket-init", "set up pocket", "onboard this project", "generate CLAUDE.md", "enable…

rfxlamia/pocketto · 85 tokens

learn-from-fix

Capture Elixir/Ecto/LiveView lessons and Hex API rules. Use after corrections or when asked to document learning, record a lesson, prevent a fixed mistake, or remember package guidance with --library.

oliver-kriska/claude-elixir-phoenix · 46 tokens

compound-docs

Searchable Elixir/Phoenix/Ecto solution documentation system with YAML frontmatter. Builds institutional knowledge from solved problems. Use when consulting past solutions before investigating new issues.

oliver-kriska/claude-elixir-phoenix · 38 tokens

cdb-scan

Map this codebase into project memory — a code graph of every symbol and how they connect, plus a written profile of stack, layout, conventions and workflows. Re-run any time to refresh both in place. Use when memory is newly installed on an existing project, or when the project has changed enough that the stored map…

Avijit07x/claude-db · 72 tokens

memory-protocol

A shared set of rules for using a persistent memory service across coding-agent sessions.

vbcherepanov/total-agent-memory · 120 tokens