PSL Syntax Tree Layers
prisma/orm
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.
A skill your agent uses when modifying Prisma schema or database queries.
$ npx skills add programming-in-th/programming.in.th --skill database-changes -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install programming-in-th/programming.in.th database-changes --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "database-changes" agent skill from https://github.com/programming-in-th/programming.in.th/tree/main/.claude/skills/database-changes into .claude/skills/database-changes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-changes", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/programming-in-th/programming.in.th/tree/main/.claude/skills/database-changesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add programming-in-th/programming.in.th --skill database-changes -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install programming-in-th/programming.in.th database-changes --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/programming-in-th/programming.in.th.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/database-changes .agents/skills/database-changes && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "database-changes" agent skill from https://github.com/programming-in-th/programming.in.th/tree/main/.claude/skills/database-changes into .agents/skills/database-changes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-changes", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add programming-in-th/programming.in.th --skill database-changes -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install programming-in-th/programming.in.th database-changes --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/programming-in-th/programming.in.th.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/database-changes .cursor/skills/database-changes && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "database-changes" agent skill from https://github.com/programming-in-th/programming.in.th/tree/main/.claude/skills/database-changes into .cursor/skills/database-changes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-changes", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/programming-in-th/programming.in.th.git --path .claude/skills/database-changes--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add programming-in-th/programming.in.th --skill database-changes -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install programming-in-th/programming.in.th database-changes --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/programming-in-th/programming.in.th.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/database-changes .gemini/skills/database-changes && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "database-changes" agent skill from https://github.com/programming-in-th/programming.in.th/tree/main/.claude/skills/database-changes into .gemini/skills/database-changes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-changes", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install programming-in-th/programming.in.th database-changesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add programming-in-th/programming.in.th --skill database-changes -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/programming-in-th/programming.in.th.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/database-changes .github/skills/database-changes && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "database-changes" agent skill from https://github.com/programming-in-th/programming.in.th/tree/main/.claude/skills/database-changes into .github/skills/database-changes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-changes", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add programming-in-th/programming.in.th --skill database-changes -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install programming-in-th/programming.in.th database-changes --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/programming-in-th/programming.in.th.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/database-changes .opencode/skills/database-changes && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "database-changes" agent skill from https://github.com/programming-in-th/programming.in.th/tree/main/.claude/skills/database-changes into .opencode/skills/database-changes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-changes", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
database-changesA skill your agent uses when modifying Prisma schema or database queries.
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.
Read from SKILL.md and the folder at commit 79ad808. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadEditWriteGlobGrepBashFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pnpmFrom the folder's file list and the shell code blocks in SKILL.md.
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.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Read, Edit, Write, Glob, Grep, BashAutomated 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.
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.
.claude/skills/database-changes/SKILL.md (or your agent's skills folder).See Database patterns for full reference.
Schema changes:
pnpm prisma migrate dev --name descriptive_name
pnpm check-typesQuery rules:
import { prisma } from '@/lib/prisma'select for specific fieldstake/skipinclude 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
Just SKILL.md in .claude/skills/database-changes of programming-in-th/programming.in.th.
Open the folder on GitHubat commit 79ad808
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Database Changes this skillprogramming-in-th/programming.in.th | 102 | — | ~170 | Automated safety check: Notes | AGPL-3.0 | |
| PSL Syntax Tree Layersprisma/orm | 48k | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| DB SculptorEliasOulkadi/shokunin | 114 | — | ~3.1k | Automated safety check: Notes | MIT | |
| Prisma Expertdavila7/claude-code-templates | 32k | 6 repos | ~2.6k | Automated safety check: Pass | MIT | |
| Drizzle Orm Expertdavila7/claude-code-templates | 32k | 3 repos | ~2.6k | Automated safety check: Pass | MIT | |
| Prisma Patternsaffaan-m/ECC | 274k | 1 repos | ~3.8k | Automated safety check: Notes | MIT |
prisma/orm
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.
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…
davila7/claude-code-templates
Prisma ORM expert for schema design, migrations, query optimization, relations modeling, and database operations.
davila7/claude-code-templates
Expert in Drizzle ORM for TypeScript — schema design, relational queries, migrations, and serverless database integration.
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…
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.
programming-in-th/programming.in.th
A skill your agent uses when creating or modifying Elysia API routes.
programming-in-th/programming.in.th
A skill your agent uses when creating or modifying React components.
Works with
Categories
A skill your agent uses when modifying Prisma schema or database queries. th. Use when modifying Prisma schema or database queries.
Database Changes fits situations like: modifying Prisma schema; database queries.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.