Back to skills
SKILL.md
Api Development 5
ASecurityUse when creating or modifying Elysia API routes. Ensures proper validation with t schema, auth guards, error handling, and performance patterns.
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added September 27, 2026
Works with
Security analysis
100/100npx -y skills add David-Li0406/meta-skill-evloving --skill api-development-5 --agent claude-codeAre you the author of Api Development 5?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/david-li0406-api-development-5)---
name: api-development
description: Use when creating or modifying Elysia API routes. Ensures proper validation with t schema, auth guards, error handling, and performance patterns.
allowed-tools: Read, Edit, Write, Glob, Grep, Bash
---
See [API patterns](../../docs/api-patterns.md) for full reference.
**Quick example**:
```typescript
import { Elysia, t } from 'elysia'
import { prisma } from '@/lib/prisma'
new Elysia()
.get('/tasks/:id', async ({ params, status }) => {
const task = await prisma.task.findUnique({
where: { id: params.id },
select: { id: true, title: true }
})
if (!task) return status(404, { error: 'Not found' })
return task
}, {
params: t.Object({ id: t.String() })
})
```
**Checklist**: `t.Object` validation, auth guards, selective Prisma fields, pagination, proper status codes.
Attribution
Comments
Loading comments…