Skip to content
Agentmart
Submit a tool

cli-tools

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

Skill by YepAPI

IndexedMIT★ 8
Write a review

Chalk Labs

Need help deploying cli-tools?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/yepapi-cli-tools

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/cli-tools

What's inside

Skill name
cli-tools
Description
Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.
License
MIT
Instructions
59 lines in SKILL.md · view on GitHub

Files (2)

  • README.md
  • SKILL.md

SKILL.md (first lines)

# CLI Tools

## Rules

- Commander.js for argument parsing — `.command()`, `.option()`, `.argument()` with descriptions
- Interactive prompts: `@clack/prompts` (modern, beautiful) or `inquirer` — for user input when args aren't provided
- Spinners: `ora` for long-running operations — start, update message, succeed/fail
- Colors: `chalk` for styled output — use sparingly: red for errors, green for success, yellow for warnings, dim for secondary info
- Config files: `cosmiconfig` — searches `.toolrc`, `.toolrc.json`, `tool.config.js`, `package.json` key automatically
- Exit codes: `0` for success, `1` for general error, `2` for usage error — always `process.exit(code)`
- `--help` and `--version` flags: Commander adds these automatically — write clear descriptions for every option
- Error handling: catch errors at the top level, print user-friendly message to stderr, exit with code 1
- Publish: `bin` field in `package.json`, `#!/usr/bin/env node` shebang, `"type": "module"` for ESM

## Patterns

```ts
#!/usr/bin/env node
import { Command } from "commander";
import * as p from "@clack/prompts";
import ora from "ora";
import chalk from "chalk";

const program = new Command()
  .name("my-tool")
  .description("A CLI that does useful things")
  .version("1.0.0");

program
  .command("init")
  .description("Initialize a new project")
  .option("-t, --template <name>", "template to use", "default")
  .action(async (options) => {
    p.intro(chalk.bold("Project Setup"));

    const name = await p.text({ message: "Project name?", placeholder: "my-app" });
    if (p.isCancel(name)) { p.cancel("Cancelled."); process.exit(0); }

    const spinner = ora("Creating project...").start();
    await createProject(name, options.template);
    spinner.succeed(chalk.green("Project created!"));

    p.outro(`Run ${chalk.cyan(`cd ${name} && npm install`)}`);
  });

program.parse();

// package.json: { "bin": { "my-tool": "./dist/index.js" } }
```

## Avoid

- Printing errors to stdout — use `console.error()` or `process.stderr.write()` for errors
- Exiting without a code on failure — always `process.exit(1)` so scripts and CI detect the failure
- Walls of unformatted text — use chalk colors, sections, and whitespace for readability
- Requiring interactive input with no flag alternative — always support `--flag` overrides for CI/scripting
- Forgetting the shebang `#!/usr/bin/env node` — without it, `npx` and global installs won't work

From YepAPI/skills, MIT.

More from YepAPI/skills

Signals

Stars
8
Forks
1
Open issues
0
Last commit (this folder)
Apr 12, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from YepAPI

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get cli-tools running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying cli-tools?

CallGet help
Cite this page

cli-tools skill. Agent Mart. https://agentmart.dev/skills/yepapi-cli-tools (last updated 2026-10-24)