setup

setup is a command for Claude Code from technicalpickles/pickled-claude-plugins. It costs 7 tokens per session (1,160 once invoked), scanned A, original, MIT.

A setup command for configuring one or more Obsidian vaults, which are folders containing your notes. It checks the vault settings and creates a configuration file for the coding agent.

In plain words
What is it for?
Use it to add or reconfigure a vault and prepare a plain Markdown folder for use as a second brain.
Why use it?
It avoids manually finding note folders, templates, inboxes, and attachments. It also warns when a folder may not be an Obsidian vault.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the second-brain plugin — 11 skills, 7 commands shipped together

Good fit Use it to add or reconfigure a vault and prepare a plain Markdown folder for use as a second brain.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add technicalpickles/pickled-claude-plugins
Claude Code
/plugin install second-brain

Made for: Claude Code.

Or install second-brain, the plugin that ships this one along with the rest of its 11 skills, 7 commands.

Wrote 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.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/technicalpickles/pickled-claude-plugins/setup/github.svg)](https://agentmods.dev/commands/technicalpickles/pickled-claude-plugins/setup)
Your own site
<a href="https://agentmods.dev/commands/technicalpickles/pickled-claude-plugins/setup"><img src="https://agentmods.dev/badge/commands/technicalpickles/pickled-claude-plugins/setup/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.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/technicalpickles/pickled-claude-plugins/setup"><img src="https://agentmods.dev/badge/commands/technicalpickles/pickled-claude-plugins/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,160 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00007 $0.01160
Opus 5.5 $0.00003 $0.00464
Sonnet 5.5 $0.00001 $0.00232
Haiku 4.5 $0.00001 $0.00116

Measured 1mo ago against content hash 73d926cd7dd3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup 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 1mo 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.

plugins/second-brain/commands/setup.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Second Brain Setup

Configure vault paths and scaffold vault CLAUDE.md.

For sb CLI details, see references/sb-cli.md.

Step 1: Check Existing Config

Check if vaults are already configured:

npx @techpickles/sb config vaults

This returns JSON with configured vaults.

If this fails, run ${CLAUDE_PLUGIN_ROOT}/scripts/diagnose-sb.sh for a one-shot diagnosis rather than re-deriving the checks by hand.

If vaults exist, show current and ask:

  • Add another vault?
  • Reconfigure existing vault?
  • Cancel

Step 2: Get Vault Path

Ask user for vault path. No assumed locations, just ask directly:

"Where is your Obsidian vault located? (full path)"

Step 3: Validate Vault

Check the path exists:

ls -d "{path}" 2>/dev/null

Parse .obsidian config (if present):

npx @techpickles/sb vault obsidian --path "{path}"

This outputs JSON with:

  • Daily notes folder and template
  • Templates folder
  • Inbox/new notes folder
  • Attachments folder

If .obsidian/ missing, sb will indicate this in the output:

  • Might not be an Obsidian vault
  • Offer to continue anyway (for plain markdown repos)
  • Or user can open folder in Obsidian first to initialize

Step 4: Confirm Settings

Show detected settings from the sb output:

Detected from .obsidian/:
- Daily notes: Fleeting/ (template: Templates/daily)
- Templates: Templates/
- Inbox: 📫 Inbox/
- Attachments: 🖇 Attachments/

Does this look right? [Yes] [Adjust]

Step 5: Name the Vault

Ask for short identifier:

"What should I call this vault? (e.g., primary, work, personal)"

Suggest "primary" if this is the first vault.

Step 6: Initialize Configuration

Create or update ~/.claude/second-brain.md:

npx @techpickles/sb init --name "{name}" --path "{path}"

Add --scaffold flag if user wants to create vault CLAUDE.md:

npx @techpickles/sb init --name "{name}" --path "{path}" --scaffold

This command:

  • Writes the vault configuration to ~/.claude/second-brain.md
  • Optionally creates {vault}/CLAUDE.md with detected settings

Read the full file on GitHub · 174 lines

Changes

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.

  1. 1mo ago First seen · 174 lines · 7 tokens per session scan A 73d926cd7dd3

Subscribe to this mod's changes

setup is a command published in the GitHub repository technicalpickles/pickled-claude-plugins (11 stars, last pushed yesterday), licensed MIT. It adds 7 tokens to every session and 1,160 once invoked, about $0.0000 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.