cli-ts

Solid

Build and maintain production TypeScript CLIs as stable public APIs - command contracts, packed-artifact correctness, npm publishing, CI/CD, docs, providers, and agent-friendly output. Use when the user asks to scaffold or build a TypeScript CLI, add commands or flags, package or publish to npm, wire CI/CD, or make CLI output automation-friendly.

AI & Automation 7 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
30
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# TypeScript CLI Engineering Build TypeScript command-line interfaces as stable public APIs. Optimize for predictable automation, packed-artifact correctness, safe releases, and maintainable external-service boundaries. ## Scope This skill handles TypeScript CLI architecture, command contracts, package builds, npm distribution, CI/CD, documentation, and agent-facing output. Release, publish, tag, merge, and external writes stay separate authorization boundaries. ## Workflow 1. Inspect `package.json`, lockfile, TypeScript config, executable entry, command registration, tests, workflows, docs, and repository instructions. 2. Preserve the current package manager, module format, parser, test runner, and release model unless a measured requirement justifies change. 3. Classify the CLI: - Use Node `util.parseArgs` for one or two flat commands. - Use Commander for nested operational command trees. - Use oclif only when plugins, installers, autoupdate, or large lazy-loaded trees are real requirements. 4. Freeze the public contract before editing: binary names, command paths, flags, defaults, config precedence, stdout, stderr, exit behavior, and version policy. 5. Keep the executable and command handlers thin. For one external service, put SDK access in a direct client or domain module. Add `providers/` only when multiple providers or interchangeable backends are real requirements. 6. Validate external input at boundaries. Treat SDK types as implementation help, not runt...

Details

Author
vanducng
Repository
vanducng/skills
Created
4 months ago
Last Updated
today
Language
HTML
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category