Agent Authoring Guide

moss only exposes a clean, human-readable editing surface via markdown files. HTML in md files and new shortcodes are last resorts.

Decision order for visual treatments

When a design call requires a visual treatment, try in this order:

  1. Plain markdown + CSS selector. h1 + blockquote for a deck, h2 for a section label, blockquote for a pull quote. Write the markdown; write the rule in .moss/theme/style.css. No new markup.
  2. Named-class fenced div. ::: {.tagline} wraps markdown in <div class="tagline">. Add the rule in style.css. See shortcodes#Named-class fenced divs.
  3. Class on an existing shortcode. :::grid 2 {.work-cards} — add the class, write CSS. No new shortcode.
  4. Propose a new moss shortcode — only if 1–3 cannot reach the design. Discuss with the human author before implementing.

Hard rules

If you think you need HTML, stop and ask

Reference docs

The full grammar reference (attribute parser, cell divider, unknown-name fallback, escape rules) lives in moss's docs/architecture/shortcode-grammar.md.

Published with moss