Answer me with HTML
github.com/qingyuna/answer-me-with-html- Category
- AI Agents
- Rank
- No. 864Tools index
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Productivity & Collaboration
- Interfaces
- Agent Skill / Plugin
- GitHub
- 6.7k stars
- Latest release
- v0.6.4
- Date
About
An agent skill for Claude Code and similar agents that answers hard questions with a one-page HTML file instead of a long text reply. The model writes a short Markdown draft and a bundled CLI generates the diagrams, CSS and HTML. The README reports that this cuts model output from about 4,893 to 612 tokens on its test set, which lowers wait time. Those figures are the author's own benchmark.
What it does
Instead of replying in a long block of terminal text, your coding assistant writes a brief outline and a local renderer turns it into a single self-contained web page: panels, tables, flow charts, sequence charts, typeset math and quoted code from your own project. The page opens offline, carries everything inside one file, and has a Reply button so you can answer the open decisions on it and paste one structured response back into the chat. A writing check based on a controlled technical English standard flags unclear sentences before the page is written. It can also produce narrated explainer videos that play in the browser.
Why it's ranked here
The idea is simple and the engineering behind it is careful. MIT licensed, no install step beyond Node 20, and it plugs into Claude Code, Codex, Cursor, OpenCode and DeepSeek Harness. The page renderer locks every output behind a strict content policy that blocks network requests and unapproved scripts, and the optional local server uses per-page secret links. The speed claim is the author's own benchmark, but it is published with raw numbers and honest caveats: output tokens fall roughly five to seven times and wait time by more than half, while the bill falls only 15 to 37 percent, and one earlier run came out more expensive.
What's good
Generated pages cannot phone home. Images, fonts and audio are embedded, and any remote image is reported as a warning rather than silently loaded. Quoting code pulls the real lines from your files, refuses anything that looks like a key or token, and only reads inside the working folder. The reader can mark paragraphs, comment on panels and answer multiple-choice decisions, and all of that comes back to the agent as one Markdown reply. The benchmark write-up breaks cost into output, cache writes and cache reads, which is more candor than most tools in this space offer.
Tradeoffs
The savings are on writing, not on the whole bill: the skill's own instructions add roughly 4,000 tokens to cache writes and it takes more turns, so cost drops far less than output does. Every number comes from one author, three topics and one model. The recommended install asks your agent to fetch and execute an instruction file from the main branch, a moving target you should read first. The recommended always-on mode writes a global rule into your agent's rules file and pages pile up on disk until cleaned. It checks GitHub for updates daily unless turned off. Codex and Cursor get the skill only, with no slash commands.
How to use it well
Best for people who ask their agent to explain architecture, compare options or plan a change, and who would rather read a diagram than scroll. Use the decision blocks for plans: the agent lists the open choices, you click answers, and the reply goes back in one paste. Leave always-on mode off at first and ask for a page when an answer is genuinely multi-part. If you share pages across a network, use the built-in server rather than a generic file server, since it keeps each page isolated. It does not replace a documentation site or a diagram editor: pages are one-off answers, not maintained artifacts.
Technical notes+
Pipeline per src/render.js: parse the front-matter draft, run the ASD-STE100 lint (style off, 80 for warn-only, or strict, which throws LintError and writes no page), render each panel as Markdown, a component fence or a raw html/svg fence, apply the sheet or doc template, then inline CSS and runtime scripts. src/markdown.js wraps marked with GFM, a raw-HTML filter that escapes page-breaking tags and strips event handlers and javascript: links, Temml math, and table-cell status badges. src/csp.js emits a meta Content-Security-Policy with default-src 'none', script-src pinned to SHA-256 hashes of the page's own inline scripts, and img/font/media restricted to data: URIs, so raw html fences pass through but cannot execute or exfiltrate. src/serve.js binds 127.0.0.1 by default, issues links as HMAC-SHA256 tokens of dir/file under a per-start 32-byte secret (rotation revokes all links), compares with timingSafeEqual, serves only .html directly inside pages/ or videos/, allowlists loopback Host headers against DNS rebinding, and adds a sandbox CSP without allow-same-origin so pages get opaque origins. src/cli.js exposes render, patch (rewrites one panel from the embedded source draft), video, lint, config, serve, clean and theme subcommands; code quotes cap at 200 lines. package.json declares Node 20 or newer, four runtime dependencies (dagre, marked, temml, a Bangers font package), and a node --test script with 85 percent line and function coverage thresholds. INSTALL.md is an imperative agent prompt telling the agent to proceed without asking questions; it also tells the agent not to add the always-on rule itself. bench/README.md documents the corpus counts and per-run costs, including a loaded-setup run where 7 of 18 runs missed the prompt cache.
Observed
- License
- MIT
- Language
- JavaScript (ES modules) on Node.js 20 or newer
- Interfaces
- Agent skill plus a CLI with render, patch, video, lint, config, serve, clean and theme commands
- Install surface
- Claude Code plugin marketplace, npx skills installer, DeepSeek Harness plugin, or manual folder copy; no npm install step
- Page isolation
- Every page carries a Content-Security-Policy with default-src 'none', hash-pinned scripts and data:-only images, fonts and media
- Local server
- Binds 127.0.0.1 by default and serves pages only through HMAC capability links
- Runtime dependencies
- Four: @dagrejs/dagre, marked, temml, @fontsource/bangers
- Benchmark provenance
- Self-run by the author on one model, three topics; raw rows and cost breakdown published
- Agent-directed install file
- Install guide is written as instructions for an AI agent to execute without asking the user
Read from README.md, package.json, INSTALL.md, LICENSE, src/cli.js, src/render.js, src/markdown.js, src/csp.js, src/serve.js, docs/reference.md, .claude-plugin/plugin.json, bench/README.md.
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.