Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add initializ/forge --skill codegen-htmlgit clone --depth 1 https://github.com/initializ/forgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/initializ/forge/codegen-html)<a href="https://agentmods.dev/skills/initializ/forge/codegen-html"><img src="https://agentmods.dev/badge/skills/initializ/forge/codegen-html/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/initializ/forge/codegen-html"><img src="https://agentmods.dev/badge/skills/initializ/forge/codegen-html.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.01594 |
| Opus 5.5 | $0.00008 | $0.00638 |
| Sonnet 5.5 | $0.00004 | $0.00319 |
| Haiku 4.5 | $0.00002 | $0.00159 |
Grade A, and why
codegen-html scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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
# 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:
- Use
class(notclassName) — HTM maps directly to DOM attributes - Use Tailwind CSS utility classes for all styling (loaded via CDN in
index.html) - Do NOT create
<style>blocks or.cssfiles — use Tailwind classes instead - Keep Preact/HTM imports unchanged — do not change CDN URLs or versions
- Use named exports for components:
export function ComponentName() {}
Code Style Guide
- Use Preact with HTM (tagged template literals instead of JSX)
- Use
class(notclassName) — HTM maps directly to DOM attributes - Template literal syntax:
html`<div class="app">${content}</div>` - Use
useState,useEffect,useReffrom Preact hooks - Components are plain functions returning
html`...`template literals - All imports via CDN (
esm.sh), pinned to specific versions - Use Tailwind CSS utility classes — the CDN is pre-loaded in
index.html - Forge dark theme colors:
bg-zinc-950(bg),bg-zinc-900(cards),border-zinc-800(borders),text-zinc-200(text),text-zinc-400(muted),bg-indigo-500(accent)
Tailwind CSS Reference
Tailwind is loaded via CDN. Use utility classes directly in class attributes:
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 192 lines · 20 tokens per session scan A 0945dcc769ff
codegen-html is a skill published in the GitHub repository initializ/forge (223 stars, last pushed 9d ago), licensed Apache-2.0. It adds 20 tokens to every session and 1,594 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
codegen-html compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codegen-htmlinitializ/forge | Skill | 223 | 9d ago | Apache-2.0 | A | 20 | Claude Code, Codex |
| popular-web-designsariffazil/AAA | Skill | 0 | 28d ago | AGPL-3.0 | A | 23 | Claude Code, Codex |
| popular-web-designsNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 23 | Claude Code, Codex |
| quality-looptrpc-group/trpc-agent-go | Skill | 1.9k | yesterday | Apache-2.0 | A | 32 | Claude Code, Codex |
| mcportertrpc-group/trpc-agent-go | Skill | 1.9k | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |
| plan_routetrpc-group/trpc-agent-go | Skill | 1.9k | yesterday | Apache-2.0 | A | 17 | Claude Code, Codex |
| recommend_poitrpc-group/trpc-agent-go | Skill | 1.9k | yesterday | Apache-2.0 | A | 17 | Claude Code, Codex |