Home / Commands / Galaxy-Dawn/claude-scholar

kb-archive

Archive, detach, purge, or rename KB objects while keeping registry, index, and links consistent.

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

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/kb-archive.md https://raw.githubusercontent.com/Galaxy-Dawn/claude-scholar/HEAD/commands/kb-archive.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-archive
description: Archive, detach, purge, or rename KB objects while keeping registry, index, and links consistent.
args:
  - name: action
    description: detach, archive, purge, rename
    required: true
  - name: target
    description: Project-relative note path when operating on a note.
    required: false
  - name: dest
    description: Destination note path for rename.
    required: false
tags: [Research, Obsidian, KB, Lifecycle]
---

# /kb-archive

Use this command for KB lifecycle actions.

## Project-level lifecycle

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

Project archive means moving the whole project to:

```text
Research/_archived/{project-slug}-{date}/
```

## Note-level lifecycle

```bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/obsidian-project-kb-core/scripts/project_kb.py" note-lifecycle --cwd "$PWD" --mode "$action" --note "$target"
```

If `action=rename`, also pass `--dest "$dest"`.

Note archive means moving a canonical note into:

```text
Research/{project-slug}/Archive/
```