CLI Maker Scaffold
Use this skill when the user asks to create a new CLI project with @ideascol/cli-maker.
Inputs you must collect
- •
namein package format:@scope/package-name - •
description - •
author - •
email - •
package_manager:npmorbun - •
git_init:yesorno
Execution workflow
- •Ensure target directory is appropriate.
- •If current directory is not empty,
cli-makercreates a subfolder from package name (part after/).
- •Run scaffold command.
- •Preferred (no global install):
bash
npx @ideascol/cli-maker create \ --name=@scope/my-cli \ --description="My CLI" \ --author="Author Name" \ --email="author@company.com" \ --package_manager=npm \ --git_init=yes
- •Verify generated project.
- •Confirm these files exist:
- •
src/cli.ts - •
src/commands/greetCommand.ts - •
src/lib/greet.ts - •
src/index.ts - •
package.json
- •
- •Smoke-test.
- •
npm testorbun test - •Build command:
- •npm project:
npm run build - •bun project:
bun run build
- •npm project:
Hard validation rules
- •
namemust match@company/package-name. - •
emailmust be valid format. - •URL params in later commands must start with
http://orhttps://. - •Boolean params are literal values:
trueorfalse.
Common failure handling
- •Unknown parameter: retry using exact declared parameter names.
- •Missing required params in non-interactive mode: supply all required
--param=valuepairs. - •Package manager mismatch: use scripts generated for selected manager.