A skill your agent uses when modifying Prisma schema or database queries.

AGPL-3.0Auto-check: notesDevelopment

Install Database Changes

skills CLI
$ npx skills add programming-in-th/programming.in.th --skill database-changes -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install programming-in-th/programming.in.th database-changes --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/programming-in-th/programming.in.th.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/database-changes .claude/skills/database-changes && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
database-changes
GitHub stars
102
Token cost
~170 tokens
SKILL.md length
44 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
AGPL-3.0

At a glance

A skill your agent uses when modifying Prisma schema or database queries.

  • Modifying Prisma schema
  • Calls pnpm
  • Database queries

What it does

Database Changes is an agent skill from programming-in-th/programming.in.th. Use when modifying Prisma schema or database queries. Ensures proper migrations, type safety, and query performance.

Its SKILL.md is about 170 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Type safety and Query optimization. It works with Prisma. The repository describes itself as: Site component of programming.in.th. The licence is AGPL-3.0.

When your agent uses it

  • Modifying Prisma schema
  • Database queries

Example prompts

  • “/database-changes”

Requirements

  • Pre-approved tools (allowed-tools): Read, Edit, Write, Glob, Grep, Bash

What it can do on your machine

Read from SKILL.md and the folder at commit 79ad808. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Edit
    • Write
    • Glob
    • Grep
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Database Changes loads about 170 tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 44 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~170

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Edit, Write, Glob, Grep, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from programming-in-th/programming.in.th at commit 79ad808, republished under its AGPL-3.0 licence (© programming-in-th). 44 words, ~170 tokens.

Download SKILL.mdSave it as .claude/skills/database-changes/SKILL.md (or your agent's skills folder).
name
database-changes
description
Use when modifying Prisma schema or database queries. Ensures proper migrations, type safety, and query performance.
allowed-tools
Read, Edit, Write, Glob, Grep, Bash

See Database patterns for full reference.

Schema changes:

bash
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

© programming-in-th, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/database-changes of programming-in-th/programming.in.th.

Open the folder on GitHubat commit 79ad808

Compare with similar skills

Database Changes next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Database Changes compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Database Changes this skillprogramming-in-th/programming.in.th102—~170Automated safety check: NotesAGPL-3.0
PSL Syntax Tree Layersprisma/orm48k—~2.3kAutomated safety check: PassApache-2.0
DB SculptorEliasOulkadi/shokunin114—~3.1kAutomated safety check: NotesMIT
Prisma Expertdavila7/claude-code-templates32k6 repos~2.6kAutomated safety check: PassMIT
Drizzle Orm Expertdavila7/claude-code-templates32k3 repos~2.6kAutomated safety check: PassMIT
Prisma Patternsaffaan-m/ECC274k1 repos~3.8kAutomated safety check: NotesMIT

Similar skills

  • Official

    Explains which of the three PSL syntax tree layers to use with Prisma's parser output, and how to move between them without hand-written walks.

    48k GitHub stars~2.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • DB Sculptor

    EliasOulkadi/shokunin

    Design database schemas with Prisma/Drizzle, PostgreSQL index strategy (B-tree, GIN, GiST, BRIN, Hash), query optimization (EXPLAIN ANALYZE), migration safety (expand/contract, zero-downtime), and…

    114 GitHub stars~3.1k tokensUpdated 2 days ago
    DatabasesAuto-check: notes
  • Prisma Expert

    davila7/claude-code-templates

    Prisma ORM expert for schema design, migrations, query optimization, relations modeling, and database operations.

    32k GitHub starsUsed in 6 repos~2.6k tokens
    DatabasesAuto-check passed
  • Drizzle Orm Expert

    davila7/claude-code-templates

    Expert in Drizzle ORM for TypeScript — schema design, relational queries, migrations, and serverless database integration.

    32k GitHub starsUsed in 3 repos~2.6k tokens
    DatabasesAuto-check passed
  • Prisma Patterns

    affaan-m/ECC

    Prisma ORM patterns for TypeScript backends — schema design, query optimization, transactions, pagination, and critical traps like updateMany returning count not records, $transaction timeouts…

    274k GitHub starsUsed in 1 repo~3.8k tokens
    DatabasesAuto-check: notes
  • Database Testing

    petrkindlmann/qa-skills

    Validate database integrity, test migrations forward and backward, verify schema constraints, manage seed data, detect migration drift, and identify query performance issues.

    163 GitHub stars~4.2k tokensUpdated 3 mo ago
    DatabasesAuto-check passed

More from programming-in-th/programming.in.th

  • API Development

    programming-in-th/programming.in.th

    A skill your agent uses when creating or modifying Elysia API routes.

    102 GitHub stars~213 tokensUpdated today
    Auto-check: notes
  • Component Development

    programming-in-th/programming.in.th

    A skill your agent uses when creating or modifying React components.

    102 GitHub stars~198 tokensUpdated today
    Auto-check passed

Works with

Questions about Database Changes

What does Database Changes do?

A skill your agent uses when modifying Prisma schema or database queries. th. Use when modifying Prisma schema or database queries.

When should I use Database Changes?

Database Changes fits situations like: modifying Prisma schema; database queries.

How do I install Database Changes in Claude Code?

Run `npx skills add programming-in-th/programming.in.th --skill database-changes -a claude-code`. Or copy the skill folder (.claude/skills/database-changes in programming-in-th/programming.in.th) into .claude/skills/database-changes in your project. Claude Code loads it when a task matches its description.

How do I install Database Changes in Codex?

Run `npx skills add programming-in-th/programming.in.th --skill database-changes -a codex`. Or copy the skill folder (.claude/skills/database-changes in programming-in-th/programming.in.th) into .agents/skills/database-changes in your project. Codex loads it when a task matches its description.

Can I use Database Changes in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add programming-in-th/programming.in.th --skill database-changes -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/database-changes, .gemini/skills/database-changes, .github/skills/database-changes and .opencode/skills/database-changes in your project.

What does Database Changes need to run?

Going by SKILL.md and its folder, Database Changes needs the command-line tools its instructions call (pnpm). Its frontmatter pre-approves these tools: Read, Edit, Write, Glob, Grep, Bash.

Does Database Changes access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Database Changes safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Database Changes use?

Database Changes is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Database Changes use?

About 170 tokens (SKILL.md is roughly 680 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Database Changes?

Skills that share tags, products or a category with Database Changes: PSL Syntax Tree Layers (prisma/orm, 48k stars), DB Sculptor (EliasOulkadi/shokunin, 114 stars), Prisma Expert (davila7/claude-code-templates, 32k stars) and Drizzle Orm Expert (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Database Changes?

programming-in-th (a GitHub organization) maintains it in programming-in-th/programming.in.th, which has 102 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.

Source: programming-in-th/programming.in.th on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.