Fastest way to scaffold your LLM powered personal knowledge base - Obsidian, Claude Code, qmd, Github
JavaScript aiampclaude-codecodexcursorgithubknowledge-baseknowledge-graphknowledge-managementllmobsidianobsidian-vaultqmdsecond-brain
feat: remove /setup skill — covered by create.js and brain-refresh
jessepinkman9900c7c09f8c1181
diff --git a/.claude/skills/pack-test/SKILL.md b/.claude/skills/pack-test/SKILL.mdindex 0d7734b..6454b97 100644--- a/.claude/skills/pack-test/SKILL.md+++ b/.claude/skills/pack-test/SKILL.md@@ -159,7 +159,7 @@ RESOLVED_B=$(npx -y claude-second-brain-$(node -p "require('./package.json').ver| `.gitignore` (not `.gitignore.template`) | Present in both brains | || `wiki/{index,log,overview}.md`, `sources/`, `qa/` | Present in both brains | || `raw-sources/{articles,pdfs,personal}/` | Present in both brains | |-| `.claude/skills/` — 6 subdirs | brain-ingest, brain-search, brain-refresh, brain-rebuild, lint, setup | |+| `.claude/skills/` — 5 subdirs | brain-ingest, brain-search, brain-refresh, brain-rebuild, lint | || `scripts/qmd/{setup,reindex}.ts` | Present in both brains, DB hardcoded to `.qmd/index.sqlite` relative | || `CLAUDE.md`, `mise.toml`, `package.json` | Present in both brains | || `CLAUDE.md` INDEX_PATH | Relative `INDEX_PATH=.qmd/index.sqlite` (no absolute substitution) | |diff --git a/.github/workflows/pack-test.yml b/.github/workflows/pack-test.ymlindex 040df45..3df6234 100644--- a/.github/workflows/pack-test.yml+++ b/.github/workflows/pack-test.yml@@ -56,7 +56,6 @@ jobs:check "raw-sources/articles/" "$VAULT/raw-sources/articles"check "raw-sources/pdfs/" "$VAULT/raw-sources/pdfs"check "raw-sources/personal/" "$VAULT/raw-sources/personal"- check ".claude/skills/setup" "$VAULT/.claude/skills/setup"check ".claude/skills/brain-ingest" "$VAULT/.claude/skills/brain-ingest"check ".claude/skills/brain-search" "$VAULT/.claude/skills/brain-search"check ".claude/skills/brain-refresh" "$VAULT/.claude/skills/brain-refresh"diff --git a/README.md b/README.mdindex b4f07e9..6ffb695 100644--- a/README.md+++ b/README.md@@ -118,10 +118,6 @@ The wiki ships with a set of slash commands that cover the full workflow. No man**`/brain-rebuild`** — **Destructive.** Redesigns the qmd schema: analyzes the wiki, proposes new collections and contexts, waits for your approval, then patches `scripts/qmd/setup.ts`, drops the old index, and rebuilds embeddings from scratch. Use only when the current structure no longer fits how you search.-### Setup--**`/setup`** — First-time initialization. Registers the qmd collections and generates local vector embeddings. Run once after scaffolding.----## Access from anywhere@@ -268,14 +264,14 @@ npx claude-second-brain qmd -- query -c wiki "<terms>" # run qmd against the d## Installing and updating skills-Skills are slash commands Claude Code loads from `.claude/skills/[name]/SKILL.md`. `/brain-ingest`, `/brain-search`, and `/brain-refresh` install globally to `~/.claude/skills/` during setup so they work in any Claude Code session. `/brain-rebuild`, `/lint`, and `/setup` live inside the vault at `.claude/skills/`.+Skills are slash commands Claude Code loads from `.claude/skills/[name]/SKILL.md`. `/brain-ingest`, `/brain-search`, and `/brain-refresh` install globally to `~/.claude/skills/` during setup so they work in any Claude Code session. `/brain-rebuild` and `/lint` live inside the vault at `.claude/skills/`.### Update the built-in wiki skillsThe wiki's own skills are scaffolded at creation time. To pull in improvements, use `npx skills` pointing to the template skills directory in this repo:```bash-# Install or update all 6 wiki skills from the latest template+# Install or update all 5 wiki skills from the latest templatenpx skills add https://github.com/jessepinkman9900/claude-second-brain/tree/main/template/.claude/skills -a claude-code -y# Or update a specific skilldiff --git a/docs/pages/getting-started.mdx b/docs/pages/getting-started.mdxindex 92a1eed..9cc5a66 100644--- a/docs/pages/getting-started.mdx+++ b/docs/pages/getting-started.mdx@@ -26,19 +26,13 @@ The CLI will ask:Creates the brain at `~/.claude-second-brain/my-brain/`, registers it in `~/.claude-second-brain/config.toml`, installs `mise` + `node` + `pnpm`, runs `pnpm install`, and `git init`.-## Step 2 — Initialize inside Claude Code+## Step 2 — Generate vector embeddings```bash-cd ~/.claude-second-brain/my-brain && claude+cd ~/.claude-second-brain/my-brain && pnpm qmd:reindex```-Then run:--```-/setup-```--Registers the qmd collections and generates local vector embeddings. First run downloads ~2GB of GGUF models — once.+Generates local vector embeddings. First run downloads ~2GB of GGUF models — once.## Step 3 — Open in Obsidian (and push to GitHub if not done)diff --git a/docs/pages/skills.mdx b/docs/pages/skills.mdxindex c998610..8d979f7 100644--- a/docs/pages/skills.mdx+++ b/docs/pages/skills.mdx@@ -13,18 +13,14 @@ The wiki ships with a set of Claude Code slash commands that cover the full work- [**`/brain-refresh`**](/skills/brain-refresh) — Re-scan the vault and regenerate vector embeddings for new or changed files.- [**`/brain-rebuild`**](/skills/brain-rebuild) — **Destructive.** Redesigns the qmd schema, drops the old index, and rebuilds from scratch. Use only when the current structure no longer fits how you search.-## Setup--- [**`/setup`**](/skills/setup) — First-time initialization. Registers the qmd collections and generates local vector embeddings. Run once after scaffolding.-## Install or update skills-`/brain-ingest`, `/brain-search`, and `/brain-refresh` install globally to `~/.claude/skills/` during setup so they work in any Claude Code session. `/brain-rebuild`, `/lint`, and `/setup` live inside the vault at `.claude/skills/`.+`/brain-ingest`, `/brain-search`, and `/brain-refresh` install globally to `~/.claude/skills/` during setup so they work in any Claude Code session. `/brain-rebuild` and `/lint` live inside the vault at `.claude/skills/`.To pull in improvements from the latest template:```bash-# Install or update all 6 wiki skills+# Install or update all 5 wiki skillsnpx skills add https://github.com/jessepinkman9900/claude-second-brain/tree/main/template/.claude/skills -a claude-code -y# Or update a specific skilldiff --git a/docs/pages/skills/setup.mdx b/docs/pages/skills/setup.mdxdeleted file mode 100644index 507c220..0000000--- a/docs/pages/skills/setup.mdx+++ /dev/null@@ -1,13 +0,0 @@-# /setup--First-time initialization. Run this once, right after scaffolding the vault.--What it does:--1. Registers the qmd collections and contexts (`wiki`, `raw-sources`, `human`, `daily-notes`).-2. Generates local vector embeddings for every markdown file.-3. Writes the index to the path you chose during scaffolding (default `~/.cache/qmd/index.sqlite`).--The first run downloads ~2 GB of GGUF embedding models — this happens once, then is cached across vaults.--Scope: vault-local, installed at `.claude/skills/setup/SKILL.md`. Source: [template/.claude/skills/setup/SKILL.md](https://github.com/jessepinkman9900/claude-second-brain/blob/main/template/.claude/skills/setup/SKILL.md).diff --git a/template/.claude/skills/brain-refresh/SKILL.md b/template/.claude/skills/brain-refresh/SKILL.mdindex 473d824..64aa1c3 100644--- a/template/.claude/skills/brain-refresh/SKILL.md+++ b/template/.claude/skills/brain-refresh/SKILL.md@@ -73,3 +73,4 @@ Document and embedding counts should be non-zero and reflect recent activity. If- First run downloads ~2GB of GGUF models — expected, one-time- Do not run this after every single file edit — batch it after a session- This skill does **not** change the qmd schema (collections, contexts). For that, use `/brain-rebuild`+- If `query` or `search` commands fail with "collection not found", run `pnpm qmd:setup` from the vault root to re-register collections, then re-run this skilldiff --git a/template/.claude/skills/setup/SKILL.md b/template/.claude/skills/setup/SKILL.mddeleted file mode 100644index 2d0b98e..0000000--- a/template/.claude/skills/setup/SKILL.md+++ /dev/null@@ -1,68 +0,0 @@-----name: setup-description: "Initialize this claude-second-brain vault. Registers qmd collections and generates vector embeddings. Use when: setting up for the first time, re-registering collections, or re-indexing after a bulk ingest session. Trigger phrases: /setup, setup vault, initialize collections, reindex, register qmd."-argument-hint: "Optional: 'reindex' to skip registration and only re-index files"------# Vault Setup--## When to Use-- First-time indexing (collections are already registered by `npx claude-second-brain`)-- Re-registering qmd collections after manual config changes-- Re-indexing after a bulk wiki ingest session (run step 2 only)--## Procedure--All commands run from the vault root.--### Full Setup (first time)--**Step 1 — Register collections and contexts** *(already done by the scaffold — re-run only if needed)*--Run:-```bash-pnpm qmd:setup-```--Registers the two core qmd collections (`wiki`, `raw-sources`) and their path-level context descriptions. Idempotent — safe to re-run. `npx claude-second-brain` runs this automatically after `pnpm install`, so a fresh vault already has collections registered.--**Step 2 — Index files and generate embeddings**--Run:-```bash-pnpm qmd:reindex-```--Scans all collections for new/changed files and generates vector embeddings. The first run downloads ~2GB of local GGUF models — this will take a while.--### Re-index Only (after bulk ingest)--Skip step 1 and run only:-```bash-pnpm qmd:reindex-```--Do **not** re-run after every single file edit — batch it after a session.--### Step 3 — Verify installation--Run these three commands to confirm everything is working:--Run from the vault root so the relative `.qmd/index.sqlite` path resolves correctly:--```bash-# List registered collections (expect: wiki, raw-sources)-INDEX_PATH=.qmd/index.sqlite pnpm dlx @tobilu/qmd collection list--# List registered contexts-INDEX_PATH=.qmd/index.sqlite pnpm dlx @tobilu/qmd context list--# Show index status and embedding counts-INDEX_PATH=.qmd/index.sqlite pnpm dlx @tobilu/qmd status-```--Both collections should appear in `collection list`. `status` should show non-zero document and embedding counts — if embeddings are 0, re-run step 2.--## Notes-- `node` and `pnpm` are managed via `mise` — ensure `mise install` and `pnpm install` have been run before setup-- If `pnpm dlx @tobilu/qmd` commands fail after setup, re-run step 1 then step 2diff --git a/template/README.md b/template/README.mdindex 875b1a1..d1ea013 100644--- a/template/README.md+++ b/template/README.md@@ -51,10 +51,6 @@ Registers the qmd collections and generates local vector embeddings. First run d**`/brain-rebuild`** — **Destructive.** Redesigns the qmd schema: analyzes the wiki, proposes new collections and contexts, waits for your approval, then patches `scripts/qmd/setup.ts`, drops the old index, and rebuilds embeddings from scratch.-### Setup--**`/setup`** — First-time initialization. Registers the qmd collections and generates local vector embeddings. Run once after scaffolding.----## How it works@@ -158,14 +154,14 @@ claude-second-brain/## Installing and updating skills-Skills are slash commands Claude Code loads from `.claude/skills/[name]/SKILL.md` in this vault. The wiki ships with `/brain-ingest`, `/brain-search`, `/brain-refresh`, `/brain-rebuild`, `/lint`, and `/setup` pre-installed.+Skills are slash commands Claude Code loads from `.claude/skills/[name]/SKILL.md` in this vault. The wiki ships with `/brain-ingest`, `/brain-search`, `/brain-refresh`, `/brain-rebuild`, and `/lint` pre-installed.### Update built-in wiki skillsPull the latest skills from the upstream template:```bash-# Install or update all 6 wiki skills+# Install or update all 5 wiki skillsnpx skills add https://github.com/jessepinkman9900/claude-second-brain/tree/main/template/.claude/skills -a claude-code -y# Or update a specific skilldiff --git a/vocs.config.ts b/vocs.config.tsindex 0340a1f..0e6b3ce 100644--- a/vocs.config.ts+++ b/vocs.config.ts@@ -61,7 +61,6 @@ export default defineConfig({{ text: '/brain-refresh', link: '/skills/brain-refresh' },{ text: '/brain-rebuild', link: '/skills/brain-rebuild' },{ text: '/lint', link: '/skills/lint' },- { text: '/setup', link: '/skills/setup' },],},{ text: 'Ship log', link: '/ship-log' },