Codegen HTML
Scaffold and iterate on standalone Preact + HTM applications with zero build dependencies
Install
npx skills add initializ/forge --skill codegen-htmlgit clone --depth 1 https://github.com/initializ/forge.git /tmp/forge
mkdir -p ~/.claude/skills
cp -r /tmp/forge/forge-skills/local/embedded/codegen-html ~/.claude/skills/codegen-htmlPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Codegen HTML Skill
Scaffold and iteratively build standalone HTML applications using Preact + HTM via CDN. Zero local dependencies — no Node.js, no npm, no build step. Just open the HTML file in a browser.
## Quick Start
```bash
# Scaffold a single-file app
./scripts/codegen-html-scaffold.sh '{"project_name": "my-app", "output_dir": "/tmp/my-app", "mode": "single-file"}'
# Scaffold a multi-file app
./scripts/codegen-html-scaffold.sh '{"project_name": "my-app", "output_dir": "/tmp/my-app", "mode": "multi-file"}'
# Read a file or list the project
./scripts/codegen-html-read.sh '{"project_dir": "/tmp/my-app", "file_path": "."}'
# Write/update a file
./scripts/codegen-html-write.sh '{"project_dir": "/tmp/my-app", "file_path": "index.html", "content": "..."}'
```
## CRITICAL: Scaffold Conventions (DO NOT VIOLATE)
These rules prevent runtime errors:
1. **Use `class` (not `className`)** — HTM maps directly to DOM attributes
2. **Use Tailwind CSS utility classes** for all styling (loaded via CDN in `index.html`)
3. **Do NOT create `<style>` blocks or `.css` files** — use Tailwind classes instead
4. **Keep Preact/HTM imports unchanged** — do not change CDN URLs or versions
5. **Use named exports** for components: `export function ComponentName() {}`
## Code Style Guide
- Use **Preact** with **HTM** (tagged template literals instead of JSX)
- Use `class` (not `className`) — HTM maps directly to DOM attributesDetails
- Skill name
codegen-html- Repository
- initializ/forge
- Path
forge-skills/local/embedded/codegen-html/SKILL.md- License
- Apache-2.0
- Repo updated
- 17 November 2026
FAQ
What does the Codegen HTML skill do?
Scaffold and iterate on standalone Preact + HTM applications with zero build dependencies
How do I install the Codegen HTML skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add initializ/forge --skill codegen-html. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Codegen HTML popular?
It lives in initializ/forge, which has 230 GitHub stars and 17 forks.
Related skills
Code Agent
230initializ/forge
General-purpose coding agent that reads, writes, and edits code, and searches codebases.
Code Plan
230initializ/forge
Turn a task description and repository into a structured implementation plan (files to create, files to modify, tests to add, risks).
Code Review
230initializ/forge
AI-powered code review for diffs and individual files using LLM analysis
Develop Topic
192sugarforever/boring-video-studio
Use when a content-driven video has a candidate topic but still needs research, experiments, a defensible thesis, or user-approved scope before an article or video beats can be written.
Code Review Standards
230initializ/forge
Discover and apply organization coding standards from .forge-review/ configuration
Multica Artifact Backend
279it235/multica-best-practices
Land API contract artifacts to the API collaboration platform (default Apifox). Used by @BackendDev to upload API contract for downstream frontend / test consumption. Swappable platform.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.