Html Workbench logo

Html Workbench

Community
alienzhou
html-workbench

Start or reuse the bundled local HTML Workbench and return a visual editor URL for a local .html file. Use when the user asks to generate HTML and make it editable, convert an HTML page to an editable state, open a local HTML file in a visual editor, or continue AI and human editing against the same source file.

Overview

Publisheralienzhou
Repositoryhtml-workbench
Skill namehtml-workbench
Stars
51
Forks
7
Bundled files
6
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by alienzhou on GitHub. Read the source before you install it.

Installation

Install the Html Workbench AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/alienzhou/html-workbench/tree/main/skill/html-workbench
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alienzhou/html-workbench.git /tmp/html-workbench
mkdir -p .claude/skills
cp -r /tmp/html-workbench/skill/html-workbench .claude/skills/html-workbench
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Html Workbench in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Html Workbench on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Html Workbench is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

HTML Workbench

Open a complete local HTML document in the bundled GrapesJS workbench. Keep the source file as the shared source of truth for visual edits and later AI edits.

Workflow

  1. Resolve the target .html file to an absolute path. When the user asks to generate a page, read references/editable-html-guidelines.md and generate one complete, self-contained HTML document containing html, head, and body. Inline its CSS and JavaScript; embed required visual assets; do not create a multi-file web project or depend on a CDN unless the user explicitly asks for that trade-off.
  2. Generate position-independent interactions that use stable semantic markers, delegated events, and idempotent initialization. For a page with business JS, test the interaction in preview mode after opening it.
  3. Resolve the directory containing this SKILL.md. Treat its scripts/workbench.py as the service entrypoint and scripts/validate_html.py as the compatibility validator.
  4. Find Python 3 in this order:
    • Run python3 --version.
    • Run python --version if python3 is unavailable.
    • On Windows, run py -3 --version if both commands are unavailable.
  5. Require Python 3.9 or newer. If no compatible interpreter exists, explain that the workbench needs Python 3.9+ and ask for confirmation before installing software. After confirmation, use the platform's normal trusted installer or package manager, then repeat the version check.
  6. Read references/validation-rules.md, then validate the page before opening it. For a newly generated default page, require one self-contained file:
text
<python> <skill-dir>/scripts/validate_html.py --require-self-contained <absolute-html-path>

For an existing page that intentionally has relative resources, omit --require-self-contained and clearly report that it is not a single-file deliverable. Fix every reported error. Review warnings and remove structural JS/CSS coupling when practical; if a warning is intentionally accepted, state the assumption. 7. Always run open as the normal entrypoint. Do not run serve first: open checks the default local port, reuses a running HTML Workbench service when available, or starts it in the background when needed. It prints one JSON object containing the editor URL and whether the service was reused.

text
<python> <skill-dir>/scripts/workbench.py open <absolute-html-path>
  1. On the first run, allow the service to download the pinned GrapesJS assets. It verifies their SHA-256 hashes and caches them locally; later runs do not require network access. Do not download or inject an unverified substitute yourself.
  2. Read the JSON written to stdout. When ok is true, open url in the available browser when browser control is available. In every final response, also return the URL as a clickable link, name the generated HTML file, and state whether the service was started or reused. If a browser cannot be opened automatically, tell the user to open that exact URL in any browser.
  3. If startup fails, report the returned error and inspect the log path when one is provided. For VENDOR_DOWNLOAD_FAILED, explain that all configured sources were unreachable and ask the user to check the network before retrying. Do not replace the service with an ad-hoc server.

Service commands

Run the service independently in the foreground:

text
<python> <skill-dir>/scripts/workbench.py serve

Use serve only when a user explicitly wants to manage the foreground service. For normal Skill use, run open <html-file> instead.

Check an existing service:

text
<python> <skill-dir>/scripts/workbench.py health

Use --port only to avoid a confirmed port collision. --editor-root is accepted for backward compatibility but no longer restricts which files the workbench may open; the service resolves any existing local .html file by absolute path.

Logs

The service writes rotating logs to a fixed per-user directory (survives temp cleanup):

text
~/.cache/html-workbench/logs/          # Windows: %LOCALAPPDATA%\html-workbench\logs
  • workbench-<port>.log — structured log (timestamp, level, request path, error code/message, unhandled stack traces), rotated at 1 MB × 5 files. This is the file to check first when something fails.
  • html-workbench-<port>.log — raw stdout/stderr of the service process (startup JSON and anything not routed through the logger).

Override the directory with --log-dir on serve/open.

Safety and file behavior

  • Bind only to 127.0.0.1; never expose the editor on a public interface.
  • Treat the specified HTML file as the source of truth. The workbench writes visual edits back to it.
  • Preserve external file changes with revision checks; never force an overwrite after a conflict.
  • Do not install Python or another runtime without explicit user confirmation.
  • Keep third-party assets pinned and hash-verified. The service tries a China-friendly npm mirror first and falls back to three public CDNs.
  • Return the URL instead of claiming the browser is editable before the health check and document load succeed.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Html Workbench AI skill do?

Start or reuse the bundled local HTML Workbench and return a visual editor URL for a local .html file. Use when the user asks to generate HTML and make it editable, convert an HTML page to an editable state, open a local HTML file in a visual editor, or continue AI and human editing against the same source file.

Why use Html Workbench on TypingMind?

Because you install it once and use it with any model. Html Workbench is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Html Workbench in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/alienzhou/html-workbench/tree/main/skill/html-workbench. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Html Workbench?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Html Workbench?

As many as you like. As long as a model supports skills, you can use Html Workbench with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Html Workbench AI skill free?

It is published on GitHub by alienzhou. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇