Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

obsidian-init

БесплатноБез исполняемых скриптовНе проверен

Bootstraps an Obsidian vault with CLAUDE.md, folders and schema. Use when the user wants a vault set up ("init vault", "bootstrap obsidian", "setup knowledge…

majiayu000от majiayu000★ 31 звезда на GitHub

Об этом скилле

Obsidian Init

Overview

Discipline skill that bootstraps a new Obsidian vault (or retrofits an existing one) with a CLAUDE.md governance file, PARA+Zettelkasten folder structure, .mz/vault-schema.yml, and starter templates. The output is a vault ready for all other mz-knowledge skills — process-notes, vault-ingest, vault-schema, vault-triage, vault-connect, etc.

When to Use

Setting up a new Obsidian vault from scratch for use with Claude Code, or retrofitting an existing vault that lacks CLAUDE.md or .mz/ structure.

When NOT to use

  • Vault already has well-formed CLAUDE.md and .mz/vault-schema.yml — edit directly.
  • Processing or ingesting notes — use vault-ingest, process-notes.
  • Coding rules for a code repo rather than a vault — use init-rules.

Constants

  • SKILL_DIR: ${CLAUDE_SKILL_DIR}. Phase files write <SKILL_DIR>/... because files opened with Read get no variable substitution; expand it to this absolute path before reading a file, running a command, or passing a path to an agent.
  • PROJECT_ROOT: resolved once in setup with echo "${MZ_MEMORY_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"; expand <PROJECT_ROOT> to it in every command and agent prompt.
  • TASK_DIR: <PROJECT_ROOT>/.mz/task/ | SCHEMA_PATH: <vault>/.mz/vault-schema.yml | CLAUDE_MD_PATH: CLAUDE.md (vault root)

Core Process

Phase Overview

Phase Goal Details
0 Setup + interview Inline below
0.5 User approval — scaffold plan Inline below
1 Scaffold vault phases/scaffold_vault.md
2 Verify Inline below

Phase 0: Setup + Interview

  1. Resolve PROJECT_ROOT with the command in Constants, before any cd or worktree switch, and use it for every .mz/ path below.
  2. Parse $ARGUMENTS. First argument is the vault path. If --minimal flag is present, skip interview and use defaults.
  3. If the vault path is empty, ask via AskUserQuestion.
  4. Check whether the path exists. If it does, scan for existing .obsidian/, CLAUDE.md, .mz/, and any folder structure. Record findings — the skill must not destroy existing content.
  5. Derive task_name = <YYYY_MM_DD>_obsidian-init_<slug> where <YYYY_MM_DD> is today's date (underscores) and <slug> is a snake_case summary of the vault directory name (max 20 chars); on same-day collision append _v2, _v3. Create TASK_DIR<task_name>/.
  6. Write state.md with schema_version: 2, Status: running, Phase: 0, Started, Vault, ExistingCLAUDE: true|false, ExistingSchema: true|false, ExistingFolders: [list], phase_complete: false, what_remains: [].

Unless --minimal was passed, ask the user via AskUserQuestion (single question, all items):

  • question:
    Vault bootstrap interview for <vault path>.
    
    1. Vault purpose — what kind of knowledge? (e.g., "personal second brain", "team engineering wiki", "research notes")
    2. Primary topics — 3-5 top-level categories for permanent notes (e.g., AI, Engineering, Business)
    3. Note types — which do you use? (permanent, fleeting, daily, moc, resource, project — all enabled by default)
    4. Frontmatter style — minimal (created, type, tags) or extended (+ updated, status, source, epistemic_status)?
    5. Tag taxonomy — flat (#ai, #engineering) or hierarchical (#ai/llm/claude, #status/draft)?
    
    Or choose one of the quick options below.
    
  • options:
    • Defaults — accept all defaults (personal second brain, AI/Engineering/Business/Career topics, all six note types, extended frontmatter, hierarchical tags)
    • Minimal — bare structure only, no interview answers applied

Record answers (or the chosen option) in state.md under VaultPurpose, PrimaryTopics, NoteTypes, FrontmatterStyle, TagStyle.

Phase 0.5: User Approval — Scaffold Plan

This orchestrator (not a subagent) presents this gate. This step is interactive and must not be delegated.

Build the plan from interview answers (or defaults). Write the scaffold plan to <PROJECT_ROOT>/.mz/task/<task_name>/scaffold_plan.md so it can be read and re-emitted on each loop iteration.

Pre-read: Read <PROJECT_ROOT>/.mz/task/<task_name>/scaffold_plan.md and capture the full contents into context.

State: write state.md with the artifact path and what_remains: [awaiting approval: scaffold plan gate]; Status stays running.

Surface 1 — emit the plan message. Output the scaffold plan verbatim as a normal markdown chat message:

## Scaffold plan ready for review — obsidian-init

Scaffold plan for <vault path>:

Folders to create:
<numbered list of folders with descriptions>

Files to write:
- CLAUDE.md — vault governance (~150 lines)
- .mz/vault-schema.yml — frontmatter schema for vault-sch
Полный SKILL.md на GitHub

Установить obsidian-init в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Bash(git rev-parse *)
Bash(mkdir *)
Bash(date *)
Grep
Glob
AskUserQuestion

Вложенные файлы

metadata.json

FAQ

Что делает скилл obsidian-init?

Bootstraps an Obsidian vault with CLAUDE.md, folders and schema. Use when the user wants a vault set up ("init vault", "bootstrap obsidian", "setup knowledge base", "create vault structure"). Not for a code repo's coding rules (use init-rules).

Как установить скилл obsidian-init?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл obsidian-init запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить obsidian-init с