scaffold-cli

Scaffold a TypeScript CLI project with ESM and dual-build templates.

Updated Sep 10, 2025
One-click install
npx skills add https://github.com/tillysoso/mv1 --skill scaffold-cli-tillysoso
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-cli
Source: https://github.com/tillysoso/mv1/tree/main/.claude/skills/scaffold-cli
Command: npx skills add https://github.com/tillysoso/mv1 --skill scaffold-cli-tillysoso

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Scaffolds a production-ready TypeScript CLI project (Node 22+) with ESM modules, dual-build (CLI + library), automated releases, and an agent skill definition, enabling developers to bootstrap new CLI tools quickly.

Core Features & Use Cases

  • Templates for package.json, tsconfig, tsdown, gitignore, license, changeset config, and GitHub Actions.
  • Reference files and scaffold workflows to generate src/cli.ts, src/index.ts, src/types.ts, AGENTS.md, README.md, and the agent skill (skills/SKILL.md).
  • End-to-end scaffold workflow from gathering project info to post-scaffold validation, with templates and checks.

Quick Start

Run the scaffold-cli workflow to bootstrap a new TypeScript CLI project from templates.

Frequently Asked Questions about scaffold-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bootstrap a production-ready TypeScript CLI project with ESM support?

To bootstrap a production-ready TypeScript CLI project, use a scaffold workflow that generates ESM modules, dual-build configurations for CLI and library outputs, automated release workflows, and essential template files like package.json and tsconfig.

What templates are generated when scaffolding a new TypeScript CLI?

Scaffolding a TypeScript CLI generates templates for package.json, tsconfig, tsdown, gitignore, license, changeset config, and GitHub Actions, alongside source files like cli.ts, index.ts, types.ts, AGENTS.md, and README.md.

Can I use this scaffold to create an npm package with automated releases?

Yes, this scaffold creates a dual-build TypeScript project supporting both CLI and npm package outputs, complete with changeset configuration and GitHub Actions workflows to automate the release process for your new package.

Does the TypeScript CLI scaffold include agent skill definitions?

Yes, the scaffolding workflow generates an agent skill definition file located at skills/SKILL.md, along with AGENTS.md, to integrate the newly bootstrapped TypeScript CLI project with agent-driven development workflows.

What is the best way to configure a Node 22 TypeScript CLI for dual-build?

The best way to configure a Node 22 TypeScript CLI for dual-build is using a scaffold template that sets up ESM modules, tsdown for bundling, and separate source entry points for CLI execution and library exports.

Are there post-scaffold validation checks for the generated TypeScript CLI?

Yes, the scaffold workflow includes end-to-end validation checks that run after project generation, verifying that the TypeScript CLI templates, configurations, and source files are correctly structured and functional.