codegen-html

Scaffold and iterate on standalone Preact + HTM applications.

186|10|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/initializ/forge --skill codegen-html
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codegen-html
Source: https://github.com/initializ/forge/tree/main/forge-skills/local/embedded/codegen-html
Command: npx skills add https://github.com/initializ/forge --skill codegen-html

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, and includes scripts (resource) components.

What problem does it solve?

This Skill allows users to quickly create and modify standalone Preact + HTM applications without any local development environment setup, enabling rapid prototyping and easy sharing of simple web UIs.

Core Features & Use Cases

  • Zero-Dependency Scaffolding: Generates single-file or multi-file HTML applications using Preact and HTM, directly runnable in a browser.
  • In-Browser Iteration: Supports reading and writing files within the generated project, allowing for iterative UI development.
  • Use Case: A designer needs to quickly mock up a simple interactive dashboard. They can use this Skill to scaffold a Preact application, then iterate on the HTML and JavaScript directly, opening the index.html file in their browser to see changes instantly.

Quick Start

Scaffold a new single-file Preact + HTM application named 'my-dashboard' in the '/tmp/my-dashboard' directory.

Frequently Asked Questions about codegen-html

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Preact UI without setting up a local development environment?

You can scaffold standalone Preact + HTM applications with zero build dependencies for direct browser execution. This approach generates single-file or multi-file HTML projects that run immediately without local environment setup.

Can I create a web UI prototype that runs directly in the browser without bundling?

Yes, you can create web UI prototypes using Preact and HTM that run directly in the browser without bundling. The generated HTML files execute immediately, enabling rapid prototyping and easy sharing of simple interactive dashboards.

What is HTM used for in zero-dependency frontend application scaffolding?

HTM is used to write Preact components using tagged template literals instead of JSX, eliminating the need for a build step. This allows frontend application scaffolding to operate with zero build dependencies and execute directly in the browser.

Do I need jq installed to scaffold Preact applications?

Yes, jq is required to process JSON inputs when scaffolding and iterating on Preact applications. This dependency handles the JSON input processing needed to generate and modify the project files.

Can I iterate on files within a generated Preact project after scaffolding?

Yes, the scaffolding process supports reading and writing files within the generated project structure. You can iteratively modify the HTML and JavaScript files, then open the index.html file in your browser to instantly see changes.

Does zero-dependency UI generation support both single-file and multi-file project structures?

Zero-dependency UI generation supports both single-file and multi-file project structures using Preact and HTM. You can choose the appropriate structure based on your prototyping needs, with tools for creating and managing project files.