Skip to main content
ClaudeWave
Skill593 repo starsupdated 3d ago

review-provider

The review-provider skill audits a provider implementation within the Adaline gateway architecture for structural compliance, type safety, and consistency. Use this skill when adding or modifying provider integrations to verify the new provider matches the established patterns from the OpenAI reference implementation, including proper directory structure, Zod schema definitions, error mapping to GatewayError subclasses, workspace dependency configuration, and build output generation.

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

SKILL.md

Review the provider at `core/providers/$ARGUMENTS/` for:

1. **Structure compliance**: Verify it has `src/configs/`, `src/models/`, `src/provider/` directories
2. **Type safety**: Check all Zod schemas are properly defined and exported
3. **Error handling**: Verify provider errors are mapped to `GatewayError` subclasses
4. **Package.json**: Check `@adaline/types` and `@adaline/provider` are `workspace:*` dependencies
5. **Build**: Verify `tsup.config.ts` produces ESM + CJS + types output
6. **Exports**: Check the package exports from `src/index.ts` correctly

Compare with `core/providers/openai/` as the reference implementation and report any deviations or issues.