| name | init |
| description | Interactively create `.obsidian.yaml` and install starter templates (task / doc / adr) for this project. Triggers via `/obw:init` or when another obw skill reports missing config. |
init — Initialize Obsidian Workspace
Run everything directly in the main context — the flow is interactive (AskUserQuestion) by design.
Execution
-
Handle existing config — if .obsidian.yaml exists in the project root, show a one-line summary (vault name + project) and ask whether to overwrite.
-
Pick a vault — list vaults from Obsidian's config and ask the user:
cat ~/Library/Application\ Support/obsidian/obsidian.json \
| jq -r '.vaults | to_entries[] | "\(.key)\t\(.value.path)"'
(Linux: ~/.config/obsidian/obsidian.json; Windows: %APPDATA%\obsidian\obsidian.json.) Resolve $VAULT_PATH from the chosen entry.
-
Ask config options (via AskUserQuestion):
- Project identifier for
/obw:pm? (default = current directory basename; allow "skip" to omit the pm section)
- Default folder for long-form notes? (default
Inbox)
- Filename strategy for notes? options:
title / slug / timestamp-title
Mention: daily note folder / filename / template are configured in Obsidian's Daily Notes core plugin, not here. Quick capture always prepends HH:MM and writes #tag tokens inline (Obsidian indexes them automatically).
-
Install starter templates — read the Templates folder from $VAULT_PATH/.obsidian/templates.json:
TF=$(jq -r .folder "$VAULT_PATH/.obsidian/templates.json" 2>/dev/null)
-
Write .obsidian.yaml using the template below. Omit the pm section if skipped.
-
Offer .gitignore entry — ask whether to add .obsidian.yaml to .gitignore.
Config Template
vault: <VAULT_NAME>
note:
default_folder: Inbox
filename_strategy: title
pm:
project: <PROJECT_NAME>
Confirmation Output
Return a summary in this shape:
.obsidian.yaml created (vault=<NAME>, project=<PROJ>).
Templates installed to <TF>/: task.md, doc.md, adr.md (only the missing ones).
Next:
/obw:jot <text> — quick capture to today's daily note, or a long-form note
/obw:pm — task / doc / ADR management