About html
html is a skill for creating or revising a self-contained, responsive HTML interface. It specifies an artifact location, a local static server, and a verification step before handoff.
Key features
- 01Create or revise an HTML artifact
- 02Responsive, semantic interface structure
- 03Accessible controls
- 04Serve and verify the local page
Use cases
- 01Creating a new HTML interface
- 02Revising a named HTML artifact
- 03Checking a page locally before handoff
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ eliasstravik/ skills --skill htmlAfter installing, type/htmlin Claude Code to confirm it loaded.
Details
From the project READMEHTML
Recipe
- Resolve
ARTIFACT_DIRinside the provided HTML state root, or expanded~/.htmlotherwise: revise a named artifact in place, or create a three-random-word lowercase slug for new work. - Write only
ARTIFACT_DIR/index.htmlas a complete self-contained, source-faithful, responsive interface with semantic structure and accessible controls unless the user names another entry file. - Start a long-lived static server for
ARTIFACT_DIRon127.0.0.1using a free non-common port. - Verify the exact
http://127.0.0.1:<PORT>/index.htmlwith files inside the task run, retrying from step 3 on another port if binding or fetching fails, and keep the verified server alive through handoff. - Reply with exactly
HTML file: <absolute entry-file path>thenHTML: [Open locally](<verified /index.html URL>); if serving cannot be verified, omit the link and give the path plus one concise reason.
Details
- Run
python3 -m http.server "$PORT" --bind 127.0.0.1 --directory "$ARTIFACT_DIR"as the foreground command of a long-running tool session; do not background or detach it from a shell that will exit.
Comments
Markdown supported