HTML Export
Export the current situation to a self-contained index.html file in the
current working directory and give the user a clickable link to open it.
Optional focus hints
Arguments provided: $ARGUMENTS
If arguments are present, treat them as a hint about what to emphasize or
what kind of document to produce (e.g. /html focus on the architecture,
/html as a slide-style summary). If there are no arguments, you decide
everything.
Decide what to capture
This is the core of the skill: judge, from the current state of the
conversation and context, what would be genuinely valuable to put in front
of the user as an HTML page. You are not transcribing the chat — you are
producing a useful artifact. Consider, and pick whatever fits:
- A summary of the work done, decisions made, and their rationale.
- Findings, analysis, or research results.
- Code changes, file structures, or architecture (diagrams welcome).
- Data worth visualizing as tables or charts.
- Status / checklist of what is done vs. outstanding.
- Anything else that is the real "payload" of this session.
Prefer signal over completeness. If one thing clearly dominates the
session, build the page around that. Give the page a meaningful <title>
and top-level heading that reflect the actual situation, not "HTML Export".
Build the file
- Produce a single, self-contained HTML5 document: all CSS inline in a
<style> block, no external stylesheets, fonts, scripts, or CDN links,
so it opens correctly offline with a single click.
- Make it clean and readable: a constrained content width (e.g.
max-width: 800px; margin: auto), comfortable line height, system font
stack, sensible spacing, and styled tables/code blocks. Keep it tasteful,
not flashy.
- If a visualization genuinely helps (timeline, flow, simple chart), draw
it with inline SVG or CSS rather than pulling in a library.
- Ensure the markup is valid and the document is complete
(
<!DOCTYPE html>, <html>, <head> with <meta charset="utf-8"> and a
viewport meta, <body>).
Choose the filename (never overwrite)
Write to index.html in the current working directory. If index.html
already exists, use index1.html; if that exists too, index2.html, and
so on — pick the first name in that sequence that does not yet exist. Never
overwrite an existing file.
Report the path
After writing the file, output its location as a file:// URL with the
absolute path, on its own line, so the user can cmd-click / ctrl-click it
to open it in a browser. For example:
file:///home/user/project/index1.html
Resolve the real absolute path of the working directory (do not hardcode
the example above). Briefly mention what you chose to include and why.
1---2name: html3description: Use this skill when the user wants to export the current "situation" — the state of the conversation, work done, findings, data, or context — to a standalone HTML file they can open in a browser. The agent decides what is most valuable to capture and visualize. Invoked as /html, optionally with hints about what to focus on.4license: MIT5---67# HTML Export89Export the current situation to a self-contained `index.html` file in the10current working directory and give the user a clickable link to open it.1112## Optional focus hints1314Arguments provided: $ARGUMENTS1516If arguments are present, treat them as a hint about what to emphasize or17what kind of document to produce (e.g. `/html focus on the architecture`,18`/html as a slide-style summary`). If there are no arguments, you decide19everything.2021## Decide what to capture2223This is the core of the skill: judge, from the current state of the24conversation and context, what would be genuinely valuable to put in front25of the user as an HTML page. You are not transcribing the chat — you are26producing a useful artifact. Consider, and pick whatever fits:2728- A summary of the work done, decisions made, and their rationale.29- Findings, analysis, or research results.30- Code changes, file structures, or architecture (diagrams welcome).31- Data worth visualizing as tables or charts.32- Status / checklist of what is done vs. outstanding.33- Anything else that is the real "payload" of this session.3435Prefer signal over completeness. If one thing clearly dominates the36session, build the page around that. Give the page a meaningful `<title>`37and top-level heading that reflect the actual situation, not "HTML Export".3839## Build the file4041- Produce a single, **self-contained** HTML5 document: all CSS inline in a42 `<style>` block, no external stylesheets, fonts, scripts, or CDN links,43 so it opens correctly offline with a single click.44- Make it clean and readable: a constrained content width (e.g.45 `max-width: 800px; margin: auto`), comfortable line height, system font46 stack, sensible spacing, and styled tables/code blocks. Keep it tasteful,47 not flashy.48- If a visualization genuinely helps (timeline, flow, simple chart), draw49 it with inline SVG or CSS rather than pulling in a library.50- Ensure the markup is valid and the document is complete51 (`<!DOCTYPE html>`, `<html>`, `<head>` with `<meta charset="utf-8">` and a52 viewport meta, `<body>`).5354## Choose the filename (never overwrite)5556Write to `index.html` in the current working directory. If `index.html`57already exists, use `index1.html`; if that exists too, `index2.html`, and58so on — pick the first name in that sequence that does not yet exist. Never59overwrite an existing file.6061## Report the path6263After writing the file, output its location as a `file://` URL with the64absolute path, on its own line, so the user can cmd-click / ctrl-click it65to open it in a browser. For example:6667```68file:///home/user/project/index1.html69```7071Resolve the real absolute path of the working directory (do not hardcode72the example above). Briefly mention what you chose to include and why.