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.
npx skills add sxhmilyoyo/sundayhao-plugins --skill session-recapgit clone --depth 1 https://github.com/sxhmilyoyo/sundayhao-pluginsWrote 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.04579 |
| Opus 5 | $0.00019 | $0.02289 |
| Sonnet 5 | $0.00008 | $0.00916 |
| Haiku 4.5 | $0.00004 | $0.00458 |
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.
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 — 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.
-
Exit the work session: The SessionEnd hook automatically saves transcript segments and builds
session.mdas a hub note with links to all artifacts. -
Start a new session: Begin fresh to run the recap
claude -
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
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 46 KB
- README.md 22 KB
- references/best-practice-template.md 6.8 KB
- references/common-mistakes.md 6.6 KB
- references/completion-checklist.md 5.9 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/process-reflection-template.md 4.5 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_project.sh 3.2 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 6.7 KB runs code
- scripts/search_cross_references.sh 5.1 KB runs code
- scripts/validate_cross_references.sh 4.8 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 12 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.
- 10d 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 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.
Other skills, from other repositories
evolving-status
View Self-Evolving Loop session status, history, and memory metrics.
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…
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…
memory-protocol
A shared set of rules for using a persistent memory service across coding-agent sessions.