scaffold-cli
Installation
SKILL.md
Scaffold CLI
- IS: bootstrapping a brand-new TypeScript CLI or npm package (Node 22+) from the pinned templates in
references/. - IS NOT: a Next.js web app (use
scaffold-nextjs), folder structure or module contracts for an existing codebase (usedefine-architecture), or shipping a release of an existing package (useautoship).
Low-freedom scaffold. Generate files exactly as templated, substituting only {{placeholder}} variables. Do not swap tools (no eslint, prettier, tsup, jest, chalk, or ora) or restructure the layout.
Reference Files
| File | Read When |
|---|---|
references/scaffold-configs.md |
Step 3: package.json, tsconfig, tsdown, gitignore, license, changeset config, GitHub Actions |
references/scaffold-source.md |
Steps 4-5: src/cli.ts, src/index.ts, src/types.ts, AGENTS.md, README.md, skills/SKILL.md |
references/post-scaffold.md |
Steps 6-7: post-scaffold commands, validation checklist, troubleshooting |
Scaffold Workflow
Copy this checklist to track progress: