More screenshots

    Works with the AI Agents you already use

    api detective

    by Mohammad Tahmid Zoayed

    1

    Deterministic API debugging and repair toolkit for diagnosing connectivity, auth, and schema contract failures.

    Free

    Security scanned
    api detective

    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.

    IDSeverityDomainStatusFinding
    SCH-004CriticalSchemaConfirmedProperty user_id type mismatch: expected uuid, found integer in client.py:42
    INT-002MediumIntegrationProbableRedundant header X-Auth-Token found while using Bearer auth in auth.py:12
    SEC-001LowSecurityPossiblePotential 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

    1. Review the unified diff above for client.py.
    2. Apply the fix and run python scripts/diagnose.py --repo ./services/order-service to verify.
    3. Check the full HTML report at ./reports/api_detective_report.html for deep-dive evidence.

    api_detective_report.html

    PDF · document

    Generated

    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

    1. Collect Artifacts by pointing the tool at an endpoint URL, local repository path, or OpenAPI specification file.
    2. Run Investigation using scripts/diagnose.py to execute the agentic orchestrator against the target.
    3. Analyze Hypotheses to view ranked root causes categorized by confidence scores and verifiable evidence.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    OpenAIAnthropicGoogle AISimulated
    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    Allowed Hosts

    simulated.local
    api.example.com
    api.openai.com
    api.anthropic.com
    generativelanguage.googleapis.com
    api.orders.example.com
    app.orders.example.com
    Listed12 days ago

    What's inside

    Frequently Asked Questions

    API Detective identifies the root cause of integration failures by running a 43-check diagnostic engine across connectivity, authentication, and schema contracts, then generates precise code fixes to resolve the issue.

    The toolkit is designed for Python 3.12+ environments and supports auditing integrations written in Python (requests, httpx) as well as JavaScript/TypeScript (axios, fetch).

    It is compatible with OpenAPI 3.0/3.1, Swagger 2.0, and JSON Schema, allowing you to validate live request/response payloads against your existing documentation.

    Yes, it includes a dedicated secret redaction layer that automatically filters API keys, Bearer tokens, and JWTs from all diagnostic logs and reports before they are generated.

    You receive the full diagnostic engine, the agentic orchestrator (scripts/diagnose.py), local auditing scripts, and a suite of reporting templates for Markdown, JSON, and HTML outputs.

    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.

    Free