api-development

Create and modify Elysia API routes with t schema validation and auth guards.

2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/twarogowski/trauma2 --skill api-development-twarogowski
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-development
Source: https://github.com/twarogowski/trauma2/tree/main/.claude/skills/api-development
Command: npx skills add https://github.com/twarogowski/trauma2 --skill api-development-twarogowski

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides the creation and maintenance of Elysia API routes by enforcing strict input validation with t, robust authentication guards, consistent error handling, and performance-conscious routing patterns.

Core Features & Use Cases

  • Type-safe routing: Define routes with t schema validation to catch invalid inputs early.
  • Auth and errors: Integrate auth guards and standardized error responses across endpoints.
  • Consistent patterns: Promote reusable patterns for routing, validation, and performance optimization across services.

Quick Start

Use the api-development skill to scaffold or modify an Elysia route with validation and guards, then test with a curl or HTTP client.

Frequently Asked Questions about api-development

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

FAQPage Schema
How do I add type-safe validation to Elysia API routes?

You can add type-safe validation to Elysia API routes by defining t schemas to catch invalid inputs early, enforce selective field exposure, and ensure consistent response schemas across endpoints.

What is the best way to implement authentication guards in Elysia?

Implementing authentication guards in Elysia involves integrating with existing routing infrastructure to apply standardized auth checks and robust error handling across all endpoints consistently.

How do I handle errors consistently across Elysia API endpoints?

Consistent error handling across Elysia API endpoints is achieved by enforcing standardized response schemas and robust error patterns during route creation and modification.

Can I use this API development skill to modify existing Elysia routes?

Yes, you can use this skill to modify existing Elysia routes by applying strict input validation, authentication guards, and performance-conscious patterns to your current routing infrastructure.

Why should I use t schema validation for TypeScript API development?

Using t schema validation ensures type-safe inputs, catches invalid data early, and enforces selective field exposure, which promotes reusable and performance-conscious patterns across services.