--- name: editorial-document description: Write long-form editorial documents as clean, semantic HTML saved as an artifact (kind=document) — reports, briefs, explainers, proposals, write-ups. Covers the house style (structure, voice, typography) AND the security contract (the HTML is sanitized fail-closed, so author within the allowlist). Load when the user wants a polished written document, report, brief, or explainer that should read like a publication, not a chat message. triggers: document, write a report, write up, brief, explainer, proposal, white paper, editorial, long-form, publish a doc, formatted document, article, memo, one-pager --- # Editorial Documents Gideon renders long-form written documents from semantic HTML, saved as an artifact with `kind=document`. Unlike a `widget` (interactive HTML in a sandboxed iframe) or `markdown`, a document is **prose-first editorial HTML** rendered in the page with a tuned reading type scale — it should read like a published piece. Save with `artifact_save(kind="document", name="…", content=)`. The body is HTML (semantic tags, no ``/`
` wrapper needed — just the content). The viewer renders it with the editorial stylesheet, lets the user edit the HTML with a live split preview, comment on any passage, and export it (standalone HTML / copy). ## When to use this vs other types - **Document** — a written piece meant to be *read*: reports, briefs, explainers, proposals, post-mortems, design write-ups. Prose is the substance. - **Markdown** — quick notes / READMEs / chat-adjacent text where Markdown's shorthand is enough and you don't need editorial typography. - **Widget** (`visual-output` skill) — interactive HTML, dashboards, custom charts. - **Infographic** (`infographic-syntax` skill) — structured visual info-design. ## The security contract (author within the allowlist) The document body is **sanitized fail-closed** before rendering: anything not on the allowlist is dropped. This is a security control because the content may echo untrusted material (e.g. crawled pages). Author accordingly: - **Allowed:** semantic prose + structure — headings (`h1`–`h6`), `p`, `ul`/`ol`/ `li`, `blockquote`, `pre`/`code`, `table`/`thead`/`tbody`/`tr`/`th`/`td`, `figure`/`figcaption`, `img`, `a`, `strong`/`em`, `hr`, `section`/`article`, inline `svg` for simple diagrams. - **Dropped (don't bother emitting):** `