Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/sxhmilyoyo/sundayhao-pluginsnpx agentmods add skills/sxhmilyoyo/sundayhao-plugins/session-recapWrote 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.
[](https://agentmods.dev/skills/sxhmilyoyo/sundayhao-plugins/session-recap)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.09229 |
| Opus 5.5 | $0.00016 | $0.03692 |
| Sonnet 5.5 | $0.00008 | $0.01846 |
| Haiku 4.5 | $0.00004 | $0.00923 |
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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 759 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: a recap runs in a dedicated recap session, started by the launcher. Not in the session being recapped, and not in whatever session you happen to have open. Phase 1.0 stops it otherwise.
-
Exit the work session. The SessionEnd hook finishes
session.mdand, whenauto_recapis notoff, stampsrecap_status: requestedon it. -
Start the recap through the launcher, which is also the command the start-of-session notice prints:
<plugin root>/hooks/scripts/recap_launcher.sh --manual {KB_PATH}/_sessions/YYYY-MM-DD/{session_id}/Inside Herdr this runs the recap in the pane you typed it in, if that pane is at a shell prompt, and opens one beside it if something is already running there — which is the case when a session runs this through its Bash tool. Anywhere else it prints a command to paste into a new terminal. Either way the recap session carries
SECOND_BRAIN_RECAP_OF, which is what makes its own hooks register it as a recap and never recap it in turn (ADR-0003).
Typing /second-brain:session-recap <folder> into an ordinary session stops at the gate on purpose. That
session has no recap_of, so finishing the recap there would either write the subject's description onto
the wrong note or leave this session to be recapped as if it had done the work.
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
What ships with it
28 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.
- CHANGELOG.md 57 KB
- README.md 24 KB
- references/best-practice-template.md 6.8 KB
- references/common-mistakes.md 7.3 KB
- references/completion-checklist.md 7.4 KB
- references/component-template.md 5.1 KB
- references/concept-template.md 4.6 KB
- references/cross-reference-guide.md 7.6 KB
- references/daily-log-template.md 6.2 KB
- references/distillation-guide.md 5.3 KB
- references/distilled-concept-template.md 4.3 KB
- references/improvement-scan.md 5.3 KB
- references/process-reflection-template.md 2.0 KB
- references/quality-standards.md 7.1 KB
- references/templates.md 2.9 KB
- scripts/analyze_for_distillation.sh 2.3 KB runs code
- scripts/count_wikilinks.sh 1.9 KB runs code
- scripts/detect_external_docs.sh 1.6 KB runs code
- scripts/detect_session_sources.sh 3.4 KB runs code
- scripts/generate_knowledge_base.sh 8.8 KB runs code
- scripts/generate_moc_canvas.sh 6.7 KB runs code
- scripts/parse_transcript.sh 14 KB runs code
- scripts/search_cross_references.sh 5.1 KB runs code
- scripts/validate_cross_references.sh 5.4 KB runs code
- scripts/validate_obsidian_syntax.sh 8.5 KB runs code
- scripts/verify_quality.sh 2.6 KB runs code
- scripts/verify_session_recap.sh 15 KB runs code
- VERSION 6 B
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.
- 6d ago Changed c22b9a7f0ebe
- 19d ago Changed · +100 lines 5afd73f45a7e
- 1mo ago Changed · +160 lines 770cfe6376df
- 1mo ago Changed · +7 lines 54025bb7898c
- 1mo ago First seen · 492 lines · 39 tokens per session scan A e5b7374ce501
session-recap is a skill published in the GitHub repository sxhmilyoyo/sundayhao-plugins (8 stars, last pushed 4d ago), licensed Apache-2.0. It adds 39 tokens to every session and 9,229 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-08-31.
Other skills, from other repositories
evolving-status
View Self-Evolving Loop session status, history, and memory metrics.
dream
Check this project's memory notes against the repo, fix the ones that went false, and tidy the index, as one git commit you can revert. Checks only notes that are new or name a changed file; pass all to check every note. Costs one Sonnet call per 15 notes, plus one.
pocket-init
Onboards an existing project onto Pocket by scanning its local configuration, writing a merge-safe project guide, and optionally calibrating a local Pocket Education learner profile. Trigger on "pocket-init", "set up pocket", "onboard this project", "generate CLAUDE.md", "generate AGENTS.md", or "enable education…
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.
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.
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…