Skip to content

Scaffolds a TypeScript CLI and npm package with the house toolchain, dual tsdown outputs, and OIDC publishing.

CCM score
73 of 100
skills.sh installs
806
GitHub stars
226
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers bootstrapping a new CLI or npm package from pinned templates through a green first CI run and publishable package
  • Includes package.json, tsconfig, a dual tsdown build (CLI binary plus typed library), vitest, ultracite linting, and changesets
  • Enforces fixedExtension: false so outputs stay .js and .d.ts, and verifies every bin, exports, and types path exists after build
  • Designed for starting new TypeScript CLI tools, with Next.js web apps, existing codebase structure, and released packages handled by other skills

Install

$ npx -y skills add mblode/agent-skills --skill scaffold-cli -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Scaffold CLI

  • IS: bootstrapping a brand-new TypeScript CLI or npm package (Node 24, TypeScript 7) from the pinned templates in references/, through to a green first CI run and a package npm can publish over OIDC.
  • IS NOT: a Next.js web app (use scaffold-nextjs), folder structure or module contracts for an existing codebase (use codebase-architecture), auditing an existing CLI's ergonomics (use dx-audit), or shipping a release of an existing package (use autoship).

The templates encode the house toolchain. Substitute project values and verify template APIs against installed package versions; repair proven incompatibilities instead of blindly reproducing them. The toolchain is the opinion: tsdown not tsup, vitest not jest, oxlint and oxfmt via ultracite not eslint or prettier, node:util styleText not chalk, @clack/prompts not ora. Swapping any of them or restructuring the layout produces a repo the templates' notes no longer describe.

Reference Files

Details

Repository
github.com/mblode/agent-skills
Categories
CLI & Terminal, Skill & Plugin Building
First seen
Jun 3, 2026

Questions

What does the scaffold-cli skill do?

The scaffold-cli skill bootstraps a production-ready TypeScript CLI and npm package with ESM, a dual tsdown build, vitest, oxlint and oxfmt via ultracite, changesets, GitHub Actions CI with OIDC npm publishing, AGENTS.md, and a bundled agent skill definition. It is meant for creating a new CLI tool or npm package from scratch.

How do I install the scaffold-cli skill?

Run npx -y skills add mblode/agent-skills --skill scaffold-cli -y in your project. Once installed, the agent can scaffold a new TypeScript CLI project for you when you ask it to scaffold a CLI or set up a new TypeScript CLI.

What does scaffold-cli need before it can run?

The skill requires a shell, Git, Node.js, pnpm, and npm registry access. Publishing to a remote registry also requires the relevant account authentication.

Where does scaffold-cli stand in the CLI and Terminal category?

It ranks in the top 100 of the CLI and Terminal category on Claude Marketplaces. Its scaffolding focus sets it apart from skills like herdr, opentui, cf-cli and pnpm, since it creates a new CLI package rather than operating a terminal tool.

When should I use scaffold-cli instead of a related skill?

Use scaffold-cli when starting a brand-new TypeScript CLI or npm package. For a Next.js web app use scaffold-nextjs, for structuring an existing codebase use codebase-architecture, and for releasing an already-built package use autoship.

More from mblode/agent-skills

All 12

Similar to Scaffold Cli

More CLI & Terminal