skills.naz.ovh

Skills

better-plan

Turns a plan into a readable page where you can comment and answer questions.

What it does

Your agent writes its plan as an HTML page instead of a long chat message. You read it in a browser, comment on any part, answer its questions, and paste your feedback back to the agent.

The page is built with ForgeDoc, which the agent runs through npx.

Install

npx skills add https://skills.naz.ovh --skill better-plan

When to use it

  • Planning a feature or a change
  • Comparing approaches before choosing one
  • Writing a design doc or an RFC
  • Collecting decisions from a reviewer
  • Revising an earlier plan

Example

Plan how we should add two-factor login

The agent writes a file named like PLAN_two-factor-login.html and builds it. Open that file in your browser.

Give feedback

  1. Select any text to comment on it, or use Comment on a card or diagram.
  2. Choose an answer for each open question. The agent marks the one it recommends.
  3. Copy your feedback and paste it into the chat. It starts with === FB v1.

The agent updates the same file, turns your answers into decisions, and tells you what changed and what is still open.

Good to know

  • A plan stays one file. Ask for history if you want to keep older versions.
  • The normal page loads its runtime from a CDN. Ask for an offline version if the reader has no network. That file is several megabytes.

Files

Everything this skill installs. Select a file to read it.

SKILL.md9.3 KB Raw
name: better-plan
description: Write a planning document as ForgeDoc markup — a readable HTML page the reader can answer inside — and build it to one HTML file, with an offline option for self-contained delivery. Use when asked to plan work, propose an approach, write a design doc or an RFC, revise a plan, or collect decisions from a human reviewer.

Better plans with ForgeDoc

What a plan is for

A plan gets an idea out of your head and into the reader's, then asks them what you cannot decide alone. Everything in it serves one question the reader keeps asking: "I don't understand this yet — what is going on here?"

ForgeDoc delivers the plan as an HTML page the reader can answer inside. Its doc-* tags — elements — are a toolkit: each one is a ready-made way to show something, cheap to write, styled and themed by the runtime, and wired into the feedback box the reader pastes back to you. Use them to save tokens, not as a cage. The runtime supplies design, layout, dark mode, numbering, anchors and motion. You supply the meaning.

Pick the form that clears the confusion

For each idea, ask what would make it click for this reader, then use that. Sometimes it is one plain sentence. Sometimes a table, a picture, a short animation, something they can click, or a block you design yourself.

  • Do not default to one format, and do not aim for a "balance" of formats. A plan that is all prose and a plan that is all widgets fail the same way.
  • Short text is fine when text is the clearest. Many points need nothing more.
  • Avoid long walls of text. If a paragraph keeps growing, the idea probably wants a different shape — or a doc-collapse for the detail few will read.
  • Each element earns its place by explaining something. Remove the ones that only decorate.
When each form helps

A menu, not a mapping. Reach for one when it fits; ignore the rest.

When the reader needs to… This often helps
follow an argument, a reason, a caveat plain sentences, <ul>
see something happen — a request accepted or refused, data moving between tables, state changing over steps doc-walkthrough
follow a short, straight sequence doc-flow
see the whole shape of a change at once, then open the parts they care about doc-mindmap
weigh two or three shapes side by side doc-compare
look up exact values — columns, cookies, mappings <table> in doc-table
see the order of delivery doc-roadmap (or doc-timeline for dates)
see which files move doc-tree, or doc-files for collapsible groups by area
read numbers that matter doc-stats
judge risks or ownership on a grid doc-matrix
read exact code or a change to it doc-code, doc-diff
try something, or see an idea no element shows well doc-custom
be told something is stuck, and what unsticks it doc-blocker

Walkthroughs. A doc-walkthrough is a small animated stage: actors as cards, and scenes that move a token between them or change one. The reader presses Play, or steps with arrows and dots. It helps most when something moves, branches, fails or changes state — the exact things a paragraph makes the reader simulate in their head. Keep captions to a sentence or two; the motion carries the meaning. For a sequence that is just "A, then B, then C", doc-flow or a sentence is clearer.

Mind maps. A doc-mindmap is an overview the reader can open up: a title card, and doc-node cards branching from it, each with a little rich text, an icon or an image. expand sets how many levels start open, and the reader opens the rest with a click or the arrow keys, pans and zooms, and gets an indented outline on a phone. It suits a picture of where a change reaches — the database, the server, the apps, and what moves in each.

Custom blocks. When no element explains the idea well, design one inside <doc-custom>: your own HTML, a <style> and a <script type="forgedoc">. Styles stay inside the block, the --doc-* tokens keep it on theme and in dark mode, and it takes comments like any other block. Keep it small and specific — a toggle that shows a constraint passing or failing, a slider, a little diagram. If you notice you are rebuilding a table or a flow, use the element instead.

File paths can open in the reader's editor: set files-root on doc-page (add files-wsl for a WSL project) and write paths relative to it in doc-file or the inline doc-path. The reader picks their editor in a small picker.

Mermaid (doc-figure type="mermaid") suits a small static picture. Dense graphs are hard to read at page width; split them, or play them as a walkthrough when they describe something that happens.

Look the vocabulary up

CHEATSHEET.md beside this file is the whole vocabulary on one page. Read it before writing markup. When it leaves a question open:

npx forgedoc search <words>          # which element does X?
npx forgedoc info doc-walkthrough    # attributes, rules and an example

An invented tag or a guessed attribute fails the build.

Elements go where the content is

A question goes right after the thing that raises the doubt — not in a list at the end. A walkthrough goes where you would otherwise say "picture this". A blocker goes inside the section it blocks. No required order, no required sections. Two plans about two problems should not look alike.

<doc-section title="How a request finds its account">
  <p>The vendor below is also staff — the case the old role check got wrong.</p>

  <doc-walkthrough title="One cookie, one surface">
    <doc-actor name="panel" label="Vendor panel" kind="app" tone="cyan"></doc-actor>
    <doc-actor name="vendor-guard" label="authenticateVendor" kind="service"></doc-actor>
    <doc-actor name="admin-guard" label="authenticateAdmin" kind="service" tone="violet"></doc-actor>
    <doc-scene title="A vendor route">
      <doc-move from="panel" to="vendor-guard" token="ub_vendor_session" result="accept"></doc-move>
      <p>The vendor guard reads only the vendor cookie, and finds vendor 42.</p>
    </doc-scene>
    <doc-scene title="Wrong door">
      <doc-move from="panel" to="admin-guard" token="ub_vendor_session" result="reject"></doc-move>
      <doc-change actor="admin-guard" set="401" tone="bad"></doc-change>
      <p>The admin guard never reads it, so it sees no session: 401.</p>
    </doc-scene>
  </doc-walkthrough>

  <doc-choice mode="single" question="Someone who is vendor and admin: one login or two?">
    <doc-option recommended>
      Two logins, one per surface
      <p slot="desc">Matches the tables. Staff sign in twice.</p>
    </doc-option>
    <doc-option>
      One login, linked accounts
      <p slot="desc">Friendlier, but brings back a shared identity.</p>
    </doc-option>
  </doc-choice>
</doc-section>

One sentence sets the scene, the walkthrough shows the part that is hard to picture, and the question sits where the doubt appears. The next section might be a single table, or two sentences. Copy the judgement, not the shape.

Close every tag explicitly — <doc-actor …></doc-actor>, never <doc-actor/>. HTML has no self-closing custom elements, and the build rejects them in a walkthrough.

Questions

Ask when the answer changes the work. Mark your suggestion recommended, and give each option its real cost in one line. Decisions already made belong in the plan as statements, with the reasoning behind them — a doc-chips row under the header is a good home for the settled ones.

You never need a question to invite feedback — the reader can select any sentence, or press Comment on any card, scene or block.

The file

Name it PLAN_<name>.html, or DOC_<name>.html for documentation. Two lines are required byte for byte: the style in <head>, the script last in <body>.

<style>/*@DOC_CSS@*/</style>
<script>//@DOC_JS@</script>

Everything else sits inside one <doc-page doc-id="a-unique-slug">. The doc-id is required — it is the key the reader's answers are stored under. Outside a doc-custom block, write no <style>, <script>, class=, role= or aria-*: the runtime owns those.

npx forgedoc build PLAN_<name>.html

The build rewrites that same file. One document, one file, for its whole life. To revise, edit it and build again: the build reads its own output. Never write a copy, a second file, or a version number into the name — the reader's link keeps working because the document never moves.

Titles, questions, sections and scenes produce their own headings, numbers, anchors, option letters, controls and contents entries, so none of those are yours to type. Themes, offline delivery and keeping past versions are in BUILDING.md.

Before you hand it over

Read it as the reviewer, top to bottom, and find where they would stall:

  1. Where would they reread? That spot needs a different form — fewer words, a table, a walkthrough, a custom block — whichever clears it.
  2. What is there only to look busy? An element that explains nothing, or a paragraph that repeats a picture, comes out.
  3. Is every open decision a doc-choice, placed where its doubt arises, with your recommendation marked?

Spend your effort on understanding. The runtime owns the design.

When the reader answers

They send a block starting === FB v1 ·. Read FEEDBACK.md beside this file before interpreting it.

BUILDING.md2.4 KB Raw

Building: themes, offline, and keeping versions

The normal build is one line and rewrites the document in place:

npx forgedoc build PLAN_<name>.html

Everything below is for a reader who asked for something else.

Check before you build

npx forgedoc validate PLAN_<name>.html --format=json

The build validates anyway and writes nothing on failure, so this is only worth running on its own when you want the errors as JSON.

Themes

A document carries one theme, chosen at build time. Name it in the placeholder so a rebuild months later produces the same document:

<style>/*@DOC_CSS:geist@*/</style>

Leave the placeholder bare for the default. npx forgedoc themes lists what this installation can build with. The theme rides along in the built file, so later rebuilds keep it without being told.

Offline delivery

npx forgedoc build PLAN_<name>.html --offline

Use this only when the reader truly has no network. It embeds the whole runtime, reaches several megabytes, and writes into .temp/ rather than over your document — that file is something you send, not something you commit.

The normal build links a version-pinned CDN and stays around 15 kB, which is small enough to commit and to read in a diff.

Keeping past versions

By default the document is one file that always shows the current plan. Older versions are not kept, because a folder of near-identical plans is how a reader ends up commenting on the wrong one.

When the reader explicitly asks for a history, add --history:

npx forgedoc build PLAN_<name>.html --history

The document moves into a folder of its own and keeps its own record:

PLAN_vendor-orders/
  index.html                    ← the current plan, and the only file to open
  history/
    0001-2026-07-28.html
    0002-2026-08-04.html

Build PLAN_vendor-orders/index.html --history from then on. Each build adds the version it published; a rebuild that changes nothing adds nothing.

Writing somewhere else

npx forgedoc build PLAN_<name>.html --out <target.html>

This leaves the source file with its placeholders intact and writes the built document elsewhere. Use it when something outside the plan owns the output path — a docs site, a build directory. For ordinary work the in-place build is what you want, because it keeps one file rather than two that drift apart.

CHEATSHEET.md5.8 KB Raw

ForgeDoc cheatsheet

Write semantic markup only. A prebuilt runtime supplies styling, layout, interactivity, persistence and feedback collection. Use whichever form makes an idea clearest — text, an element, or your own doc-custom block. Name the file PLAN_<name>.html for a plan, DOC_<name>.html for a document.

<style>/*@DOC_CSS@*/</style>   <!-- in <head> -->
<doc-page doc-id="demo" density="comfortable" accent="teal">
  <doc-header kicker="Plan · Demo">Title<p slot="lede">Lede.</p></doc-header>
  <doc-section title="Overview"><p>Prose.</p></doc-section>
</doc-page>
<script>//@DOC_JS@</script>    <!-- last line of <body> -->

Build in place forgedoc build <file.html> — one file, rebuilt on every revision · offline --offline · keep versions --history · check forgedoc validate <file.html> --format=json · detail forgedoc info <element> · find one forgedoc search <words>.

Shell & meta

Tag Attributes
doc-page doc-id slug · density compact/comfortable/spacious · scale sm/md/lg · accent teal/indigo/slate/plum/amber · measure narrow/default/wide · code auto/light/dark · toc open/closed/docked/off · numbering counter/text · files-root · files-wsl · files-editor vscode/vscode-insiders/cursor/windsurf/zed/zed-linux/idea/none
doc-header kicker
doc-section title
doc-toc generated — never write it
doc-chips › doc-chip chip: kind confirmed/info/action/pending
doc-owners › doc-owner owner: name · role · avatar · status approved/pending/reviewing/rejected

Prose, callouts & specs

Tag Attributes
doc-decision title · id · status accepted/proposed/rejected/deprecated/superseded · date
doc-endpoint method get/post/put/patch/delete/options/head · path · summary · description · auth bearer/basic/api-key/session/none · headers · params · request · status · response
doc-params › doc-param param: name · type · in path/query/header/body · required · default
doc-steps › doc-step step: title · status completed/active/pending/optional
doc-badge variant info/success/warn/danger/neutral/accent
doc-note kind info/tip/warn/danger/success · title
doc-blocker › doc-blocks + doc-why + doc-action title · severity high/medium/low
doc-list marker check/cross/arrow/dot/number · title · kind positive/negative/neutral
doc-quote cite
doc-term href url
doc-ref to
doc-path path · line integer

Metrics, planning & interactive

Tag Attributes
doc-stats › doc-stat stat: label · value · trend up/down/flat · good · tone good/bad/neutral · diff
doc-timeline › doc-milestone milestone: date · title · status completed/in-progress/planned/delayed · owner
doc-matrix type raci/risk/comparison/custom
doc-choice › doc-option question · id slug · mode single/multi — option: label · value · hint · recommended · other
doc-rating question · id slug · scale integer
doc-checklist no attributes
doc-tabs › doc-tab tab: label · active
doc-collapse title · open · sticky
doc-carousel title

Structure & content

Tag Attributes
doc-flow › doc-flow-node flow-node: title · active
doc-walkthrough › doc-actor + doc-scene › doc-move + doc-change title — actor: name slug · label · kind person/app/service/table/store · tone accent/blue/green/amber/red/violet/cyan/rose/neutral · absent — scene: title · focus — move: from slug · to slug · token · result accept/reject — change: actor slug · add · remove · set · tone good/bad/neutral · drop
doc-mindmap › doc-node title · expand · layout tree/radial — node: title · icon person/app/service/server/table/store/database/check/comment/question · tone accent/blue/green/amber/red/violet/cyan/rose/neutral · open · closed
doc-roadmap › doc-stage start integer — stage: title · subtitle · current · open
doc-code lang see allowlist · title · highlight · wrap
doc-diff lang see allowlist · filename
doc-figure › doc-caption type svg/image/mermaid/html · caption · src url · alt
doc-table size sm/md · stack auto/never
doc-tree root
doc-files › doc-file-group › doc-file title — file-group: title · path · count · open — file: path · line integer
doc-compare columns 2/3/4
doc-custom title

Rules

  • Never write <style>, <script>, class=, role= or aria-* outside doc-custom — the runtime owns them.
  • Never write section numbers (1.2.1), stage numbers, or option letters (A/B/C) — every one is derived, and a typed one goes stale.
  • Never write id= — ids come from title and question. Override only for an anchor that must survive a reworded heading.
  • Never write doc-toc — generated from your sections. Steer it with <doc-page toc="docked">.
  • Already styled, so there is no tag for them: <p> <ul> <ol> <li> <code> <a> <strong> <em> <table> <h1> <h2> <h3> <h4> <h5> <h6>. lang allowlist: ts js tsx jsx html css json bash sh sql rust python yaml toml diff http text.
  • Override in this order: preset attribute (<doc-page density="compact">), then token (--doc-accent-600), then raw CSS ([data-part="title"], no !important needed).
FEEDBACK.md3.2 KB Raw

Reading the reader's answers

The reader sends you a block that starts with === FB v1 ·. It carries the question text and the chosen labels word for word, so you can read it without the original file.

=== FB v1 · vendor-orders · 2026-07-28T10:22:31Z · 2 items ===

[1] ANSWER q-should-read-state-be-shared
q: Should read state be shared across the vendor team?
a: Yes — shared team inbox
n: only if we can still see who marked it read

[2] COMMENT sec-what-we-are-building
at: 1 What we are building
> Vendors get told the moment a new order lands
c: is this the payment webhook or the order row?

=== end FB v1 ===

The fields

Field What it holds
q: the question that was asked
a: a chosen label — repeated once per choice on a multi-answer
n: a note the reader wrote about their answer
> the text they selected
c: their comment on that text
at: where in the document it happened

A field that runs long continues on lines indented by exactly three spaces.

A comment on a diagram, an image or a code block has no selectable text, so its > line describes the block instead:

> doc-figure · How a plan travels from the agent to the reader and back

Match those by the caption or filename in the description, because the id is generated.

Rules for matching an item to the document

Apply these exactly.

  1. Match each item by its anchor id first — the token right after ANSWER or COMMENT — and by the quoted text second.
  2. Treat the option label as the truth, not the letter. If the label and the letter disagree, or the anchor is no longer in your copy, ask the reader which option they meant.
  3. Attach an answer only to a question whose text matches word for word. If the wording changed between their copy and yours, ask rather than assume.
  4. If one item is malformed, process every other item and tell the reader which one you could not read.
  5. An a: line under an Other answer is the reader's own wording. Treat it as a new proposal, not as one of your options.

What to do with what they said

Fold the decisions into the same file and build it again. The document is one file for its whole life, so a revision overwrites it — never write a copy, a second file, or a version number into the name.

A settled question becomes a statement in the prose: what was chosen, and why. Then delete the doc-choice that asked it. A decision the reader has already made should not be put to them twice, and a plan that still asks it reads as if nobody listened.

A comment usually means one of three things, and they need different answers:

  • A question about the plan — answer it in the prose, where the next reader will find it too.
  • A correction — make the change, and say in the reply which paragraph moved.
  • A disagreement about an approach — this is a decision that was not open when you wrote it. Add the doc-choice you should have asked, with their position as a real option.

When you hand the revised document back, say what changed and what is still open. The reader needs to know whether their comment landed without reading the whole plan again.