Home / Commands / Galaxy-Dawn/claude-scholar

kb-sync

Run deterministic KB maintenance to refresh scaffold integrity, registry, index, daily note, and runtime binding summary.

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-sync.md https://raw.githubusercontent.com/Galaxy-Dawn/claude-scholar/HEAD/commands/kb-sync.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/kb-sync.md https://raw.githubusercontent.com/Galaxy-Dawn/claude-scholar/HEAD/commands/kb-sync.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-sync
description: Run deterministic KB maintenance to refresh scaffold integrity, registry, index, daily note, and runtime binding summary.
args:
  - name: scope
    description: Sync scope such as auto, all, index, literature, experiments, or results.
    required: false
    default: auto
tags: [Research, Obsidian, KB]
---

# /kb-sync

Use this when you want a deterministic project-KB resync after structural changes, note moves, migrations, or batch updates.

```bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/obsidian-project-kb-core/scripts/project_kb.py" sync --cwd "$PWD" --scope "$scope"
```

Typical scopes:
- `auto`
- `all`
- `index`
- `literature`
- `experiments`
- `results`

This refreshes:
- scaffold integrity under `Research/{project-slug}/`
- `_system/registry.md`
- `02-Index.md`
- today's `Daily/YYYY-MM-DD.md`
- repo-local `.claude/project-memory/<project_id>.md`
- `00-Hub.md` recent changes when appropriate