Sulat.com / Writing on AIMonday, December 7, 2026
Enter →
Agent Engineering/7 December 2026

Answer me with HTML lets the model write less

Answer me with HTML has the model write a short draft and a CLI build the page. I ran it on seven models and inside an agent.

Answer me with HTML logo in 3D beside a rendered answer page
Illustration: Sulat, featuring the Answer me with HTML logo

At a glance

  • The Answer me with HTML skill has the model write a short Markdown draft and a CLI build the page, so the model never writes HTML or SVG.
  • Across six models the median went from about 5,500 output tokens to about 900, roughly six times fewer, against the post's eight and the repo's own 4.9.
  • Only 24 of 42 skill drafts rendered first time, and Opus failed four of six even after two fix rounds. Inside an agent, all 19 page-building runs ended with a page.
  • The skill adds about 7,300 input tokens per call, and its pages weigh about 13 times more than hand-written ones.
  • None of seven agents loaded the skill for a one-line question about ls. Its code guard refuses secret-named files but embedded settings.js and config.local.env.

Answer me with HTML is an agent skill that has the model write a short Markdown draft and leaves the layout, tables and diagrams to a command line tool. hsianghui’s post says that took 612 output tokens against 4,893 for hand-written HTML. I ran it on seven models, hand-written page against skill page, then again inside an agent. The saving is real. It came to about six times, between the post’s eight and the repo’s own live figure of 4.9. What the post doesn’t show is how often the first draft fails to render.

hsianghui’s post about the skill.

What the skill does

The skill is QingYunA/answer-me-with-html, MIT licensed, version 0.6.4 when I ran it. When a question deserves more than a paragraph, the model writes Markdown with a few extra blocks such as flow, sequence, state, chart, callout and ask. The bundled CLI, am.mjs, turns that draft into one self-contained HTML page with three themes, light and dark modes and a Reply button. The model never writes HTML, CSS or SVG.

Flow: question, short model draft, CLI builds one HTML page
The model writes a short draft and the CLI builds the page.

The repo ships its own benchmark. On live runs it reports about 4.9 times fewer output tokens, 2.6 times faster answers and 15 percent lower cost per answer. The 8 times figure in the post is the token count of nine saved pages against nine saved drafts. I wanted to see what other models do with it.

How I ran it

Everything ran on a 4-core, 16 GB RAM, Ubuntu 24 box. I used two rigs. The first calls each model directly, once as a plain question and once with the skill text as the system prompt, so the only difference is the skill. The second runs opencode 1.19.6 with the skill installed in the project folder, and asks the bare question to see whether the agent reaches for the skill on its own.

Seven models: Kimi K3.1 Pro, DeepSeek V4.1 Flash, Claude Opus 5.5, GPT-6.2 Sol, Gemini 4 Neon, MiniMax M4 and GLM 5.4. The first rig used three questions, two runs each.

Code
Explain the TCP three-way handshake and teardown.
Redis or Memcached for our cache?
git merge vs rebase: when should I use which?

Without the skill, each question got this instruction appended:

Code
Answer with one self-contained HTML page: inline CSS, any diagrams as inline SVG, no external requests. Reply with the HTML only.

With the skill, the model got the skill text as the system prompt and this instead:

Code
Write only the Markdown draft that goes between the heredoc markers. No commands, no explanation, no code fence around the whole draft.

I then ran the CLI on each draft myself. If it refused the draft, I sent the model the error message and let it try again, up to two more times. The agent rig used the bare questions, plus a third about the repo itself:

Code
Redis or Memcached for our cache?
Explain the TCP three-way handshake
How are the modules in this repo organised?

About six times fewer tokens

Every model wrote less with the skill. Across the six models in the chart, the median went from about 5,500 output tokens to about 900. Answers came back 2 to 5 times faster, counting the first draft only and not any fix.

ModelHand-written tokensSkill tokensHand-written secsSkill secsRendered first tryRendered after fixes
Kimi K3.1 Pro6,5171,33488193 of 64 of 6
DeepSeek V4.1 Flash4,7369731153 of 65 of 6
Claude Opus 5.57,9422,21063212 of 62 of 6
GPT-6.2 Sol1,1934241486 of 66 of 6
Gemini 4 Neon6,27254551153 of 63 of 6
GLM 5.43,94482154164 of 65 of 6
MiniMax M430,00011,0312841123 of 64 of 6
Median output tokens and seconds per answer, and how many of the six skill drafts rendered.
Bar chart of output tokens for six models, hand-written HTML vs skill draft
Every model wrote far less with the skill than with hand-written HTML.

Two rows need a note. MiniMax M4 counts its reasoning tokens, its hand-written runs hit my 30,000 token cap twice and the connection dropped on the other four, so it’s in the table but not the chart. GLM’s rate limit failed three of its six hand-written runs, so its row rests on three. Sol saves the least, because its hand-written pages are already short.

The skill has a cost too. Its text is about 7,300 input tokens on every call, against about 70 for the bare question. I didn’t price the runs, so I can’t say whether the saved output pays for the extra input on your plan.

Two stats: 6x fewer tokens written, 13x heavier page
The model writes about a sixth as much, and the page weighs about 13 times more.

The pages are heavier. A skill page ran between 179 and 202 KB in every run, because it carries its own scripts and themes. The hand-written pages were 15 KB at the median, and Sol’s ran 3 to 5 KB. The skill page loads from one file with no outside requests, apart from a single link to the project on GitHub.

What the pages look like

Same question, same model, hand-written on the left and skill on the right. Kimi’s hand-written page is a styled hero with cards. Its skill page is plainer, with a recommendation panel and a comparison table.

Two Redis vs Memcached answer pages side by side, hand-written and skill
Same question, two pages: hand-written on the left, skill on the right.
Redis vs Memcached answer pages from GPT-6.2 Sol, hand-written and skill
Sol’s hand-written page is already short, so the skill saves little.
TCP handshake answer pages from Gemini Neon, hand-written and skill
Neon’s hand-written page against its skill page for the TCP question.

The skill pages share one look because one tool draws them. You get the three themes and the block types it knows, and nothing else.

Contact sheet of six Redis vs Memcached pages built by six models
Six models, one question, six pages from the same skill.
All six pages, scrolled top to bottom in a real browser.

Drafts that don’t render

Of the 42 skill drafts in the first rig, 24 rendered on the first go. The CLI refuses a draft it can’t parse and says which line. Fifteen of the 18 failures were the same error, a fenced block that never closes:

Code
✗ L56 Cannot parse the draft: fenced block ```callout is not closed
Ticks and crosses showing which drafts rendered first try for seven models
Only one model’s drafts all rendered on the first go.

With up to two fix rounds, 29 of 42 rendered. Sol rendered all six first time. Opus rendered two of six and never recovered the other four, even with two fix rounds, which is a bad result for the model many people reach for on a hard question. The agent rig went better: all 19 runs that tried to build a page ended with one, because the agent reads the error and runs the CLI again. MiniMax M4 needed three failed renders on the repo question. So a failure costs you a retry, as long as something is there to retry.

Inside an agent

In opencode I gave each model only the bare question. On the Redis and TCP questions, 13 of 14 runs reached for the skill on their own and finished in 11 to 32 seconds on 500 to 1,700 output tokens. The exception was GLM on Redis, which answered in plain text. GLM’s TCP run did use the skill but took 170 seconds.

The repo question is the hard one, because the model has to read the code first. Kimi took 33 tool calls and 506 seconds, and GLM took 1,065 seconds. Opus answered in chat after one tool call and built no page. DeepSeek ran the repo’s CLI directly without loading the skill.

ModelUsed the skillPages builtSecondsOutput tokens
Kimi K3.1 ProYes25064,524
DeepSeek V4.1 FlashNo, ran the CLI directly2454,037
Claude Opus 5.5No0801,554
GPT-6.2 SolYes1583,587
Gemini 4 NeonYes1452,554
MiniMax M4Yes6, with 3 failed renders2187,704
GLM 5.4Yes21,0655,663
The question about the repo itself, one run per model.

It doesn’t barge in on simple questions. I asked all seven how to show hidden files with ls. None loaded the skill. Each gave a one-line answer, ls -a, in 4 to 8 seconds.

The page itself

I opened the pages in a real browser. Pages have a theme picker, a light and dark mode, and font size buttons. Questions go in an ask block, and the Reply button turns the chosen option into text you paste back to the agent. In the recording, on a demo page I wrote, I switch the choice from Redis to Memcached and the Reply panel shows it as Memcached (was: Redis).

Rendered answer page with a question-and-choices block in the blueprint theme
The default blueprint theme in a real browser.
Pick an option, press Reply, and the answer is ready to paste back.

I checked the 19 pages the agents built at a phone width of 390 pixels. None overflowed sideways. The CLI also exports a video. I ran am video on the repo’s own TCP example with the voice off, and it produced a 54 second MP4 of about 2 MB.

The explainer video the CLI exported from the repo’s TCP example.

What it will and won’t embed

The skill can quote real code into a page with src=. I pointed it at a folder of files named like secrets. It refused .env, id_rsa, credentials.json and secrets.yml, and refused files outside the folder. It did embed config.local.env and settings.js, both holding an API_KEY line, because the guard goes by file name. The render prints each file it embedded, and the skill tells the model to warn you before you share a page with private code in it. A raw script tag in a draft is blocked with a warning.

Should you use it

It’s worth it for questions that deserve a table or a diagram, where the hand-written page would run to thousands of tokens. For short answers it isn’t, and the agents skipped it for the one short question I tried.

  1. Pick a model that renders cleanly. Sol did every time, and Opus failed four of six drafts even after two fix rounds.
  2. Run it inside an agent, so a bad draft gets fixed from the CLI’s error instead of landing on you.
  3. Set aside about 7,300 input tokens of skill text per call before counting the saving.
  4. Check what a page embeds before you share it, especially when you point it at your own code.

What this covers

The first rig is two runs of three questions per model, so every figure is a median of six or fewer. The agent rig is one run per model per question. I didn’t price the runs, judge the pages’ accuracy or compare them with other ways of getting a page out of a model.

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.

Sources: hsianghui on X; the answer-me-with-html repository and its bench README (0.6.4); runs of opencode 1.19.6 and direct model calls on a 4-core, 16 GB RAM, Ubuntu 24 box.