Caliber Testing
caliber-ai-org/ai-setupWrites Vitest tests following project patterns: __tests__/ directories, vi.mock() for module mocking with vi.hoisted() for test-time factories, global LLM mock from src/test/setup.ts, environment variable save/restore in beforeEach/afterEach, vi.clearAllMocks() lifecycle, and test file organization. Use when user says 'write tests', 'add test coverage', 'test this', creates *.test.ts files, or when test failures appear in CI. Do NOT use for non-test code or for debugging without writing tests.
At a glance
git clone --depth 1 https://github.com/caliber-ai-org/ai-setup
cp -r ai-setup/skills/caliber-testing ~/.claude/skills/caliber-testing
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 repoCreates a new CLI command following the Commander.js pattern in src/commands/. Handles command registration in src/cli.ts, telemetry trackin...
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...