- Home
- Skills
- APIs & Backend
- api detective
More screenshots
Works with the AI Agents you already use
api detective
Deterministic API debugging and repair toolkit for diagnosing connectivity, auth, and schema contract failures.
Free
api detective
Example session with this skill installed
Audit my local repository at ./services/order-service for API integration errors and validate it against the openapi.yaml spec. Generate a markdown report.
- Read your context and instructions
- Compiled the api detective
- Generated the document
I have completed the repository-aware static integration and security audit for the ./services/order-service directory against the provided openapi.yaml specification.
API Diagnostic Report Summary
The investigation identified 3 findings across the integration and schema domains. One critical contract mismatch was confirmed in the request serialization logic.
| ID | Severity | Domain | Status | Finding |
|---|---|---|---|---|
| SCH-004 | Critical | Schema | Confirmed | Property user_id type mismatch: expected uuid, found integer in client.py:42 |
| INT-002 | Medium | Integration | Probable | Redundant header X-Auth-Token found while using Bearer auth in auth.py:12 |
| SEC-001 | Low | Security | Possible | Potential hardcoded staging URL detected in config.py:5 |
Proposed Remediation: SCH-004
The client library is casting the user_id to an integer, which violates the UUID format defined in the OpenAPI spec.
--- a/services/order-service/client.py
+++ b/services/order-service/client.py
@@ -39,7 +39,7 @@
def create_order(self, user_id, items):
payload = {
- "user_id": int(user_id),
+ "user_id": str(user_id),
"items": items,
"timestamp": datetime.utcnow().isoformat()
}
Next steps
- Review the unified diff above for
client.py. - Apply the fix and run
python scripts/diagnose.py --repo ./services/order-serviceto verify. - Check the full HTML report at
./reports/api_detective_report.htmlfor deep-dive evidence.
api_detective_report.html
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
API integration failures often result in hours of manual log digging, header inspection, and trial-and-error debugging. API Detective replaces guesswork with a deterministic diagnostic engine that identifies root causes across connectivity, authentication, and schema contracts.
What it does
- Automated Diagnostics runs a 43-check engine to identify failures in connectivity, auth, and request construction.
- Contract Validation matches request and response payloads against OpenAPI 3.0/3.1 or JSON Schema specifications.
- Security Auditing scans local repositories for integration bugs and insecure patterns like disabled TLS verification.
- Secret Redaction automatically filters API keys, Bearer tokens, and JWTs from all logs and reports.
- Unified Diff Generation proposes precise code fixes with risk assessments for developer approval.
- Multi-format Reporting compiles findings into developer-ready Markdown, JSON, or dark-mode HTML reports.
How it works
- Collect Artifacts by pointing the tool at an endpoint URL, local repository path, or OpenAPI specification file.
- Run Investigation using
scripts/diagnose.pyto execute the agentic orchestrator against the target. - Analyze Hypotheses to view ranked root causes categorized by confidence scores and verifiable evidence.
- Apply and Verify by generating a unified diff for the fix and re-running the diagnostic suite to confirm resolution.
Frameworks & tools
Built for Python 3.12+ environments. Compatible with OpenAPI 3.0/3.1, Swagger 2.0, and JSON Schema. Supports auditing Python (requests, httpx) and JavaScript/TypeScript (axios, fetch) integrations.
Why this beats prompting it yourself
Generic prompts often hallucinate API field names or suggest insecure fixes like disabling SSL. This skill uses a deterministic engine with local scripts to provide verifiable diagnostic IDs and SSRF-safe execution without requiring external LLM API keys.
Use cases
- Debugging 401/403 errors by inspecting JWT claims and OAuth 2.0 headers.
- Validating production payloads against evolving OpenAPI contracts to catch breaking changes.
- Auditing local source code for hardcoded secrets or incorrect library implementations.
- Troubleshooting SSRF-protected connectivity issues between microservices.
Known limitations
Requires Python 3.12 or higher. Deterministic checks are limited to the 43 predefined diagnostic codes. Fixes are proposed as diffs and require manual approval before file modification.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
- Accounts
OpenAI
Anthropic
Google AI
Simulated
- Software
Python
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.