# tRPC Development Guidelines

> Objective: Define standards for building end-to-end type-safe APIs with tRPC in TypeScript projects, covering router design, input validation, authentication, client integration, error handling, and testing.

::: tip Source File
View the full rule: [`.agent/rules/trpc.md`](https://github.com/snowdreamtech/template/blob/main/.agent/rules/trpc.md)
:::

## Sections

- 1. Overview & When to Use
- 1. Router Definition & Organization
- 1. Procedures, Validation & Middleware
- 1. Authentication, Context & Error Handling
- 1. Client Integration, Testing & Performance
