/second-brain:capturefrom second-brain
Reads a source (URL, PDF, tweet, thread) and creates an atomic note in an Obsidian vault. Also handles vault lookups and extending existing notes.
Ships in second-brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write a note into the vault from a source the user hands you. One arc, six steps: open (search, fetch, ask why) -> read the primary source -> create through sb -> leave it in the inbox -> link connections -> fold in follow-ups. "Read this and make a note" means all six; the connect step won't happen unless this skill runs it.
Two requests take a different path through the same skill. Decide which one you have before Step 1:
| The user wants | Path |
|---|---|
| A source written up as a new note | Steps 1-6 below |
| To know what the vault already holds ("do we have notes on X", "find notes about X") | Lookup only |
| Something added to a note that already exists ("add this to the X note", "pull up the note for X", or a "yes, extend it" to Step 1) | Extend an existing note |
Note shape: references/note-format.md. sb commands: ../obsidian/references/sb-cli.md.
npx @techpickles/sb vault info
npx @techpickles/sb config qmd-collection
Read the vault's own CLAUDE.md if you haven't this session. Its policy (destinations, status
vocabulary, disambiguation) overrides the defaults here.
Do these in order, then end the turn. Nothing is written yet.
Start reading the source in the background (Bash with run_in_background), using the first
rung of references/fetch-ladder.md. Step 2 collects the result.
Search the vault while it runs, through the qmd MCP tools (shelling out to qmd hits
Metal-init failures under the sandbox):
mcp__qmd__query
searches: [{type: 'lex', query: '<one distinctive term>'},
{type: 'lex', query: '<another term>'},
{type: 'vec', query: '<what the note would say>'}]
collections: [<from sb config qmd-collection>]
intent: '<why you are searching>'
rerank: false
Each lex is one or two terms, because lex ANDs its terms. Also Glob today's inbox captures
(*/11 Inbox*/<YYYYMMDD>*.md), since the qmd index lags same-day notes.
Send one message with: the hits (path + snippet + why each looks strong or weak; qmd scores are only ranks), the question "what made you grab this?", and on a strong match "extend or start a new one?".
End the turn.
Then, keyed to what you observe:
**Why I saved this:** TODO.second-brain/: strip that prefix to get the path on disk.vec query.Never write from search snippets. If Josh names a fetch method, use it or say why you can't.
A few sites have their own playbook. Match the host; anything else goes down the ladder in references/fetch-ladder.md (lightpanda first, WebFetch last):
| Source | Playbook |
|---|---|
x.com, twitter.com | references/sites/x.md |
youtube.com, youtu.be | references/sites/youtube.md |
reddit.com, redd.it | references/sites/reddit.md |
| Any other URL, PDF, connector source | references/sites/web.md, which points at the ladder |
Each playbook also names frontmatter fields to add beside source in Step 3; carry them into the
note. New site: add references/sites/<site>.md and one row here.
If you cannot reach the source, or cannot find the thing the user described, stop and say so. No URL you did not load, no title you inferred, no details from background knowledge. "I couldn't find anything matching this" beats a plausible note that is wrong.
npx @techpickles/sb note create --source auto --title "<title>" # returns JSON with the path
Then replace the whole file at that path with this skeleton, filled in. Keep captured from sb's
scaffold; everything else in the scaffold goes. Add any site fields from the playbook to the
frontmatter beside source (see references/note-format.md).
---
status: seedling
tags: [topic-tag, another-tag]
created: YYYY-MM-DD
captured: <from sb's scaffold>
source: <the URL or file path you read>
---
# <Title, in the source's own framing>
<What it is, in a sentence or two, with an inline link to the source.>
**Why I saved this:** <the user's reason, in their words - or TODO>
<The content: 3+ parallel items become bullets with a bold lead-in; every named tool, project,
paper, or doc gets its link from the source; every sentence restates the source.>
## Related
- [[<note a search returned>]] - <why it relates>
Each slot's rules, with a worked example: references/note-format.md.
sb owns the path (inbox, timestamp, slug); hand-rolled Write paths once orphaned 46 notes.
process-inboxThe note stays where sb put it: don't ask about routing, don't route it, don't mention that it needs routing. This overrides the vault's "file rough, move on" guidance, which governs notes the user files by hand. Agent-written note on request -> inbox.
The exception is a destination the user named in the conversation ("put it in 66"). Resolve it as
route does: sb vault structure, match the phrase to a real destination, then
sb note move --from "{note-path}" --to "{destination}/". Never build the path from the user's
words alone.
Connection discovery doesn't fire on its own. Run it every time, using the Step 1 results plus a fresh search from the finished note's content. Only the note you just created changes on its own:
## Related with a few words on why, check the target's basename exists first, and say
Linked to <note>. in your summary.Then append the daily breadcrumb yourself, with no yes/no:
npx @techpickles/sb daily append --section "Links" --content "- [[<note>]] - <one-line why>"
sb creates today's daily note from the vault's template when needed and matches the existing
## Links heading. Keep it to the link line, and don't pre-check, hand-copy the template,
restructure the daily note, or verify where the line landed. Report it in one line
(Added breadcrumb to today's daily note.); if the append fails, say so. A "created": true
response means the note was seeded verbatim from the template, so leave any placeholder in it
alone.
End the summary with one line per proposal, in exactly this shape:
- [high|medium|low] <action in plain words> - <reason> (<path of the existing note>)
Actions: Add a link to this note from <note>, Make a note for <thing the source cites>,
Add this to <hub or list note>, Merge with <note>?, Link <note> too?.
Confidence is how sure you are Josh would say yes, with the reason as proof. Every target is a
note a search found, named by path. Skip the block when there is nothing to propose. For deeper
backlink weaving, hand off to the connect skill.
If right after capture the user asks about the thing the note covers ("is there a release date yet?"), answer and then update the note with the answer, rather than leaving it stale in chat. Say what you added in one line. This stops at a genuinely new note or source.
The user wants to know what's in the vault, not to write anything. Run Step 0 and the Step 1 search (qmd, today's inbox Glob), and skip the fetch and the why question, since there is no source.
If they say yes, you're on the new-note arc (Steps 1-6, reusing these hits) or the extend path.
The right move is often to edit a note that's already there (a stub, or a note on the same subject), not to mint a second one. Skip Steps 3 and 4; the rest of the arc applies.
Read the existing note first, and the real source (Step 2 still applies).
Edit in place with Edit, not sb. sb only creates. The note keeps its path and folder: don't
move it, don't rename it, don't touch status or its frontmatter beyond what the new content
needs.
Put the content where it belongs. Under an existing heading that fits, else a new ##
section before ## Related. Add only what the source says, with the same links and no-invention
rules as references/note-format.md. Leave what's already there
alone, and don't add a second **Why I saved this:**.
Confident links follow Step 5: same subject or named in the source, under the note's
## Related, skipping any already there.
Breadcrumb as in Step 5, but with updated so the daily note doesn't read like a new note:
npx @techpickles/sb daily append --section "Links" --content "- [[<note>]] - updated: <what you added>"
Closing proposals use the same block as Step 5. "Merge with ?" and "Add this to " don't apply to the note you just extended; a second existing note that also fits is a proposal, not an edit.
Several candidate notes? Edit the strongest one and propose the rest, unless the user said to cover them all.
For a batch of 3+ sources, dispatch one subagent per note, then do the cross-linking and closing proposals yourself. How: references/batch.md.
[[links]], no filled-in details.evals/README.md (opens in a new tab)evals/eval_config.yaml (opens in a new tab)evals/results/2026-08-14-no-pointer.json (opens in a new tab)evals/results/2026-08-14-pointer-scoped-to-create.json (opens in a new tab)evals/results/2026-08-14-pointer-widened.json (opens in a new tab)evals/results/2026-09-19-site-baseline.json (opens in a new tab)evals/results/2026-09-19-site-pointer.json (opens in a new tab)evals/scenarios/no-route-offer/scenario.yaml (opens in a new tab)evals/trigger-evals.json (opens in a new tab)evals/trigger_eval.py (opens in a new tab)references/batch.md (opens in a new tab)references/fetch-ladder.md (opens in a new tab)references/note-format.md (opens in a new tab)references/search-recovery.md (opens in a new tab)references/sites/reddit.md (opens in a new tab)references/sites/web.md (opens in a new tab)references/sites/x.md (opens in a new tab)references/sites/youtube.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Bashpython3 "${CLAUDE_PLUGIN_ROOT}"/hooks/check-sb-before-call.pyWebFetchpython3 "${CLAUDE_PLUGIN_ROOT}"/hooks/webfetch-prefer-lightpanda.pyThree short reads, in order
10 skills in this plugin
/connectFind related notes via semantic search and weave links. Stage 4 of the processing pipeline./devlogUse when finishing a feature, fixing a notable bug, wrapping up a work session, or discovering something non-obvious (a gotcha, undocumented behavior, a workaround that took several tries, a constraint you only noticed after hitting it). Write the entry immediately, in the same turn - don't ask permission, don't offer, just do it. Do NOT use for routing, connecting, or moving notes (that's process-inbox), and do NOT use for one-off external-source capture (that's second-brain:capture)./distill-rulesReview routing corrections and propose updates to vault CLAUDE.md routing rules./enrichTurn an ingested insight into a proper zettelkasten note with clean prose. Stage 2 of the processing pipeline./ingestTurn a raw session notes file into an ingested note, ready for the enrich stage. Defaults to keeping it whole; only splits when bullets show a real cross-topic signal. Stage 1 of the processing pipeline./link-dailyLink a processed note to today's daily note. Stage 5 of the processing pipeline.npx claudepluginhub technicalpickles/pickled-claude-plugins --plugin second-brainOther plugins' skills for the same job