new-api-route

Create type-safe ORPC API routes using a contract-first pattern.

Updated Dec 30, 2025
One-click install
npx skills add https://github.com/coderguai/server-up-box --skill new-api-route-coderguai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-api-route
Source: https://github.com/coderguai/server-up-box/tree/main/.claude/skills/new-api-route
Command: npx skills add https://github.com/coderguai/server-up-box --skill new-api-route-coderguai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create type-safe ORPC API routes following the project's contract-first pattern, ensuring consistent contracts, routers, and client usage. 按照项目的合同优先模式创建类型安全的 ORPC API 路由,确保合约、路由和客户端使用的一致性。

Core Features & Use Cases

  • Contract-first: Define contracts, then generate routers and client usage.
  • Multi-step workflow: CRUD pattern scaffolding, pagination, and OpenAPI-friendly patterns.
  • Client integration: Example usage in web app clients.

Quick Start

Create a new entity by adding a contract, router, and client integration following the templates in packages/api, and register in the app router.