CLI Development Skill

Develop and test Scratch CLI commands, build pipelines, and templates.

19|4|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/scratch/scratch --skill cli-development-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: CLI Development Skill
Source: https://github.com/scratch/scratch/tree/main/.claude/skills/cli-dev
Command: npx skills add https://github.com/scratch/scratch --skill cli-development-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides patterns and guidance for developing and testing the Scratch Command Line Interface (CLI), streamlining the development workflow.

Core Features & Use Cases

  • Command Addition: Clear steps for adding new CLI commands.
  • Build Pipeline Modification: Guidance on updating build steps and configuration.
  • Template Management: Instructions for adding and updating project templates.
  • Testing Framework: Procedures for running unit, E2E, and integration tests.
  • Use Case: A developer needs to add a new scratch publish command. They can follow the documented steps to create the handler, register it, and test it thoroughly.

Quick Start

Follow the instructions in the SKILL.md file to add a new CLI command.

Frequently Asked Questions about CLI Development Skill

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

FAQPage Schema
How do I add a new command to the Scratch CLI?

To add a new Scratch CLI command, follow the structured development patterns to create the command handler, register it within the build pipeline, and verify it using test suites. This ensures maintainability and scalability for the tool.

What testing frameworks are needed for Scratch CLI development?

Scratch CLI development requires executing unit, E2E, and integration test suites. The Skill provides procedures for running these tests to ensure new commands and build pipeline modifications function correctly before deployment.

How do I modify the build pipeline for a command line tool?

Modifying the command line build pipeline involves updating build steps and configuration using structured development patterns. The Skill provides specific guidance on adjusting these pipelines to maintain project scalability.

Can I manage project templates using the Scratch CLI?

Yes, you can manage project templates using the Scratch CLI. The Skill provides instructions for adding and updating templates, integrating this process into the standard command line development and testing workflow.

What is the best way to test a new CLI command end-to-end?

The best way to test a new CLI command end-to-end is by executing E2E and integration test suites. The Skill outlines procedures for running these tests alongside unit tests to thoroughly validate command handlers.