api-designer

Design and implement tRPC and REST API endpoints with Zod schemas.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/mqzkim/trading --skill api-designer-mqzkim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-designer
Source: https://github.com/mqzkim/trading/tree/main/.agents/skills/api-designer
Command: npx skills add https://github.com/mqzkim/trading --skill api-designer-mqzkim

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the design and implementation of robust tRPC and REST APIs, ensuring type safety, clear error handling, and built-in rate limiting.

Core Features & Use Cases

  • API Design: Define API endpoints using Zod schemas for input validation and output shaping.
  • Implementation: Generate code for both tRPC routers and REST API routes.
  • Security: Integrates authentication (API Key, Session) and rate limiting.
  • Use Case: Design a new set of API endpoints for managing user profiles, including creation, retrieval, and updates, ensuring all data is validated with Zod and protected by rate limits.

Quick Start

Use the api-designer skill to design and implement REST and tRPC endpoints for managing user data with API key authentication and rate limiting.

Frequently Asked Questions about api-designer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design and implement REST and tRPC APIs with Zod schema validation?

You can design and implement REST and tRPC APIs by defining Zod schemas for input validation and output shaping, then generating the corresponding routers and routes. This approach ensures type safety and clear error handling across both protocols.

How do I add API key authentication and rate limiting to tRPC routers?

You add API key authentication and rate limiting to tRPC routers by integrating security middleware during the endpoint implementation phase. This secures API endpoints by validating client sessions and restricting request volumes.

What is the best way to standardize error responses in tRPC and REST APIs?

The best way to standardize error responses in tRPC and REST APIs is by defining consistent error handling logic during the API design phase. This ensures uniform error output across all generated endpoints, improving client-side debugging.

Can I integrate database schemas directly into API endpoint design?

Yes, you can integrate database schemas directly into API endpoint design. This approach supports mapping database schemas to tRPC and REST endpoints, ensuring comprehensive API development with structured data relationships.

Does API versioning work with both tRPC and REST implementations?

Yes, API versioning works with both tRPC and REST implementations. You can design and implement versioned API endpoints to manage breaking changes and maintain backward compatibility across your application architecture.