scaffold-cli

Generate CLI command scaffolds with parsing, handler, help text, and tests.

11|2|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/porcupine-md/jonggrang --skill scaffold-cli-porcupine-md
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-cli
Source: https://github.com/porcupine-md/jonggrang/tree/main/skills/core/scaffold-cli
Command: npx skills add https://github.com/porcupine-md/jonggrang --skill scaffold-cli-porcupine-md

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Generating a new CLI command boilerplate for argument parsing, a handler, help text, and tests is tedious; this Skill automates the scaffolding process to start development faster.

Core Features & Use Cases

  • Auto-generates a command file with name, description, and aliases.
  • Adds argument/flag parsing definitions and basic validation.
  • Provides a starter test suite and usage examples for quick validation.

Quick Start

Use the scaffold-cli tool to generate a new command scaffold based on your input.

Frequently Asked Questions about scaffold-cli

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

FAQPage Schema
How do I scaffold a CLI command with argument parsing and tests in Go or Rust?

To scaffold a CLI command, this tool auto-generates the command file, argument and flag parsing definitions, a handler, help text, and a starter test suite. It detects your Go, Rust, Python, or Node project configuration to place files in the appropriate directories.

What is the best way to generate CLI boilerplate with help text and validation across multiple languages?

Generating CLI boilerplate is automated by creating the command file, parsing definitions, basic validation, help text, and tests. The tool detects your project configuration to scaffold commands natively in Go, Rust, Python, or Node environments.

Does the CLI scaffold generator work with Python and Node projects?

Yes, the CLI scaffold generator works with Python and Node projects by detecting the project configuration. It scaffolds the command, parsing logic, handler, help text, and tests in the appropriate directories for each language.

How to add argument parsing and error handling to a new command file?

To add argument parsing and error handling, the scaffolder generates a command file wired with parsing definitions, basic validation, and error handling. It ensures the command is properly registered and included in the help output.

Can I generate a starter test suite when creating a new CLI command?

Yes, you can generate a starter test suite when scaffolding a new CLI command. The tool provides a starter test suite and usage examples alongside the command file, parsing definitions, and help text for quick validation.

Why does my generated CLI command need to be registered in the help output?

Registering your generated CLI command in the help output ensures it is discoverable and wired correctly within the application. The scaffolder automatically handles this registration along with basic validation and error handling.