Use when creating or modifying Elysia API routes. Ensures proper validation with t schema, auth guards, error handling, and performance patterns.
See API patterns for full reference.
Quick example:
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.
npx skills add programming-in-th/api-development下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer