cli-tools
Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.
Skill by YepAPI
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.
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.
About
Reviews
Write a reviewNo 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 workFrom YepAPI/skills, MIT.
More from YepAPI/skills
- 0.469score
api-documentation
YepAPI
OpenAPI 3.1 from Zod schemas, interactive docs with Swagger/Scalar, versioning, and example requests for every endpoint.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
charts
YepAPI
Recharts/Chart.js data visualization — bar, line, area, pie charts.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
blog-engine
YepAPI
MDX blog setup, RSS feed generation, sitemap.xml, structured data/JSON-LD, and related posts.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
caching-strategy
YepAPI
Redis caching, CDN cache headers, stale-while-revalidate, cache invalidation, React Query.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
ab-testing
YepAPI
Experiment setup, variant splitting, statistical significance, and feature flag integration.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
admin-panel
YepAPI
CRUD generators, data tables, user management, role-based access, and bulk operations.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
ai-agents
YepAPI
Tool-use patterns, multi-step reasoning, agent orchestration, and structured outputs.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
ai-chatbot
YepAPI
Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
ai-visibility
YepAPI
Monitor what ChatGPT and Gemini say about your brand using YepAPI.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
analytics
YepAPI
Web analytics integration — event tracking, custom dashboards, privacy-first.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
animations
YepAPI
Framer Motion — transitions, scroll animations, layout animations.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
api-design
YepAPI
REST conventions, Zod validation, and consistent error formats.
SkillDFreshness: D★ 8Claude Code +9
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
- Repository
- github.com/YepAPI/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from YepAPI
- 0.469score
api-documentation
YepAPI
OpenAPI 3.1 from Zod schemas, interactive docs with Swagger/Scalar, versioning, and example requests for every endpoint.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
ai-visibility
YepAPI
Monitor what ChatGPT and Gemini say about your brand using YepAPI.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
admin-panel
YepAPI
CRUD generators, data tables, user management, role-based access, and bulk operations.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
ai-agents
YepAPI
Tool-use patterns, multi-step reasoning, agent orchestration, and structured outputs.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
ai-chatbot
YepAPI
Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
ab-testing
YepAPI
Experiment setup, variant splitting, statistical significance, and feature flag integration.
SkillDFreshness: D★ 8Claude Code +9
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.
Cite this page
cli-tools skill. Agent Mart. https://agentmart.dev/skills/yepapi-cli-tools (last updated 2026-10-24)