outfitter-cli

Build command-line interfaces with @outfitter/cli, including output modes and pagination.

6|1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/outfitter-dev/outfitter --skill outfitter-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: outfitter-cli
Source: https://github.com/outfitter-dev/outfitter/tree/main/packages/claude-plugin/skills/outfitter-cli
Command: npx skills add https://github.com/outfitter-dev/outfitter --skill outfitter-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides essential patterns and tools for building command-line interfaces (CLIs) with @outfitter/cli, ensuring structured output, robust error handling, and intuitive user experiences for both humans and agents.

Core Features & Use Cases

  • CLI Creation: Scaffolds new CLI applications with typed commands and options.
  • Output Formatting: Manages various output modes (human, JSON, JSONL) and custom formatters.
  • Error Handling: Implements consistent error reporting and exit code mapping.
  • Pagination: Manages cursor state for seamless --next command execution.
  • Input Handling: Reads from stdin and detects piped input.

Quick Start

Use the outfitter-cli skill to create a new CLI application named 'my-app'.

Frequently Asked Questions about outfitter-cli

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

FAQPage Schema
How do I build a TypeScript CLI with structured output and error handling?

Build TypeScript CLIs using the @outfitter/cli library to manage output modes like JSON and JSONL, implement consistent error reporting, and map exit codes for deterministic command execution.

What's the best way to implement pagination in a command-line application?

Implement CLI pagination by managing cursor state with @outfitter/cli, allowing seamless execution of subsequent commands using the --next flag for fetching sequential data pages.

Does @outfitter/cli support integration with Commander.js?

Yes, @outfitter/cli supports Commander.js integration, providing patterns for typed commands and options to scaffold robust command-line interfaces with deterministic task execution.

How do I handle stdin and piped input parsing in a CLI tool?

Handle stdin input parsing in CLI tools by detecting piped input with @outfitter/cli, which reads standard input streams automatically for processing data within your commands.

Can I format command-line output for both human readers and automated agents?

Format command-line output for humans and agents using @outfitter/cli output modes, switching between human-readable text, JSON, and JSONL formats to ensure intuitive user experiences.

How do I map CLI errors to specific exit codes in TypeScript?

Map CLI errors to specific exit codes in TypeScript using the exitWithError pattern from @outfitter/cli, ensuring consistent error reporting and structured failure handling across commands.