Writers Pattern
caliber-ai-org/ai-setupAdd a new platform writer module in src/writers/ that generates and writes agent config files for a supported platform. Each writer exports a function that accepts a config interface, creates directories (rules/, skills/, mcp configs), writes files with proper formatting and frontmatter, and returns string[] of written file paths. Use when adding platform support for a new agent, integrating a new code AI tool, or extending caliber to support new targets. Do NOT use for modifying existing writers, refactoring scoring logic, or changing how writers are invoked.
At a glance
git clone --depth 1 https://github.com/caliber-ai-org/ai-setup
cp -r ai-setup/skills/writers-pattern ~/.claude/skills/writers-pattern
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...
Writes 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...