Skip to main content
ClaudeWave
Skill593 repo starsupdated 3d ago

add-model

The add-model skill automates adding a new model to an existing provider in the gateway repository by creating configuration files, schema definitions with Zod validators, and updating exports. Use this when integrating a new model into a provider that already exists in the codebase.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/adaline/gateway /tmp/add-model && cp -r /tmp/add-model/.claude/skills/add-model ~/.claude/skills/add-model
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

Add a new model to provider `$ARGUMENTS[0]`:

1. Look at existing model configs in `core/providers/$ARGUMENTS[0]/src/configs/` to understand the pattern
2. Look at existing model schemas in `core/providers/$ARGUMENTS[0]/src/models/` for schema patterns
3. Create the new model config following the established pattern
4. Create the model schema with proper Zod validators
5. Export the new model from the provider's barrel file
6. Run `pnpm run build` from the provider directory to verify
7. Run `pnpm run test` from the provider directory to verify