openrouter-known-pitfalls
Skill by jeremylongshore
Audits OpenRouter integrations against 10 common mistakes and gives the exact fix for each. Built for developers starting a new integration or reviewing existing code.
Install openrouter-known-pitfalls
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/openrouter-known-pitfalls ~/.claude/skills/openrouter-known-pitfallsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install openrouter-known-pitfalls in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/openrouter-known-pitfalls ~/.gemini/antigravity-cli/skills/openrouter-known-pitfallsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install openrouter-known-pitfalls in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
OpenRouter Known Pitfalls is an agent skill that checks an OpenRouter integration against a list of 10 common mistakes. Each pitfall in the source names the API behavior that causes the problem and gives a specific fix. The covered issues include missing provider prefixes on model IDs, missing max_tokens, hardcoded API keys, missing timeouts, and caching responses with temperature above 0.
The skill works as an audit pass. It guides the assistant through checks on request format, cost controls, routing, client setup and secrets, and ends by walking a PITFALL_CHECKLIST during code review. It needs an OpenRouter API key set as OPENROUTER_API_KEY, and Python 3.8+ with the OpenAI SDK for its validation snippets. It is aimed at developers starting an OpenRouter integration or reviewing existing code.
Written from the project's SKILL.md and checked against it.
What it can do
- Model ID format checkConfirms every model ID uses the provider/model form, such as openai/gpt-4o.
- Startup model validationChecks configured model IDs against /api/v1/models and warns about any that are missing.
- Cost control reviewChecks that max_tokens is set on every request and that free models are not used in production.
- Routing reviewLooks for provider.order and allow_fallbacks settings on requests with sensitive data.
- Fallback loggingLogs response.model on each call to catch unexpected fallbacks to other models.
- Client hygiene reviewChecks for one shared client instance with timeout and max_retries configured.
- Secrets sweepGreps the codebase for hardcoded sk-or-v1- keys and recommends moving them to env vars.
- Caching checkVerifies that only temperature=0 responses are cached.
- Code review checklistProvides PITFALL_CHECKLIST, a 10-line checklist to attach to an integration pull request.
What you need
- OpenRouter API key exported as OPENROUTER_API_KEY
- Python 3.8+ with the OpenAI SDK
- Grep access to the codebase
- Claude Code
Try asking
- Audit my OpenRouter integration for common pitfalls
- Check my code for hardcoded OpenRouter API keys
- Run the OpenRouter pitfall checklist on this pull request
Good to know
- Free models are limited to 50 requests per day without credits and 1000 per day with credits.
- Designed for Claude Code.
- Validation snippets require Python 3.8+ and the OpenAI SDK.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/openrouter-known-pitfalls/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditGrepBash(python3:*)
Alternatives to openrouter-known-pitfalls
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
openrouter-known-pitfalls: common questions
What mistakes does this skill cover?
It covers 10 pitfalls, including missing provider prefixes, no max_tokens, hardcoded API keys, no timeouts, and caching non-deterministic responses.
Why should I check response.model?
The source says the model that responds may differ from the one requested because of fallbacks. Logging response.model helps catch unexpected fallbacks.
Can I use free models in production?
The source advises against it. Free models have daily request limits that will return 429 errors once reached.
How do I install openrouter-known-pitfalls?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is openrouter-known-pitfalls free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is openrouter-known-pitfalls safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to openrouter-known-pitfalls?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
