Npx CLI
Build and publish npx-executable CLI tools using Bun as the primary toolchain with npm-compatible output. Use when the user wants to create a new CLI tool, set up a command-line package for npx execution, configure argument parsing and terminal output, or publish a CLI to npm. Covers scaffolding, citty arg parsing, sub-commands, terminal UX, strict TypeScript, Biome + ESLint linting, Vitest testing, Bunup bundling, and publishing workflows. Keywords: npx, cli, command-line, binary, bin, tool, bun, citty, commander, terminal, publish, typescript, biome, vitest.
Install
npx skills add jwynia/agent-skills --skill npx-cligit clone --depth 1 https://github.com/jwynia/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/tech/development/tooling/npx-cli ~/.claude/skills/npx-cliPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# 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 | Concern | Tool | Why | |---------|------|-----| | Runtime / package manager | Bun | Fast install, run, transpile | | Bundler | Bunup | Bun-native, dual entry (lib + cli), .d.ts | | Argument parsing | citty | ~3KB, TypeScript-native, auto-help, `runMain()` | | Terminal colors | picocolors | ~7KB, CJS+ESM, auto-detect | | TypeScript | `module: "nodenext"`, `strict: true` + extras | Maximum correctness | | Formatting + basic linting | Biome v2 | Fast, single tool | | Type-aware linting | ESLint + typescript-eslint | Deep type safety | | Testing | Vitest | Isolation, mocking, coverage | | Versioning | Changesets | File-based, explicit | | Publishing | `npm publish --provenance` | Trusted Publishing / OIDC | ## Scaffolding a New CLI Run the scaffold script:
Details
- Skill name
npx-cli- Repository
- jwynia/agent-skills
- Path
skills/tech/development/tooling/npx-cli/SKILL.md- Repo updated
- 24 February 2026
FAQ
What does the Npx CLI skill do?
Build and publish npx-executable CLI tools using Bun as the primary toolchain with npm-compatible output. Use when the user wants to create a new CLI tool, set up a command-line package for npx execution, configure argument parsing and terminal output, or publish a CLI to npm. Covers scaffolding, citty arg parsing, sub-commands, terminal UX, strict TypeScript, Biome + ESLint linting, Vitest testing, Bunup bundling, and publishing workflows. Keywords: npx, cli, command-line, binary, bin, tool, bun, citty, commander, terminal, publish, typescript, biome, vitest.
How do I install the Npx CLI skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jwynia/agent-skills --skill npx-cli. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Npx CLI popular?
It lives in jwynia/agent-skills, which has 191 GitHub stars and 24 forks.
Related skills
Abstract Strategy
191jwynia/agent-skills
Design abstract strategy games with perfect information, no randomness, and strategic depth. Use when designing a board game, exploring abstract strategy games, brainstorming game mechanics, or evaluating game balance. Keywords: board game, game design, strategy, mechanics, balance.
Adaptation Synthesis
191jwynia/agent-skills
Synthesize new works from extracted functional DNA documents. Use when adapting a source work to a new context, when combining multiple source extractions, or when generating variations that preserve function while changing form.
Agent Bootstrap
191jwynia/agent-skills
Bootstrap agentic development environment from agent.toml manifest
Nuqs Codemod Runner
228pproenca/dot-skills
Migrates a nuqs codebase off pre-v2.5 patterns — deprecated `throttleMs`, hand-rolled setTimeout/useState debounce around `useQueryState`, unchecked `parseAsJson` casts, unversioned `nuqs/adapters/react-router` imports, or `ParserBuilder<T>` type references. Scans the repo, produces a dry-run report, asks for confirmation, applies AST codemods, then runs `tsc --noEmit` + the user's lint as a gate. Trigger even if the user only mentions "upgrade nuqs" or "migrate to nuqs v2.5+" without naming the specific patterns — they almost always exist in pre-v2.5 codebases.
Migrate Js to Modern Typescript
228pproenca/dot-skills
Migrating a JavaScript codebase to TypeScript — converting .js files to .ts, adding types to existing JS, or tightening a loosely-typed TS project toward strict mode. Covers tsconfig and allowJs strategy, incremental strict-flag ratcheting (noImplicitAny, strictNullChecks, noUncheckedIndexedAccess), typing public surfaces, replacing `any` and unsafe casts with `unknown` and narrowing, validating runtime boundaries (JSON, env, API responses), converting CommonJS to ESM and prototypes to classes, and the build/CI changes a migration needs. Trigger even when the user only says "add types", "turn
One on Ones
150guia-matthieu/clawfu-skills
Design and run effective 1:1 meetings that build trust, develop people, and surface problems early. Covers cadence setup, agenda ownership, conversation frameworks, question banks, and handling difficult topics. Use when: a new manager learning to run 1:1s, resetting unproductive 1:1s that became status updates, onboarding a new direct report, preparing for a difficult performance conversation, building trust with a new team, or coaching through career development discussions.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.