Frontmatter Guard

Injects the canonical vault frontmatter schema snippet into agent prompts before any vault-write task, preventing malformed YAML frontmatter in Obsidian notes. <example>Context: wave-executor is about to dispatch a vault-mirror agent that writes learning notes under ~/Projects/vault/40-learnings/. user: "dispatch vault-write agent" assistant: "Injecting frontmatter-guard snippet into agent prompt (vault scope detected). Required fields: id, type, created, updated. Enum type: note|daily|project|person|reference|idea|learning|session." <commentary>The wave-executor pre-dispatch hook calls detectVaultTaskScope() — the fileScope contains /Projects/vault/40-learnings/ so the guard triggers and the snippet is prepended to the agent system prompt.</commentary></example>

thedixitjain 17c3e84 7.2 KB Updated 2 repo stars

File contents

thedixitjain/the-mega-skill-library/tree/main/library/ai-agents-and-harness/frontmatter-guard--hashgraph-online commit 17c3e84539

Frequently asked questions

npx skillmds add thedixitjain/frontmatter-guard-2