tRPC Full-Stack Guide
Zero-codegen end-to-end type safety:
- Group procedures into modular sub-routers.
- Chain middleware for authentication and rate limiting on protected procedures.
- Leverage TanStack Query hooks generated by tRPC client.
Eliminate API schema drift with tRPC procedures, input validation with Zod, and full-stack TypeScript safety.
Andromity loads skills from folders you trust. Install with andromity skill install trpc-type-safety — autonomy and approval limits stay configurable per session.
# Install the "tRPC End-to-End Type Safety" skill You are installing an AgenticMarket skill into this workspace. Follow these steps exactly. ## 1. Detect your environment and choose the destination file - Andromity: `.andromity/skills/trpc-type-safety/SKILL.md` (or user scope `~/.andromity/skills/trpc-type-safety/SKILL.md`) - Antigravity / Gemini CLI: `.agent/skills/trpc-type-safety/SKILL.md` - Cursor: `.cursor/rules/trpc-type-safety.mdc` - Claude Code: append to `CLAUDE.md` (or `.claude/skills/trpc-type-safety.md`) - Windsurf: append to `.windsurfrules` - Cline / Roo Code: `.clinerules/trpc-type-safety.md` - GitHub Copilot: append to `.github/copilot-instructions.md` - ChatGPT / web only: paste the content into Custom Instructions - Any other agent: save to `.agent/skills/trpc-type-safety/SKILL.md` ## 2. Create the destination file - Preserve every existing file and configuration entry. - Create parent folders as needed. - Never overwrite unrelated content. ## 3. Write exactly this content ```markdown --- name: trpc-type-safety description: "Eliminate API schema drift with tRPC procedures, input validation with Zod, and full-stack TypeScript safety." author: community license: mit version: 1.0.0 --- # tRPC Full-Stack Guide Zero-codegen end-to-end type safety: - Group procedures into modular sub-routers. - Chain middleware for authentication and rate limiting on protected procedures. - Leverage TanStack Query hooks generated by tRPC client. ``` ## 4. Verify - Confirm the file exists and is readable. - Report the destination path and confirm the "tRPC End-to-End Type Safety" skill is installed and active. Skill metadata: - Slug: trpc-type-safety - Category: development - License: mit - Source: AgenticMarket
Zero-codegen end-to-end type safety:
Implement Stripe Checkout sessions, webhook verification, customer portals, idempotency keys, and subscription billing.
Design type-safe database schemas, execute optimized relational queries, and manage migrations across SQLite, Postgres, and D1.
Master React Server Components, Server Actions, parallel routes, streaming, ISR, and cache revalidation.