Skip to main content
skill CX Codex

npx-cli — Claude Code skill: what it does, how to install

Builds and packages npx-runnable CLI tools using Bun for development while generating Node.js-compatible output for npm.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add jwynia/agent-skills --skill npx-cli -a claude-code
Open on GitHub

What npx-cli does

This skill establishes a project structure for terminal utilities distributed through npx. It separates business logic from command-line plumbing. You get either a dual setup that exports an importable library alongside the executable binary, or a binary-only package. Argument parsing uses citty, output styling relies on picocolors, and bundling goes through Bunup.

Code quality relies on strict TypeScript settings, Biome, ESLint, and Vitest test suites. Release preparation is handled by Changesets with provenance flags for npm. The compiled output in dist/ explicitly requires a #!/usr/bin/env node shebang. End users do not need Bun installed to run your published command.

This setup targets single-package repositories only. It breaks down in monorepos, and standalone libraries without a CLI need a separate configuration.

What it helps with

  • scaffold a new CLI package executable via npx
  • configure argument parsing and sub-commands with citty
  • isolate domain logic from terminal entry points for unit testing
  • bundle dual-entry packages with both library API and binary exports
  • automate npm releases with Changesets and provenance checks

Example prompts for the agent

  • Scaffold a new CLI project for npx with input and output flags
  • Set up sub-commands for my tool using citty and format terminal output
  • Configure package.json and Bunup for publishing a CLI binary to npm

How to install npx-cli

1Skills CLI (Vercel)

npx skills add jwynia/agent-skills --skill npx-cli -a claude-code

2Manually: put the files in place

~/.claude/skills/npx-cli/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/npx-cli/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about npx-cli

How do I install npx-cli in Claude Code?

Run npx skills add jwynia/agent-skills --skill npx-cli -a claude-code. This adds the skill instructions to your agent setup.

Why does the skill target Node.js if development uses Bun?

Most developers invoking npx rely on Node.js and lack Bun on their machines. Output binaries target the standard Node.js runtime and require a #!/usr/bin/env node shebang.

When should this skill be avoided?

Do not use it inside monorepos or for unpublished private applications. It is also unsuitable for packages that only export library code without a CLI entry point.

Similar skills

All skills for Programming languages →

From the same set113

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor