obsidian-cli-uri-fallback
Original:🇺🇸 English
Translated
Use when Obsidian note automation runs in cron/headless environments and obsidian-cli emits URI failure signatures (for example, `Failed to execute Obsidian URI`) that may not set a non-zero exit code. Detect false-success cases, fallback to deterministic markdown file writes, and record traceable fallback paths in run artifacts.
4installs
Sourceakillness/oh-my-skills
Added on
NPX Install
npx skill4agent add akillness/oh-my-skills obsidian-cli-uri-fallbackTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →obsidian-cli-uri-fallback
Use this skill when Obsidian CLI calls are part of unattended runs and you need reliable note persistence even if URI execution fails silently.
When to use this skill
- Cron jobs or CI-like runs that attempt .
obsidian-cli create/open/... - Desktop app availability is uncertain (headless, remote, or locked session).
- CLI output includes explicit failure signatures while exit code is still zero.
- You need a deterministic fallback path to preserve audit notes.
Instructions
- Run the intended command first.
obsidian-cli - Treat either non-zero exit or known failure-signature text as failure.
- Minimum signature list:
Failed to execute Obsidian URICannot find note in vault
- Minimum signature list:
- On failure, write the note directly to markdown path () using deterministic naming.
<vault>/.../*.md - Record fallback status in run artifacts:
- attempted command
- observed signature
- fallback file path
- Continue the workflow without retry loops unless user explicitly requested retries.
Examples
- prints
obsidian-cli create "queries/hourly-2026-04-27.md" -c "..."with exit code 0.Failed to execute Obsidian URI- classify as failure
- fallback: write directly
queries/hourly-2026-04-27.md - record fallback path in survey/PR artifacts
Best practices
- Prefer ASCII-only automation payloads in unattended shells.
- Keep fallback filenames stable and timestamped.
- Never claim Obsidian CLI success when failure-signature text is present.
- Keep fallback evidence alongside run artifacts for reviewer traceability.
References
.agent-skills/obsidian-cli/SKILL.md.agent-skills/survey/references/keyword-sweep-and-relevance-rescue.md