cli-patterns

Community

Consistent CLI patterns for Battery commands.

AuthorADLenehan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Coordinating the creation of Battery CLI commands across projects is error-prone and inconsistent. This skill provides a standardized approach to building commands with Commander.js, ensuring uniform structure, options, prompts, and output formatting.

Core Features & Use Cases

  • Unified command structure: reuse proven patterns for subcommands, arguments, and actions.
  • Option and flag handling: consistent parsing, defaults, validation, and help text.
  • Output formatting & prompts: standardized UI feedback, colors, spinners, and interactive prompts.
  • Use Case: when adding a new command like deploy or config, follow these patterns to rapidly deliver a reliable CLI feature.

Quick Start

Create a new Commander.js command with a name, a few options, and an action handler to implement the feature.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cli-patterns
Download link: https://github.com/ADLenehan/battery/archive/main.zip#cli-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.