obsidian-cli
Operate Obsidian vaults via the `obsidian` CLI - create/read/edit notes, manage properties and tags, search vault content, handle daily notes and templates, manage plugins and themes, work with bases, control sync and file history, manipulate workspace layout, and use developer tools. Use when the user asks to interact with their Obsidian vault, manage notes, query vault data, automate Obsidian workflows, or debug Obsidian plugins. Triggers: mentions of Obsidian, vault operations, note management, obsidian CLI, daily notes, or working with .md files in an Obsidian context.
What this skill does
# Obsidian CLI
CLI reference based on Obsidian v1.12.4 (installer 1.11.7). All commands:
`/usr/local/bin/obsidian <command> [options]`.
## CLI Path
Always invoke the CLI via its full path: `/usr/local/bin/obsidian`. This is required for
sandbox compatibility. Obsidian Desktop must be running (the CLI communicates with the app
via IPC).
**CLI version note:** This reference was built against Obsidian v1.12.4. If commands behave
unexpectedly, run `/usr/local/bin/obsidian version` to check for changes.
## Conventions
- `file=<name>` resolves by name (like wikilinks). `path=<path>` is exact (folder/note.md).
- Most commands default to the active file when file/path is omitted.
- Quote values with spaces: `name="My Note"`. Use `\n` for newline, `\t` for tab.
- Target a specific vault: `/usr/local/bin/obsidian vault=<name> <command>`.
- Output formats: many commands accept `format=json|tsv|csv` (default varies).
- Use `total` flag on list commands to get counts instead of full output.
## Quick Reference
| Need | Command | Example |
| -------------- | -------------- | ---------------------------------------------------------- |
| Read a note | `read` | `/usr/local/bin/obsidian read file="My Note"` |
| Create a note | `create` | `/usr/local/bin/obsidian create name="New Note" content="# Hello"` |
| Append to note | `append` | `/usr/local/bin/obsidian append file="Log" content="Entry"` |
| Search vault | `search` | `/usr/local/bin/obsidian search query="meeting agenda"` |
| Daily note | `daily` | `/usr/local/bin/obsidian daily` |
| List files | `files` | `/usr/local/bin/obsidian files folder="Projects"` |
| Get properties | `properties` | `/usr/local/bin/obsidian properties file="Note"` |
| Set property | `property:set` | `/usr/local/bin/obsidian property:set name=status value=done file="Task"` |
| List tags | `tags` | `/usr/local/bin/obsidian tags counts sort=count` |
| Find backlinks | `backlinks` | `/usr/local/bin/obsidian backlinks file="Topic"` |
| Run command | `command` | `/usr/local/bin/obsidian command id=editor:toggle-bold` |
| List vaults | `vaults` | `/usr/local/bin/obsidian vaults verbose` |
## Command Domains
Obsidian CLI has 75+ commands across these domains. Load the relevant reference for detailed usage:
### Vault and Files
Create, read, append, prepend, delete, move, rename files and folders. Search vault content. See
[references/vault-and-files.md](references/vault-and-files.md)
### Knowledge Graph
Backlinks, outgoing links, orphans, dead-ends, tags, properties, aliases, outline headings. See
[references/knowledge-graph.md](references/knowledge-graph.md)
### Daily Notes and Templates
Daily note operations (open, read, append, prepend), templates, bookmarks. See
[references/daily-and-templates.md](references/daily-and-templates.md)
### Plugins, Themes, and Sync
Plugin management (install/enable/disable), themes, CSS snippets, sync control, file history. See
[references/plugins-themes-sync.md](references/plugins-themes-sync.md)
### Workspace and UI
Tabs, workspace layout, window management, executing commands, hotkeys. See
[references/workspace-and-ui.md](references/workspace-and-ui.md)
### Bases
Create, query, and manage base views (Obsidian's structured data feature). See
[references/bases.md](references/bases.md)
### Developer Tools
JavaScript eval, DOM inspection, CSS debugging, CDP protocol, console capture, screenshots. See
[references/developer-tools.md](references/developer-tools.md)
## Tasks
Obsidian tracks checkbox items (`- [ ]`) across notes:
```
/usr/local/bin/obsidian tasks # list all tasks
/usr/local/bin/obsidian tasks todo # incomplete only
/usr/local/bin/obsidian tasks done # completed only
/usr/local/bin/obsidian tasks file="Project" # tasks in specific file
/usr/local/bin/obsidian tasks daily # tasks from daily note
/usr/local/bin/obsidian task file="Todo" line=5 toggle # toggle a task
/usr/local/bin/obsidian task file="Todo" line=5 done # mark done
/usr/local/bin/obsidian task file="Todo" line=5 status="/" # custom status char
```
## Parsing Output
When processing command output, prefer CLI tools over Python. Check availability first:
```bash
command -v jq # JSON parsing
command -v yq # YAML/JSON parsing (supports both)
command -v gawk # field/column processing
```
**JSON output** (`format=json`): use `jq` if available.
```bash
/usr/local/bin/obsidian files format=json | jq '.[].path'
/usr/local/bin/obsidian properties file="Note" format=json | jq '.tags[]'
/usr/local/bin/obsidian search query="meeting" format=json | jq '.[] | {file, line}'
```
**YAML/JSON** (`format=json` or properties): use `yq` if available, falls back to `jq`.
```bash
/usr/local/bin/obsidian properties file="Note" format=json | yq '.status'
```
**TSV/CSV output**: use `awk`, `cut`, or `column` - no external deps needed.
```bash
/usr/local/bin/obsidian files format=tsv | awk -F'\t' '{print $1}'
/usr/local/bin/obsidian tags format=tsv | column -t -s $'\t'
```
Only fall back to Python when the above tools are not available or the transformation is too complex for them.
## Tips
- Pipe JSON output to jq for filtering: `/usr/local/bin/obsidian files format=json | jq '.[]'`
- Chain operations: read a template, create from it, set properties
- Use `search:context` instead of `search` when you need matching line context
- `/usr/local/bin/obsidian commands filter=editor` to discover commands by prefix
- `/usr/local/bin/obsidian hotkeys all` shows every command including those without keybindings
- Run `obsidian` with no arguments for full help
Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.