Obsidian cli
Skill cwaits6/obsidian-cli-skill/plugins/obsidian-cli/skills/obsidian-cli
A Claude Code skill that automates your Obsidian vault — migrate notes, assign properties, and organize hundreds of files through natural conversation.
npx -y skills add cwaits6/obsidian-cli-skill --skill obsidian-cliAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Automate your Obsidian vault via CLI. Use when user wants to: migrate or reorganize notes, assign properties/frontmatter, create Obsidian Bases (.base files), generate Templater templates, bulk rename or move files, search vault content or analyze links, manage plugins/themes/workspaces, or perform batch vault operations. Trigger phrases: 'organize my vault', 'move my notes', 'add properties to my notes', 'tag all notes in', 'create a Base', 'set up a daily note template', 'search my vault', 'clean up my vault', 'rename notes in', 'list everything in my vault', 'manage my plugins', 'set frontmatter on'. Only trigger when the user references their Obsidian vault, notes within a vault, or Obsidian-specific concepts (Bases, Templater, daily notes, vault properties, workspaces). Do not trigger for generic file operations, general markdown editing, or coding tasks that happen to mention notes or frontmatter without an Obsidian or vault context. Specifically, if the user asks to 'write a script', 'create a script', or 'build a tool' that works with frontmatter or markdown files, that is a coding task — do not trigger.
SKILL.md
7.3 KB, as published. Nobody here has run it
Obsidian CLI Skill
Batch automation of your Obsidian vault using the Obsidian CLI. Analyzes notes, assigns properties based on content, and orchestrates migrations, base creation, template generation, and other vault operations.
Instructions
-
Read config first. Before any operation that depends on property schema, batch settings, or vault preferences, read the user's config:
~/.claude/plugins/marketplaces/obsidian-cli-skill/plugins/obsidian-cli/config.yamlIf
config.yamldoes not exist, fall back toconfig.yaml.examplein the same directory. -
Always consult reference files before constructing any command. Never guess syntax, parameter names, or examples. Commands use
param=valueparameters plus bare flags (total,verbose,silent). Avoid GNU-style--flagsyntax except where Obsidian explicitly documents it as global behavior. Use the command routing table below to find the right reference. -
Propose before executing. Present changes for user review and get explicit approval before modifying any files. Follow output-format-standard.md for all output formatting.
-
If a command isn't in the references, it may not exist. Consider native Obsidian workflows instead — see native-workflows.md.
Workflow
All operations follow this pattern:
- Analyze — Read notes/requirements and config.yaml
- Propose — Present changes for review (follow output format standard)
- Approve — User reviews and approves before any files are modified
- Execute — Run approved operations via Obsidian CLI
Approval mode is controlled by batch_settings.approval_mode in config.yaml:
batch— Approve the entire phase at once, then all operations execute without further promptssingle— Approve each note individually before proceeding
Batch splitting: If notes exceed batch_settings.max_batch_size, split into multiple batches — propose and get approval for each batch separately.
Command Routing
Before proposing any command, read the corresponding reference file:
| Operation | Reference File |
|---|---|
| File create/read/move/delete | obsidian-cli-files.md |
| Property set/read/remove | obsidian-cli-properties.md |
| Search, links, backlinks | obsidian-cli-search.md |
| Bases (.base files) | obsidian-cli-bases.md |
| Daily notes | obsidian-cli-daily.md |
| Templates | obsidian-cli-templates.md |
| Publish | obsidian-cli-publish.md |
| Plugins | obsidian-cli-plugins.md |
| Tags, aliases | obsidian-cli-tags-aliases.md |
| Tasks | obsidian-cli-tasks.md |
| Vault info, folders | obsidian-cli-vault.md |
| Workspace, tabs, layouts | obsidian-cli-workspace.md |
| Web viewer, unique notes | obsidian-cli-web-unique.md |
| All other operations | command-routing.md |
Workflows
Migrate and Enrich Notes
Two-phase workflow: property assignment → rename/move. Read config.yaml for batch and approval settings, then follow migration-workflow.md for the complete process, proposal formats, and rules.
Create Obsidian Bases
Read config.yaml for property schema, consult obsidian-bases.md for .base structure and CLI commands. Propose the base structure for approval before creating.
Generate Templater Templates
Consult templater-plugin.md for syntax and patterns. Propose template content for approval before creating.
Execution Strategy
For batch operations (>5 files), split reasoning from execution:
- Plan phase (current model): Read notes, analyze content, build the proposal, get user approval
- Execute phase: Delegate to the
batch-executoragent to execute approved CLI commands. This agent runs on Haiku with Bash-only tool access for fast, low-cost execution.
The planning model handles all decisions. The execution agent receives a numbered list of pre-approved commands and runs them sequentially, reporting results per the output format standard.
For single-file operations or operations requiring judgment (e.g., choosing property values), execute directly without delegation.
Fallback: If subagent delegation is not available (e.g., on Claude.ai web), execute commands directly in sequence.
Error Handling
If an obsidian CLI command fails:
- Report the failure inline using the error format from the output format standard
- Continue with remaining operations — do not stop the entire batch for one failure
- Include all failures in the final summary
- If the CLI binary is not found, stop and tell the user to enable Obsidian CLI (requires Obsidian 1.12.1+)
Examples
User: "Migrate my Research notes to Notes with properties" Action: Read config.yaml → read all files in Research/ → analyze content → present compact property proposal → on approval, set properties → present rename & move proposal → on approval, move files. Follow migration-workflow.md.
User: "Add type: reference to all files in my Docs folder"
Action: Read obsidian-cli-properties.md → list files in Docs/ → present proposal → on approval, run obsidian property:set for each file.
User: "Create a Base that shows all how-to notes by topic"
Action: Read config.yaml for property schema → read obsidian-cli-bases.md → propose .base file structure → on approval, create the file.