← ClaudeAtlas

write-frontmatter-setlisted

Set or replace a single frontmatter property. Type-preserving (numbers stay numbers, arrays stay arrays). EN triggers: "set status to X on Y", "tag this with X", "set the property X on Y", "mark Y as <status>", "change the score of X to Y". FR triggers : "passe le statut de Y à X", "tag ça avec X", "mets la property X sur Y", "marque Y comme <statut>", "change le score de X à Y". Example / Exemple: EN: "set status to closed on Trades/AAPL.md" FR: "passe le statut de Trades/AAPL.md à closed"
tboome33/obsidian-mcp-router · ★ 1 · AI & Automation · score 72
Install: claude install-skill tboome33/obsidian-mcp-router
# write-frontmatter-set Call the obsidian-router `set_frontmatter` MCP tool with arguments parsed from $ARGUMENTS. ## Arguments **Required**: - `path` — file path relative to vault root. - `key` — frontmatter property name (e.g. `status`, `tags`, `score`). - `value` — new value. Supports any of: string, number, boolean, null, array, object. Types are preserved end-to-end (a number stays a number in YAML, an array stays an array, etc.). **Optional**: - `vault` — omit for default. - `createIfMissing` — create the key if absent. Default true. ## Argument parsing from $ARGUMENTS - `<path> <key>=<value>` — common shorthand (single key=value pair after the path) - `path=X key=Y value=Z` — explicit - `--no-create` → set `createIfMissing=false` ## Type inference from $ARGUMENTS - numeric literal (e.g. `3.14`) → number - `true`/`false` → boolean - `null` → null - starts with `[` → JSON-parse as array - starts with `{` → JSON-parse as object - otherwise → string ## On failure — remediate, NEVER fall back to filesystem writes If the call fails, do NOT silently redo it with direct-filesystem tools (`Read`/`Edit`/`Write` on the vault's real path): - **Connection error** (`ECONNREFUSED`, timeout) → vault closed; `list_vaults`, then ask the user to open it via the `openUri` link and wait. - **Validation / API error** (HTTP 4xx) → fix the arguments — still through the router. Rationale + message template: the `default-vault-health-check` convention (canonical source). ## Output