API Resilience Audit

    by Aadesh Kumar

    1

    >-An API-neutral agent skill for investigating high-impact reliability and integrity failures, with production-status verification, overengineering review, evidence-based findings, and optional CI/CD security checks.

    Free

    Security scanned

    Works with the AI Agents you already use

    API Resilience Audit

    Example session with this skill installed

    Perform a standard audit on the /orders endpoint in this repository. Focus on concurrency and resource exhaustion. Verify if this is production code first.

    • Read your context and instructions
    • Compiled the api resilience audit

    I have completed the Phase 0 gate and initiated a standard resilience audit for the /orders interface. Production status is confirmed as preproduction based on the absence of release tags for this branch and owner attestation.

    API Resilience Audit Report: /orders

    IDDomainFindingSeverityStatus
    FIND-001ConcurrencyRace condition in inventory decrement; lacks row-level locking or atomic updates in db/orders.ts.P1confirmed
    FIND-002ResourceUnbounded memory growth in PDF generation service when processing large batch orders.P2confirmed
    FIND-003CorrectnessMissing idempotency keys on checkout; retry logic in client may cause double charging.P1needs_validation
    DEBT-001OverengineeringMulti-stage message queue for simple synchronous status updates adds 200ms latency without recovery benefit.N/Ahardening

    Architecture Observations

    • Interface: Synchronous REST POST on /orders.
    • State: PostgreSQL for order persistence; Redis for ephemeral session caching.
    • Recovery: No explicit circuit breaker observed for the downstream Payment Gateway.

    Verification Summary

    The independently verified hunter pass confirmed that the inventory race condition (FIND-001) is reachable under concurrent load due to the "read-then-write" pattern in OrderService.java. The memory exhaustion (FIND-002) was reproduced using a local dummy fixture with 10k line items.

    Next steps

    1. Implement SELECT FOR UPDATE or atomic increments in the inventory service to resolve FIND-001.
    2. Add request size limits and streaming for PDF generation to mitigate FIND-002.
    3. Verify the Payment Gateway API documentation to confirm if idempotency keys are supported for FIND-003.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    API Resilience Audit helps coding agents investigate failure modes that can cause incorrect results, data corruption, outages, cascading dependency failures, resource exhaustion, costly amplification, or difficult recovery. The skill first verifies whether the audited API version and interfaces are in production, preproduction, or mixed deployment. It then maps the actual architecture, builds a coverage ledger, investigates relevant failure paths, challenges candidate findings independently, and produces severity-grounded reports. It also includes a mandatory overengineering and technical-debt review that compares complexity with actual requirements and safer alternatives. CI/CD security and release supply-chain checks are optional and disabled by default. Requirements: An agent with access to the buyer's API source/repository; independent review tools or isolated passes recommended; recent deployment status evidence from the owner/operator. Read-only by default. Limitations: This marketplace package delivers guidance, references, JSON Schemas and report outlines. It does not include runnable local validation scripts or the deterministic report generator found in the full MIT-licensed GitHub repository. It cannot automatically verify cloud runtime facts, production safety, resilience under load, or absence of defects. Agents must disclose unverified work and unexecuted validators. Documentation and full executable edition: https://github.com/aolneeraj/api-resilience-audit

    Source-only audit. No live traffic probing or fault injection. Local Node.js validators are not bundled; uses JSON Schema validation and manual checklists for structural integrity.

    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 10 days ago

    • Free with an Agensi account

    Permissions

    Read Files
    Write Files
    Network Access
    Listed10 days ago

    What's inside

    Creator

    Aadesh Kumar

    Aadesh Kumar

    Noob

    Frequently Asked Questions

    This skill moves beyond generic checklists by enforcing a 'multi-pass' verification system. It requires the AI to provide an evidence chain grounded in your actual source code, ensuring that reported risks are reachable and not just theoretical hallucinations.

    The skill is language and framework agnostic, supporting REST, GraphQL, and event-driven architectures. It works with any AI agent that has repository-reading capabilities and can process JSON Schemas for audit reporting.

    The audit uses a Phase 0 Gate to identify if code is pre-production or live. This ensures that its recommendations prioritize backward compatibility for active services while allowing for more aggressive refactoring suggestions in new features.

    No, this is a 'source-first' static analysis framework. It identifies vulnerabilities and failure modes within the code and architecture but does not perform live traffic probing, fault injection, or active penetration testing.

    You receive the complete API Resilience Audit framework, including the deterministic coverage ledger and the independent validation protocols. Note that local executable validators or PDF report generators are not included and must be provided by your hosting agent.

    While the skill identifies 'overengineering' by highlighting complex abstractions that add operational cost, it requires the AI to provide evidence of the cost and suggest a safer, simpler alternative before marking it as a defect.

    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