Adding A Command
caliber-ai-org/ai-setupCreates a new CLI command following the Commander.js pattern in src/commands/. Handles command registration in src/cli.ts, telemetry tracking via tracked() wrapper, and option parsing. Use when user says add command, new CLI command, create subcommand, or adds files to src/commands/. Do NOT use for modifying existing commands or fixing bugs in existing commands.
At a glance
git clone --depth 1 https://github.com/caliber-ai-org/ai-setup
cp -r ai-setup/skills/adding-a-command ~/.claude/skills/adding-a-command
Setup, runtime and requirements describe caliber-ai-org/ai-setup, the repo this skill ships in.
Also in caliber-ai-org/ai-setup
View the repoWrites Vitest tests following project patterns: __tests__/ directories, vi.mock() for module mocking with vi.hoisted() for test-time factori...
Discovers and installs community skills from the public registry. Use when the user mentions a technology, framework, or task that could ben...
Adds a new LLM provider implementing LLMProvider interface with call() and stream() methods. Integrates with provider factory in src/llm/ind...
Saves user instructions as persistent learnings for future sessions. Use when the user says 'remember this', 'always do X', 'from now on', '...
Add a new deterministic scoring check in src/scoring/checks/ that evaluates config quality. Follows the Check[] return pattern, uses point c...
Sets up Caliber for automatic AI agent context sync. Installs pre-commit hooks so CLAUDE.md, Cursor rules, and Copilot instructions update a...
Add a new platform writer module in src/writers/ that generates and writes agent config files for a supported platform. Each writer exports...