CreateCLI

Generate production-ready TypeScript CLIs from user requirements using tiered templates.

1|Updated Jun 10, 2026
One-click install
npx skills add https://github.com/starlink-awaken/pai-universal --skill createcli-starlink-awaken
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: CreateCLI
Source: https://github.com/starlink-awaken/pai-universal/tree/main/templates/packs/CreateCLI/src
Command: npx skills add https://github.com/starlink-awaken/pai-universal --skill createcli-starlink-awaken

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of complete, production-grade TypeScript CLIs from high-level requirements, eliminating boilerplate and ensuring architecture, documentation, and packaging are consistently applied.

Core Features & Use Cases

  • Tiered templates: Tier 1 llcli-style manual arg parsing for lightweight CLIs, Tier 2 Commander.js for more complex multi-command tools, and Tier 3 oclif as a reference for enterprise-scale.
  • End-to-end tooling: Generates implementation, README, QUICKSTART, package.json, tsconfig.json, .env.example, and documentation in default locations (e.g. ~/.claude/Bin/ or ~/Projects/).
  • Workflow-oriented: Supports CreateCli, AddCommand, and UpgradeTier workflows to build, extend, or escalate CLIs.
  • Type-safe, JSON-output oriented: Ensures strict TypeScript typing and deterministic JSON output suitable for piping with jq/grep.

Quick Start

Provide your CLI requirements and this skill will generate a ready-to-run TypeScript CLI project in the default location.

Frequently Asked Questions about CreateCLI

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

FAQPage Schema
How do I generate a production-ready TypeScript CLI from requirements?

To generate a TypeScript CLI, provide your high-level requirements and the Skill outputs a complete project with implementation, README, package.json, and tsconfig.json in your preferred directory. It applies a 3-tier template system ensuring strict type safety, deterministic JSON output, and comprehensive help.

What is the best way to structure a multi-command TypeScript CLI?

For a multi-command TypeScript CLI, the Skill applies a tiered template approach that escalates from lightweight manual arg parsing to Commander.js for complex tools, ensuring scalable architecture, validated workflows, and deterministic JSON output suitable for piping with jq or grep.

Can I add new commands to an existing generated CLI project?

Yes, you can add new commands to an existing CLI project using the AddCommand workflow. This generates additional command implementations while maintaining strict TypeScript typing, deterministic JSON output, and consistent documentation across the project.

Does the generated CLI output support piping with jq and grep?

Yes, the generated CLIs ensure deterministic JSON output specifically designed to support piping with jq and grep. This strict TypeScript typing and JSON orientation allows seamless integration into automated workflows and shell scripts.

When do I need to upgrade my TypeScript CLI to a different template tier?

You should upgrade your TypeScript CLI template tier when your tool outgrows lightweight manual argument parsing and requires enterprise-scale features. The UpgradeTier workflow escalates your CLI to Commander.js or oclif reference architectures for more complex multi-command needs.