Hakuto
An open-source static website builder powered by Claude Code. Clone it, describe what you want, and ship a production-ready site in minutes.
Built with Astro, Tailwind CSS v4, and shadcn/ui. Deployed to Cloudflare CDN.
Documentation and more on https://hakuto.dev/. Also an announcement post.
Live example how a Hakuto repo looks like for a real website: https://github.com/teamniteo/site-hakuto
Quick Start
Hakuto ships as a Claude Code plugin. Install once, scaffold new sites anywhere.
# Inside Claude Code:
/plugin marketplace add teamniteo/hakuto
/plugin install hakuto@hakuto
Then in an empty directory:
mkdir my-site && cd my-site
claude
/hakuto:init
For Codex:
codex plugin marketplace add teamniteo/hakuto --ref main
codex plugin add hakuto@hakuto
Followed by:
bun install
bun run dev
Open localhost:4321 to see the site.
How It Works
Hakuto is a Claude Code plugin bundling skills, a subagent, and an Astro scaffold. Skills (design rules, component patterns, copy, analytics, etc.) live in the plugin and update via /plugin update hakuto. The scaffolded AGENTS.md ties everything together inside your site repo — Claude Code and Codex both read it directly.
- Install the plugin — one time, global
/hakuto:init — drops an Astro + Cloudflare starter into an empty directory
- Describe your site — "Build me a landing page for a coffee roaster" and
website-builder takes over
- Approve the design — a short interview, then 2–3 distinct directions and a
branding.astro style preview built from real tokens; iterate there before any pages are written
- Ship it —
bun run build && wrangler deploy pushes to Cloudflare Workers
Stack
Project Structure
The plugin (this repo)
.claude-plugin/
├── plugin.json # Plugin manifest
└── marketplace.json # Single-plugin marketplace
commands/
└── init.md # /hakuto:init scaffolder
skills/ # 15 site-building skills
agents/ # Astro file editor subagent
scaffold/ # Astro project copied by /hakuto:init
A scaffolded site (what /hakuto:init drops in your cwd)
src/
├── assets/ # Images, favicon source
├── components/
│ ├── ui/ # shadcn/ui React components
│ └── *.astro # Astro page sections
├── layouts/ # Base layout with SEO, fonts, schema
├── pages/ # File-based routing
└── index.css # Theme tokens (Tailwind v4 @theme)
AGENTS.md # Agent spec for your site + build-generated page index
worker/ # Cloudflare Worker entry
wrangler.toml # Worker name, assets, custom domain
website-builder adds two more as it builds: site-specification.md (design
decisions — direction, dials, palette, fonts) and src/pages/branding.astro
(the living style guide, kept out of nav).
Available Scripts
bun run dev # Start dev server
bun run build # Production build → dist/client/
bun run preview # Build, then serve via wrangler dev (Workers runtime)
bun run check # TypeScript checks
bun run lint # Lint with Biome
bun run format # Format with Biome
Built-in Skills
The Claude Code agent has access to specialized skills for common tasks: