create-handzon
v0.3.1
Published
Scaffold and grow Codelab-style hands-on tutorial sites built with Handzon.
Downloads
1,251
Maintainers
Readme
create-handzon
CLI for scaffolding and growing Handzon projects.
npx create-handzon my-codelab # scaffold a new project
cd my-codelab
pnpm handzon:new # add a tutorial
pnpm handzon:step # add a stepSubcommands
| command | what it does |
| ------------------------ | ------------ |
| create-handzon [name] | scaffold a new project (init, the default) |
| create-handzon new | add a tutorial to the current project |
| create-handzon step | add a step to an existing tutorial |
| create-handzon skills | install Handzon authoring skills into your AI agent (Cursor, Claude Code, Codex, …) |
Add --yes to any of them to skip prompts and accept defaults.
Skills
Authoring skills (e.g. add-tutorial, add-quiz, deploy-to-render) are not copied into the scaffold. They're installed on demand via the skills CLI so they land in your agent's per-tool location (e.g. ~/.cursor/skills/, ~/.claude/skills/) rather than as inert files in the repo. Run the prompt during create-handzon, or do it later with pnpm handzon:skills.
How init works
- Resolves the bundled template directory (
dist/template/in the published package,../../templates/defaultin monorepo dev). fs.cp(templateDir, targetDir, {recursive: true, filter})— skipsnode_modules,.astro/, build output.- Token-replaces
__PROJECT_NAME__inpackage.json,README.md, and the Render Blueprints. - Applies the user's answers: swaps theme
@import, rewritessrc/config/ai.ts, picks Tier 1 vs Tier 2 Blueprint. - Spawns the chosen package manager's
install. - Runs
git init.
Tests
pnpm test