openrouter-debug-bundle
Set up comprehensive logging and debugging for OpenRouter. Use when investigating issues or monitoring requests. Trigger with phrases like 'openrouter debug', 'openrouter logging', 'openrouter trace', 'monitor openrouter'.
When & Why to Use This Skill
The OpenRouter Debug Bundle is a specialized Claude skill designed to streamline the implementation of comprehensive logging, timing metrics, and debugging utilities for OpenRouter API integrations. It provides developers with the necessary tools to monitor request/response cycles, trace API connectivity issues, and optimize the performance of LLM-powered applications through enhanced observability.
Use Cases
- API Troubleshooting: Quickly diagnose and resolve failed requests, authentication errors, or unexpected responses from the OpenRouter gateway.
- Performance Monitoring: Track and analyze timing metrics and latency across different LLM models to ensure optimal user experience.
- Integration Verification: Use automated checks to confirm API connectivity and validate configuration settings during the initial setup or environment migration.
- Audit & Compliance: Implement persistent logging of request and response data for auditing agent behavior and monitoring token usage patterns.
| name | openrouter-debug-bundle |
|---|---|
| description | | |
| allowed-tools | Read, Write, Edit, Grep |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
Openrouter Debug Bundle
Overview
This skill shows how to implement request/response logging, timing metrics, and debugging utilities for OpenRouter integrations.
Prerequisites
- OpenRouter integration
- Logging infrastructure (optional but recommended)
Instructions
Follow these steps to implement this skill:
- Verify Prerequisites: Ensure all prerequisites listed above are met
- Review the Implementation: Study the code examples and patterns below
- Adapt to Your Environment: Modify configuration values for your setup
- Test the Integration: Run the verification steps to confirm functionality
- Monitor in Production: Set up appropriate logging and monitoring
Output
Successful execution produces:
- Working OpenRouter integration
- Verified API connectivity
- Example responses demonstrating functionality
Error Handling
See {baseDir}/references/errors.md for comprehensive error handling.
Examples
See {baseDir}/references/examples.md for detailed examples.