answer-me-with-html
Installation
Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.
Install the "answer-me-with-html" skill by following the instructions at https://skill123.me/install/answer-me-with-html.
Run in your terminal — downloads and installs to ~/.claude/skills/.
curl -fsSL https://skill123.me/install/answer-me-with-html.sh | bash
Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.
⬇ Download v1.0.4ad3973 · 4.5 MBNot live-tested yet — this skill is rated on static analysis only.
About this skill
-
Answer me with HTML: answer a complex question with one HTML page
You write only the **content draft** (extended Markdown). The am CLI does all layout, colours, dark mode and diagram coordinates. **Do not hand-write HTML / CSS / SVG.**
Reply to the user, and write the draft, in the user's language.
Documentation
-
Answer me with HTML: answer a complex question with one HTML page
You write only the **content draft** (extended Markdown). The am CLI does all layout, colours, dark mode and diagram coordinates. **Do not hand-write HTML / CSS / SVG.**
Reply to the user, and write the draft, in the user's language.
0. When the user wants to change settings
Arguments for this call: $ARGUMENTS
When the arguments start with config, clean or update, or the user asks to change a setting, clean up pages or update this skill: read ${CLAUDE_SKILL_DIR}/references/settings.md and follow it. That turn produces no page.
1. Decide: produce a page or not
Produce a page if any of these is true:
- There are ≥3 interrelated concepts, and the reader needs to see how they relate.
- There is a flow, protocol, call chain or state transition (especially with branches or several actors).
- There is a comparison across ≥3 dimensions, a trade-off between options, or a "can / cannot" list.
- There is a hierarchy or an evolution over time.
Otherwise answer in plain text. When unsure: the more the question "needs a picture to understand", the more it calls for a page.
When the user asks you to explain a repository, draw its architecture or show how its code is organized: read ${CLAUDE_SKILL_DIR}/references/codebase.md and follow it before you write the draft.
Automatic pages are for replies to the user. An internal report returned to another agent is not one:
- If a parent agent or a coordinator delegated research, implementation, a review or a progress report, return the text or structure it asked for, with the findings and the evidence. Render no page.
- The parent consolidates the reports. Its reply to the user follows the normal rules of this section.
- If the delegated task explicitly asks for a page, render it, and return the page path together with the verification details the parent asked for. A video needs an explicit video request; delegation alone never authorizes one.
- Judge this by who receives the reply and what was asked for, not by the host or agent name.
### Always-on mode
If the context contains the [answer-me-with-html always-on] reminder (the user added the always-on rule to a rules file such as CLAUDE.md or AGENTS.md), the bar is lower:
View full documentation
- Whenever this turn gives a conclusion, summary, plan, comparison, review or explanation, attach a page.
- Do not skip it because "the answer is short". If there is a conclusion, produce a page.
- For everyday conclusions use a small page with 2–4 panels: one callout with the conclusion, plus one table or one diagram. Layout advice for a new answer, not a content budget (see section 4). Do not add panels just to fill space.
- Render with
--no-open, so no browser window interrupts the user. The user opens the page by clicking the path at the end of the reply. - Order: render the page first, then write the text reply. The reply is the last thing in the turn, with the page link on its last line (see step 5). Do not write the reply and then call
am render. The one call that may come after the reply is the choice tool that puts the page's asks to the user, when your host can ask questions: write the reply first, so the user holds the link before answering (see step 5). - The internal-report rule of step 1 applies here too: a delegated report that inherits the always-on rule renders no page, unless the delegated task explicitly asks for one.
- Produce no page for small talk, one or two sentences with no conclusion, pure command output, or when the user asks for plain text.
2. Workflow (one Bash call)
The CLI is bundled in this skill's directory: scripts/am.mjs, a single file with no dependencies to install; it needs only Node.js 20+. If node is not found or is older than v20, tell the user, show them the exact command to install the Node.js LTS (macOS brew install node, Windows winget install OpenJS.NodeJS.LTS, otherwise nvm, which adds lines to the shell profile), and run it only after they agree, then check node --version again. If they say no or it still fails, stop and tell them. Below, am always means:
node "${CLAUDE_SKILL_DIR}/scripts/am.mjs"
In Claude Code, ${CLAUDE_SKILL_DIR} is replaced with this skill's directory before you read this file, so that command and every path in this file already carry it; run them as written.
On every other host the token is left as it stands or comes out empty. There, before your first command of the turn, write the absolute path of the directory that holds this SKILL.md in place of ${CLAUDE_SKILL_DIR} in every command you run and in every path you read, in this file and in the files under references/, and check the path once with test -f "<that directory>/scripts/am.mjs". Do not put the path in a shell variable and use it in a later call: the Bash tool keeps no variable from one call to the next and a file-read tool never expands one, so a SKILL_DIR set in one call is empty in the next and the command becomes /scripts/am.mjs. The directory is the one holding SKILL.md and scripts/: ~/.agents/skills/answer-me-with-html after npx skills add, ~/.claude/skills/answer-me-with-html for a Claude Code skill install, skills/answer-me-with-html in the plugin checkout for a plugin install, and the path printed on the host's "Base directory for this skill" line (DeepSeek Harness). If test -f fails, that path is not this skill's directory: find the right one before you run anything. If the user installed the am command globally, you can also use am directly.
Keep the default output; it needs no flag. If the session cannot write to ~/.answer-me-with-html/pages (a sandbox that allows writes only in the workspace), the CLI saves the page in a private folder in the system temporary folder and says so on a ! line; the system may clear that folder. Add -o "<absolute-workspace-path>/.tmp/answers/topic.html" to render - before the heredoc only when the user wants the page in the workspace or the render fails with Cannot write the page. -o names an HTML file, not a folder; the CLI creates missing parent directories. Use AM_HOME only when the whole data directory must move.
1. First list 3–8 panels in your head. Each panel answers one sub-question only. Layout advice for a new answer, not a content budget (see section 4).
The draft language follows the language of the user's question: an English question gets an English draft, a Chinese question a Chinese draft, a Japanese question a Japanese draft. The page button labels, <html lang> and the STE check rules switch automatically by the draft language (a draft containing kana counts as Japanese); STE applies the English or Chinese rules to each sentence by its language (Japanese sentences get only the sentence-length and paragraph-length checks, with the same character limits as Chinese; any other language gets only those two checks, counted in words). To set the language yourself, write lang: in the frontmatter: en, zh (Simplified Chinese), zh-Hant or zh-TW (Traditional Chinese), ja, or any other language tag such as fr or ko. Detection reads Chinese (Simplified, or Traditional when the text has characters written in only one form), Japanese, Korean, and Cyrillic, Arabic, Hebrew, Thai and Greek text, and reads all Latin-script text as English. Declare the language when the user writes a Latin-script language other than English, when a Chinese text is too short or too plain to show Traditional characters, or when an exact tag matters (Arabic script also writes Persian, Cyrillic also Ukrainian). A language without its own labels still gets the right <html lang>, with English page labels.
2. Choose components by the shape of the information (see section 4).
3. Render in one go with a heredoc:
node "${CLAUDE_SKILL_DIR}/scripts/am.mjs" render - <<'AM_EOF'
---
title: Title
---
## A Panel title
A -> B: label
AM_EOF
Score breakdown
Assessment methodology
Version history
— Imported from GitHub QingYunA/answer-me-with-html/skills/answer-me-with-html@4ad3973
Imported from QingYunA/answer-me-with-html@main