⌨️
DevOpsTypeScript

Adding a Command

by caliber-ai-org

Adding a Command is a DevOps skill for Claude Code, published by caliber-ai-org in ai-setup.

1.2K stars122 forkson caliber-ai-org/ai-setupAdded 2026/08/20Repository updated 2026/07/26
agent-configai-agentsanthropicclaude-codeclaude-mdclicodexcursorcursorrulesdeveloper-toolsllmmcpopenaiopenai-codexskills
Install in seconds
Install Adding a Command
Copy Adding a Command into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/caliber-ai-org/ai-setup/tree/master/skills/adding-a-command ~/.claude/skills/adding-a-command

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/caliber-ai-org/ai-setup.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/adding-a-command/SKILL.md in caliber-ai-org/ai-setup
Installs to
~/.claude/skills/adding-a-command
Collection
One of 8 skills cataloged from this repository
Category
DevOps798 skills

What Adding a Command does

Adding a Command guides the creation of new CLI commands following the Commander.js pattern, including registration in src/cli.ts, telemetry tracking via tracked(), and option parsing. Use when adding a new command or subcommand, not for modifying existing ones.

Adding a Command is cataloged under DevOps on DirSkills. Adding a Command comes from a repository tagged agent-config, ai-agents, anthropic, claude-code and claude-md.

Documentation

README

Adding a Command

Critical

  • Export pattern: Command must export a named async function: export async function myCommand(options?: OptionType). Never use default exports.
  • Registration in cli.ts: Every command must be imported and registered with .command() chain in src/cli.ts, wrapped with tracked() for telemetry.
  • Error signaling: Use throw new Error('__exit__') to exit gracefully without printing the error message. Use chalk for user-facing messages.
  • Options typing: Commands receiving options must define a TypeScript interface for those options. Pass options as a destructured object parameter.

Instructions

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Adding a Command

  • What else does caliber-ai-org publish alongside Adding a Command?

    Adding a Command is one of 8 skills that DirSkills catalogs from caliber-ai-org/ai-setup, the repository it ships in. Its siblings there include Caliber Setup, Caliber Testing and Find Skills. Each one is a separate skill with its own page in this directory, installs the same way Adding a Command does, and is maintained by caliber-ai-org in that same repository. The rest of the collection is listed on the caliber-ai-org/ai-setup page.

  • How does Adding a Command compare to other DevOps skills?

    Adding a Command ranks #380 by stars among the 798 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Adding a Command against them. Open each page to compare what they document and how they install.

More from caliber-ai-org/ai-setup

Adding a Command is one of 8 skills cataloged on DirSkills from caliber-ai-org/ai-setup.

See all 8 skills
🛠️
2w ago

Caliber Setup

Caliber Setup installs the Caliber CLI and pre-commit hooks so CLAUDE.md, Cursor rules, and Copilot instructions sync automatically on every commit. Use it when hooks are missing or agent configs need to stay in sync.
DevOps
1.2K122
🧪
2w ago

Caliber Testing

Caliber Testing writes Vitest tests following project patterns: __tests__ directories, vi.mock() with vi.hoisted(), global LLM mock, environment save/restore, and cleanup in afterEach. Use when asked to write tests, add coverage, or debug test failures.
Quality
1.2K122
🔍
2w ago

Find Skills

Find Skills searches a public community skill registry and installs relevant skills into the current project when the user mentions a technology, framework, or task lacking existing skills.
AI Engineering
1.2K122
🔌
2w ago

LLM Provider

LLM Provider adds a new LLM provider that implements the LLMProvider interface with call() and stream() methods, integrates with provider factory, config detection, and usage tracking. Use when adding a new model backend or third-party LLM API.
AI Engineering
1.2K122
🧠
2w ago

Save Learning

Save Learning captures user instructions and preferences as persistent project or personal learnings for future AI sessions. Use it when a user says 'remember this', states a convention, or expresses a preference they want applied going forward.
AI Engineering
1.2K122
🧪
2w ago

Scoring Checks

Scoring Checks adds new deterministic checks in src/scoring/checks/ that evaluate AI agent config quality. Use it when adding or modifying scoring criteria, ensuring checks follow the Check[] return pattern and point constants from src/scoring/constants.ts.
Quality
1.2K122