Home / Commands / Galaxy-Dawn/claude-scholar

kb-init

Initialize or rebuild a vault-first, project-scoped Obsidian KB under Research/{project-slug}/ for the current repository.

commandLicense: MIT Source: Galaxy-Dawn/claude-scholar

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/kb-init.md https://raw.githubusercontent.com/Galaxy-Dawn/claude-scholar/HEAD/commands/kb-init.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/kb-init.md https://raw.githubusercontent.com/Galaxy-Dawn/claude-scholar/HEAD/commands/kb-init.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
name: kb-init
description: Initialize or rebuild a vault-first, project-scoped Obsidian KB under Research/{project-slug}/ for the current repository.
args:
  - name: project
    description: Optional project name. Defaults to the repository name.
    required: false
  - name: vault_path
    description: Absolute Obsidian vault path. Defaults to OBSIDIAN_VAULT_PATH.
    required: false
  - name: force
    description: Force scaffold refresh when the project already exists.
    required: false
    default: false
tags: [Research, Obsidian, KB]
---

# /kb-init

Use the new KB scaffold under `Research/{project-slug}/`.

## Run

```bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/obsidian-project-kb-core/scripts/project_kb.py" bootstrap \
  --cwd "$PWD" \
  --vault-path "$vault_path"
```

If `project` is provided, add:

```bash
--project-name "$project"
```

If `force=true`, add:

```bash
--force
```

## Verify

The scaffold must contain:

```text
Research/{project-slug}/
  00-Hub.md
  01-Plan.md
  02-Index.md
  Sources/*
  Knowledge/
  Experiments/
  Results/Reports/
  Writing/
  Daily/
  Maps/
  Archive/
  _system/
```

It must also keep repo-local `.claude/project-memory/*` as runtime binding metadata only.