Obsidian Output Format

Enforce Obsidian markdown output contract with <yolo_block> tags. Use whenever returning markdown content, proposing markdown edits, or referencing markdown snippets.

lapis0x0 6ad9434 1.3 KB Updated

File contents

Obsidian Output Format

Use <yolo_block> only when proposing edits to an existing markdown file.

Rules

  1. Output exactly one <yolo_block> when proposing file edits.
  2. Inside <yolo_block>, output one edit block only.
  3. The <yolo_block> block does not require any code block wrapping.

Format(REPLACE)

Normal output text before the <yolo_block> block. <<<<<<< REPLACE [old] exact old text ======= [new] new text

END

Allowed operation types:

  1. REPLACE for replacement
  2. INSERT_AFTER for insertion after an anchor
  3. APPEND for appending to the end

Operation Rules

  • Keep [old] or [anchor] minimal but uniquely matchable.
  • Preserve exact markdown source in [old], including whitespace and punctuation.
  • The APPEND operation only requires outputting the New text; there is no need to output [old] and exact old text
  • Each <yolo_block> must contain exactly one operation.
  • Do not dump the full file unless explicitly requested.

lapis0x0/obsidian-yolo/tree/main/src/core/skills/builtin/obsidian-output-format commit 6ad9434558

Frequently asked questions

npx skillmds@latest add lapis0x0/obsidian-output-format