Back to list
programming-in-th

api-development

by programming-in-th

Site component of programming.in.th

99🍴 39📅 Jan 23, 2026

SKILL.md


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 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.

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon