API Design Pack

    by mochalatte

    1

    Multi-protocol API auditor for REST, GraphQL, tRPC, and OpenAPI design patterns.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLI+17 more

    See it in action

    You say

    Review this Express route: app.post('/item', (req, res) => { const item = db.items.create(req.body); res.status(200).send(item); });

    Your agent does

    Stack

    Express.js, JavaScript

    Audit

    1. REST: Wrong status code. POST /item returns 200, but should be 201 Created.
    2. REST: Resource naming. Route is singular '/item', should be plural '/items'.
    3. Rate Limiting: No middleware detected for this write operation.

    Fixes

    res.status(201).send(item);

    What you get

    Detect N+1 query patterns in GraphQL resolvers and suggest DataLoader fixes.Enforce RFC-compliant status codes and error formats across REST endpoints.Audit OpenAPI specs for missing response schemas and property descriptions.Inject Zod input validation and middleware patterns into tRPC procedures.

    About this skill

    The problem

    API inconsistencies and anti-patterns often go unnoticed until production, leading to brittle integrations, N+1 performance bottlenecks, and poor developer experiences. Manually checking every route for proper status codes, pagination, and rate limiting is tedious and error-prone.

    What it does

    • Audits REST, GraphQL, and tRPC code for architectural anti-patterns using a multi-skill detection engine.
    • Identifies specific violations like missing pagination, incorrect HTTP status codes, and N+1 resolver loops with line-level citations.
    • Generates concrete code fixes using detected frameworks like FastAPI, Express, or Apollo.
    • Validates OpenAPI/Swagger schemas for completeness, documentation quality, and security definitions.
    • Analyzes rate limiting strategies, suggesting token bucket or sliding window implementations based on your stack.

    Frameworks & tools

    REST (Express, FastAPI), GraphQL (Apollo, DataLoader), tRPC, OpenAPI 3.0/3.1, Swagger, Zod, and Pydantic.

    Why this beats prompting it yourself

    Generic prompts often miss the nuances of specific protocols, such as RFC 7807 error formats or GraphQL forward compatibility rules. This skill uses a structured matrix to apply deep domain rules specific to your detected stack, ensuring you don't just get "cleaner code" but technically compliant API design.

    Use cases

    • Reviewing legacy REST controllers for missing idempotency and pagination.
    • Fixing N+1 query issues in complex GraphQL resolver chains.
    • Converting flat tRPC routers into scalable sub-router architectures.
    • Hardening endpoints with RFC-compliant rate limit headers and 429 error handling.

    Known limitations

    Operates only on provided code and schemas. Does not execute, test, or deploy APIs.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Frequently Asked Questions

    Popular in API Development