diff --git a/.agents/SKILL.md b/.agents/SKILL.md new file mode 100644 index 0000000..eb766a9 --- /dev/null +++ b/.agents/SKILL.md @@ -0,0 +1,102 @@ +--- +name: obsidian-html-docs +description: Author HTML files for the Obsidian HTML Docs plugin (smcllns/obsidian-plugin-html-docs). Use when creating .html docs intended to render inline in Obsidian: theme tokens, sandbox constraints, asset rules, embed sizing, and things that silently do not work. +--- + +# Obsidian HTML Docs authoring guide + +The HTML Docs plugin lets users view `.html` files inside Obsidian tabs, markdown embeds, and Canvas cards. It renders each file in a sandboxed iframe via Blob URL. The iframe is sealed (`sandbox="allow-scripts allow-popups allow-forms"`, no `allow-same-origin`) so it cannot reach into Obsidian or the vault. Everything below works within that envelope. + +## Default to Obsidian context unless asked otherwise + +Before creating the Blob URL, the plugin appends a `