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 jessepinkman9900/claude-second-brain --skill brain-refreshgit clone --depth 1 https://github.com/jessepinkman9900/claude-second-brainWrote 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/jessepinkman9900/claude-second-brain/brain-refresh)<a href="https://agentmods.dev/skills/jessepinkman9900/claude-second-brain/brain-refresh"><img src="https://agentmods.dev/badge/skills/jessepinkman9900/claude-second-brain/brain-refresh.svg" alt="Measured on agentmods" 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.00074 | $0.00738 |
| Opus 5 | $0.00037 | $0.00369 |
| Sonnet 5 | $0.00015 | $0.00148 |
| Haiku 4.5 | $0.00007 | $0.00074 |
Grade A, and why
brain-refresh 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 8d 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 — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Brain Refresh
Refreshes the qmd index so search reflects the current state of the vault. Wraps pnpm qmd:reindex (incremental) and the qmd CLI's force-embed flag.
Brain Discovery
All commands target the default brain registered in ~/.claude-second-brain/config.toml.
Resolve the brain root via the CLI and run qmd through the CLI proxy:
BRAIN_PATH=$(npx -y claude-second-brain path)
npx -y claude-second-brain qmd -- status
Pass --brain <name> before the -- to target a non-default brain.
When to Use
- After a
/brain-ingestsession (or several) — batch the refresh, don't run after every file edit - After manual edits to
wiki/orraw-sources/files - When
/brain-searchresults feel stale or miss recently added content - After upgrading
@tobilu/qmdor changing the embedding model — useforcemode
Procedure
All pnpm qmd:* commands must run from $BRAIN_PATH; the CLI proxy (claude-second-brain qmd) works from anywhere.
Default — Incremental Refresh
Run:
cd "$BRAIN_PATH" && pnpm qmd:reindex
This script does two things:
- Update — scans collections for new, changed, or deleted files and updates the index
- Embed — generates vector embeddings for any chunks that need them
Only chunks that changed get re-embedded, so this is fast on subsequent runs.
Force Mode (force argument)
When the user passes force, re-embed every chunk — not just the changed ones. Use after embedding-model changes or if embeddings appear corrupted.
# Step 1 — update the file index first
cd "$BRAIN_PATH" && pnpm qmd:reindex
# Step 2 — force re-embed everything
npx -y claude-second-brain qmd -- embed -f
Force mode is slow — confirm with the user before proceeding if the wiki is large.
Verify
After refresh, confirm with:
npx -y claude-second-brain qmd -- status
Document and embedding counts should be non-zero and reflect recent activity. If embeddings show as 0 or far below document count, re-run the refresh.
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.
- 8d ago First seen · 77 lines · 74 tokens per session scan A 9639f46d8200
brain-refresh is a skill published in the GitHub repository jessepinkman9900/claude-second-brain (47 stars, last pushed 4mo ago), licensed MIT. It adds 74 tokens to every session and 738 once invoked, about $0.0004 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.
Other skills, from other repositories
waku-computer-use
Control local Mac apps through Waku Computer Use for tasks that require reading or operating app UI. Prefer purpose-built connectors, APIs, or CLIs when available.
x-to-obsidian
Capture high-signal X/Twitter posts into an Obsidian vault through the official Obsidian Web Clipper, then let LLM Wiki search, review, and promote the saved notes.
sync
Pull mentions, DMs, hot channel topics, calendar events, and Linear updates from the last 48h (24h for Slack DMs) into the wiki daily folder, and snapshot active vault notes. Sources: Gmail, Slack, Linear, Google Calendar, local wiki/notes/. Creates wiki/daily/ /{mentions.md, topics.md, linear.md, calendar.md…
note
Capture a short, time-bound note in the wiki vault under wiki/notes/. Notes carry a kind (task or reminder) and a due time. They auto-expire 7 days after creation — expired notes never resurface in /sync or /sup. /note writes the note file, updates wiki/notes/index.md, optionally touches wiki/hot.md if the due is in…
obsidian-setup
Guide the user through connecting Obsidian Bridge in three calm steps. Use when the plugin is newly installed, Obsidian is offline, the API key is missing/invalid, or the user asks how to connect Obsidian.
wiki-prune
Weekly janitor for the Obsidian wiki. Archives wiki/daily/YYYY-MM-DD/ folders older than 7 days into wiki/.archive/YYYY-WW/, keeping the rolled-up summaries that wiki-fold produced. Dry-run by default; --commit moves the folders; --hard deletes archive entries older than 30 days. Suggested cadence: every Monday…