Avoid common OpenRouter integration pitfalls and gotchas. Use proactively when designing or reviewing an integration. Trigger with phrases like 'openrouter pitfalls', 'openrouter gotchas', 'openrouter mistakes', 'openrouter best practices'.
From openrouter-packnpx claudepluginhub nickloveinvesting/nick-love-plugins --plugin openrouter-packThis skill is limited to using the following tools:
references/authentication-issues.mdreferences/cost-surprises.mdreferences/error-handling-gaps.mdreferences/errors.mdreferences/examples.mdreferences/model-name-mistakes.mdreferences/provider-differences.mdreferences/rate-limiting-mistakes.mdreferences/request-format-errors.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
This skill documents the most common mistakes developers make when integrating OpenRouter and how to avoid them.
context_length from the models API and validate prompt size before sendingmax_tokens, models may generate very long (and expensive) responses; always set a reasonable limit.env to .gitignore; rotate keys if they're ever exposed| Error | Cause | Fix |
|---|---|---|
model_not_found after working fine | Model was renamed or deprecated | Query /models at startup; maintain a fallback model list |
| Unexpectedly large bill | No max_tokens set on expensive model | Always set max_tokens; implement cost tracking middleware |
| Different behavior across models | Assuming all models handle prompts identically | Test with each model you plan to use; adjust prompts per model if needed |
See ${CLAUDE_SKILL_DIR}/references/errors.md for full error reference.
See ${CLAUDE_SKILL_DIR}/references/examples.md for runnable code samples.