Make spec

From MarceloClaro/OpenCode_Ecosystem · View interactive version

Make spec is an AI agent skill from the GitHub repository MarceloClaro/OpenCode_Ecosystem. Scaffold a substantive human-readable design doc (spec / plan / ADR / report / PR explainer) as native HTML using the workspace's canonical Broomva dark theme. Implements P18 (Format-Follows-Audience) for Category-C native artifacts — distinct from `bookkeeping render`, which projects Category-B mar

How to use this skill

Skill file

make-spec — HTML design-doc scaffold (P18 Category-C)

**One template + one theme + one filename convention — so the writer

spends 100% of energy on substance, 0% on boilerplate.**

Why this skill exists

Since P18's promotion 2026-05-13, the workspace produces substantive

design docs as native HTML rather than markdown:

| Type | Location | Examples (last 7d) |

|---|---|---|

| Spec | docs/specs/ | 2026-05-22-broker-selection-cross-asset.html, 2026-05-23-life-houston-runtime-integration.html |

| Plan | docs/plans/ | 2026-05-22-feature-flag-design.html, 2026-05-22-houston-advanced-settings.html, 2026-05-22-houston-developer-mode.html |

| Report | docs/reports/ | 2026-05-22-houston-dogfood-pattern.html, 2026-05-22-mission-control-vs-houston.html |

| ADR | docs/adrs/ | (folder reserved; pattern proven via broker-selection ADR in docs/specs/) |

| PR explainer | docs/pr-explainers/PR-<n>.html | (P18-reserved path) |

All 7 hand-rolled HTMLs above share the same 70-line CSS preamble:

--bg #0e1116, --ink #e7ecf2, --accent #7ec4ff, --accent-2 #b58cff,

h1-h4 with identical sizes/margins/colors, table with hover, callout

classes (warn/bad/ok/big), tag chips (info/warn/ok/bad/pick/cfd),

TOC block, footnote/cite styling.

Before this skill, every HTML doc rebuilt that boilerplate from

memory or copy-paste. The boilerplate IS the Broomva visual identity for

internal docs; centralizing it makes the visual identity stable AND

saves ~5 minutes per doc.

What this skill provides

  1. references/theme.css — the canonical 70-line stylesheet,

verbatim from the proven specs. Reference, don't recopy.

  1. references/template-spec.html — base template; the other

four variants differ only in title prefix, TOC sections, and

meta line.

  1. references/template-plan.html — plan variant (sub-phase

table + acceptance criteria sections).

  1. references/template-adr.html — ADR variant

(Status / Context / Decision / Consequences / Alternatives).

  1. references/template-report.html — report variant

(Executive summary / Findings / Recommendations / Appendix).

  1. references/template-pr-explainer.html — PR-explainer variant

(What changed / Why / Test plan / Risk / Rollout).

When to invoke

matrix, multi-row PR table, regulatory citations, multi-stage plan).

governance-class change — same trigger as P20's review requirement).

review (not just the executor).

Carve-outs (do not invoke)

HTML payoff doesn't justify the 2-4× generation cost on short docs).

always markdown (Category A: substrate stays markdown).

markdown renderer is the audience layer).

skills; this skill is for static design docs only.

The canonical structure

Every variant follows the same skeleton:

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title><Doc type> — <Doc title></title>
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <style>
    /* paste references/theme.css verbatim */
  </style>
</head>
<body>
  <h1><Doc title></h1>
  <p class="subtitle"><One-line summary></p>
  <p class="meta">
    Author: <agent | user> · Generated: YYYY-MM-DD · Status: <draft | accepted | superseded><br>
    Decision-class: <span class="tag info">substantive</span> · risk-class: <span class="tag warn">…</span><br>
    Upstream context: <code>…</code>
  </p>

  <div class="callout warn">
    <strong>Verification scope</strong>. <When this doc requires
    out-of-band verification before action — e.g. CPA review, legal
    review, deploy approval — state it here.>
  </div>

  <div class="toc">
    <strong>Contents</strong>
    <ol>
      <li><a href="#section-1">…</a></li>
    </ol>
  </div>

  <h2 id="section-1">1. <Section title></h2>
  <!-- … -->
</body>
</html>

CSS theme (load from `references/theme.css`)

The theme is not open for tweaking inside individual docs. The

visual identity is stable across all internal Broomva HTMLs:

blue and --accent-2 purple read cleanly)

"this is the decision" highlight)

(ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo)

To change the theme: amend references/theme.css and the change

propagates to every new doc. Existing docs are not retro-updated

(P13 stability budget — don't rewrite history for cosmetic deltas).

Tag system

The <span class="tag X">…</span> chips are the doc's status

vocabulary. Always-supported classes:

| Class | Use | Color |

|---|---|---|

| info | neutral metadata / classification | --accent blue |

| ok | confirmed / passing / accepted | --ok green |

| warn | needs verification / blocked-on-external | --warn yellow |

| bad | rejected / failing / unsafe | --bad red |

| pick | THE decision (uniquely highlighted) | --accent-2 purple, bold |

| cfd | specific anti-pattern marker (synthetic exposure / not-real-ownership; from the broker-selection ADR vocabulary) | --bad muted |

Callout system

Four callout flavors:

<div class="callout">…</div>        <!-- neutral; accent border -->
<div class="callout ok">…</div>     <!-- success / confirmed -->
<div class="callout warn">…</div>   <!-- needs verification -->
<div class="callout bad">…</div>    <!-- rejected / unsafe -->
<div class="callout big">…</div>    <!-- the headline decision / TL;DR -->

File placement

| Doc type | Path | Filename |

|---|---|---|

| Spec | docs/specs/ | YYYY-MM-DD-<slug>.html |

| Plan | docs/plans/ | YYYY-MM-DD-<slug>.html |

| ADR | docs/adrs/ (or docs/specs/ until the dir is canonical) | YYYY-MM-DD-adr-<slug>.html |

| Report | docs/reports/ | YYYY-MM-DD-<slug>.html |

| PR explainer | docs/pr-explainers/ | PR-<n>.html (no date — PR number is the identifier) |

Slug names the topic, not the date. The date is the mtime.

The five anti-patterns this skill exists to prevent

| Anti-pattern | Failure mode | Fix |

|---|---|---|

| Rebuilding the theme inline | 70-line :root drift across docs; visual identity erodes. | Always reference references/theme.css; don't paraphrase. |

| Markdown for a 200-line spec | Tables don't render the way the writer pictured; ASCII pseudo-diagrams; reader bounces by line 80 (the trq212 ceiling). | Apply the audience test: human-read substantive → HTML. |

| HTML for a 30-line note | 2-4× generation cost for no information-density payoff. | Brief docs stay markdown. |

| Title in <h1> differs from <title> | Tab-bar text doesn't match doc heading; reader gets confused when 5 tabs open. | Keep <title> and <h1> in sync; <title> adds the doc-type prefix ("ADR — …"). |

| No meta line | Reader can't tell author / date / status / risk-class without skimming. | The <p class="meta"> line is mandatory: author + date + status + risk + upstream context. |

Composition rules

| Compose with | When |

|---|---|

| bookkeeping render | NEVER for native HTML — bookkeeping render is for Category-B (MD canonical → HTML projection). This skill produces Category-C natives. They're disjoint per P18. |

| handoff | A handoff is markdown (agent-loaded) but may link to a make-spec HTML companion when the arc warrants. Handoff stays MD; companion is HTML. |

| autonomous | When /autonomous is mid-arc and a substantive plan emerges, fork the plan into docs/plans/<slug>.html via this skill, then continue execution. |

| Webdesign / impeccable / arcan-glass | Disjoint — those are for product-surface UI; this is for internal design docs. |

Validation (spec self-test)

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.