Agent Skills: database-changes

Use when modifying Prisma schema or database queries. Ensures proper migrations, type safety, and query performance.

UncategorizedID: programming-in-th/programming.in.th/database-changes

Install this agent skill to your local

pnpm dlx add-skill https://github.com/programming-in-th/programming.in.th/tree/HEAD/.claude/skills/database-changes

Skill Files

Browse the full folder contents for database-changes.

Download Skill

Loading file tree…

.claude/skills/database-changes/SKILL.md

Skill Metadata

Name
database-changes
Description
Use when modifying Prisma schema or database queries. Ensures proper migrations, type safety, and query performance.

See Database patterns for full reference.

Schema changes:

pnpm prisma migrate dev --name descriptive_name
pnpm check-types

Query rules:

  • Always import { prisma } from '@/lib/prisma'
  • Always use select for specific fields
  • Always paginate with take/skip
  • Avoid N+1: use include or batch with where: { id: { in: ids } }

Models: User, Task, Submission, Assessment, Category, Tag, Bookmark