Skip to content

Build and publish npx-executable CLI tools with Bun, citty parsing, and strict TypeScript linting.

CCM score
56 of 100
skills.sh installs
315
GitHub stars
195
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers scaffolding, citty argument parsing, sub-commands, terminal UX, Vitest testing, Bunup bundling, and npm publishing
  • Includes a scaffold.ts script with --bin, --cli-only, and --no-eslint options for new CLI packages
  • Enforces a #!/usr/bin/env node shebang, compiled dist/ bin targets, and no any in TypeScript code
  • Designed for single-package repositories where a published CLI ships alongside an optional library API

Install

$ npx -y skills add jwynia/agent-skills --skill npx-cli -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

npx CLI Tool Development (Bun-First)

Build and publish npx-executable command-line tools using Bun as the primary runtime and toolchain, producing binaries that work for all npm/npx users (Node.js runtime).

When to Use This Skill

Use when:

  • Creating a new CLI tool from scratch
  • Building an npx-executable binary
  • Setting up argument parsing, sub-commands, or terminal UX for a CLI
  • Publishing a CLI tool to npm
  • Adding a CLI to an existing library package

Do NOT use when:

  • Building a library without a CLI (use the npm-package skill)
  • Building an application (not a published package)
  • Working in a monorepo (this skill targets single-package repos)

Toolchain

Details

Repository
github.com/jwynia/agent-skills
Category
CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the npx-cli skill do?

The npx-cli skill guides an agent through building and publishing npx-executable command-line tools, using Bun as the primary toolchain with npm-compatible output. It covers scaffolding, citty argument parsing, sub-commands, terminal UX, strict TypeScript, Biome and ESLint linting, Vitest testing, Bunup bundling and npm publishing.

How do I install the npx-cli skill?

Run npx -y skills add jwynia/agent-skills --skill npx-cli -y in a project to install it. Once installed, the npx-cli skill lets the agent scaffold a new CLI package and set up its bin entry, build and test tooling.

Who should use the npx-cli skill?

The npx-cli skill suits developers who want to create a new command-line tool from scratch or publish a CLI to npm. It is aimed at single-package repositories, and the npx-cli skill does not cover libraries without a CLI or monorepos.

What does the npx-cli skill need to run?

The npx-cli skill expects Bun as the runtime and package manager, since its scaffold script and install steps run through bun. Published CLIs it produces target Node.js, so end users do not need Bun.

Where does the npx-cli skill stand in its category?

The npx-cli skill sits in the CLI and Terminal category on Claude Marketplaces, next to herdr, gws-shared, opentui, cf-cli and pnpm. Its focus on npx-executable tools with Bun-first tooling and citty parsing sets it apart from those.

More from jwynia/agent-skills

All 118

Similar to Npx Cli

More CLI & Terminal