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 agentmods add skills/imtylerrrrrr/second-brain/setupnpx skills add Imtylerrrrrr/second-brain --skill setupgit clone --depth 1 https://github.com/Imtylerrrrrr/second-brainWhat 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 | $0.00051 | $0.00621 |
| Opus 5 | $0.00026 | $0.00311 |
| Sonnet 5 | $0.00010 | $0.00124 |
| Haiku 4.5 | $0.00005 | $0.00062 |
Grade B, and why
setup scanned grade B with 1 finding 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 yesterday.
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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
grep -qxF "<abs-vault-path>" ~/.claude/second-brain/vaults || echo "<abs-vault-path>" >> ~/.claude/second-brain/vaults How it starts
The opening of the file, as written. The whole thing — 37 lines — stays where its author put it; the contents beside it link to each section on GitHub.
second-brain: setup
One-time onboarding of a vault (a folder containing the user's git repos). All operations are idempotent; never overwrite an existing user file.
Steps
-
Locate the vault root. Default candidate: the current working directory. Count git repos directly under it (
ls -d */.git 2>/dev/null | wc -l). Present the candidate path + repo count and ask the user to confirm or supply a different absolute path. 0 repos → warn ("no git repos found here — sync will produce an empty board") but proceed if confirmed. -
Scaffold
Projects/— copy each template only if the destination does not exist:${CLAUDE_PLUGIN_ROOT}/templates/Projects/Dashboard.md→<vault>/Projects/Dashboard.md${CLAUDE_PLUGIN_ROOT}/templates/Projects/_PROTOCOL.md→<vault>/Projects/_PROTOCOL.md${CLAUDE_PLUGIN_ROOT}/templates/Projects/_TEMPLATE.md→<vault>/Projects/_TEMPLATE.md
-
Register the vault (idempotent):
mkdir -p ~/.claude/second-brain && touch ~/.claude/second-brain/vaults grep -qxF "<abs-vault-path>" ~/.claude/second-brain/vaults || echo "<abs-vault-path>" >> ~/.claude/second-brain/vaults -
First sync:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/sync.sh"— then read<vault>/Projects/_AUTO_status.mdand report which repos were found and which stubs were created. -
Merge the CLAUDE.md block. Read
${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE-block.md. In<vault>/CLAUDE.md:- file absent → create it containing exactly the block;
- file present without
<!-- second-brain:start -->→ append the block at the end; - markers present → replace everything between
<!-- second-brain:start -->and<!-- second-brain:end -->with the current block (idempotent re-run).
-
Summarize: vault path, repos found, stubs created, note that the plugin's Stop hook now refreshes git facts automatically (best-effort), and next steps —
/second-brain:start-sessionto begin;/second-brain:analyze <repo>to onboard notes properly.
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.
- yesterday First seen · 37 lines · 51 tokens per session scan B 357ff55a1ae0
setup is a skill published in the GitHub repository Imtylerrrrrr/second-brain (1 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 621 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
rubber-duck
Adversarial "rubber duck" review that turns explaining-out-loud into a hallucination check. The main session is the PRESENTER (it did the work — a design doc, investigation, or analysis — and holds the real reasoning) and reconstructs the topic to a LISTENER — a spawned subagent pinned to a DIFFERENT-vendor model that…
testing-api-authentication-weaknesses
Tests API authentication mechanisms for weaknesses including broken token validation, missing authentication on endpoints, weak password policies, credential stuffing susceptibility, token leakage in URLs or logs, and session management flaws. The tester evaluates JWT implementation, API key handling, OAuth flows, and…
Effective Memory
The essential habits for an AI agent with memory — session bookends, learning triggers, verification, safety, and the operational discipline that turns raw recall into compounding intelligence. Pinned, always-injected.
exam-study-guide
将已经讲完但尚未完成阶段门禁的一个章节整理成强类型教材清单,并在视觉模式下编译为公式可读、图片可见、知识点与全部对应例题逐项精讲的自包含 HTML/PDF。结构化工作区准备阶段完成证据、用户说 Markdown 公式仍是 raw LaTeX、图片缺失、要含课件/作业/Quiz/模拟考试题及答案的零基础讲义,或要求打印版时使用。.
exam-ingest
从学生上传的课件/大纲/老师勾的重点/真题,一键初始化并验证备考工作区:解析 PDF、DOCX、PPTX、 XLSX、常见独立图片与 txt/md,建立分章节 LLM Wiki、标准题库、结构化接管队列与进度状态;仅在 Python 确实无法运行时 明确降级为手动写盘。当工作区尚未建立、资料发生变化、或建库 readiness 被阻断时使用。.
oly-apps
Use when building a web app/api to present rich output or interactive experiences to users.