Skip to main content
ClaudeWave
Skill593 estrellas del repoactualizado 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.

Instalar en Claude Code
Copiar
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
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

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