Agent skill

DB Schema Change

by hiroppy in hiroppy/mf-dashboard

A skill your agent uses when adding/modifying database tables or columns in Drizzle ORM schema

MITAuto-check passedDatabases

Install DB Schema Change

skills CLI
$ npx skills add hiroppy/mf-dashboard --skill db-schema-change -a claude-code

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

GitHub CLI
$ gh skill install hiroppy/mf-dashboard db-schema-change --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/hiroppy/mf-dashboard.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/db-schema-change .claude/skills/db-schema-change && 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
db-schema-change
GitHub stars
418
Token cost
~362 tokens
SKILL.md length
68 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when adding/modifying database tables or columns in Drizzle ORM schema

  • Adding/modifying database tables
  • SKILL.md covers Checklist (MUST complete all), File Locations, Template and Foreign Key Template, plus 1 more section
  • Calls pnpm
  • Columns in Drizzle ORM schema

What it does

DB Schema Change is an agent skill from hiroppy/mf-dashboard. Use when adding/modifying database tables or columns in Drizzle ORM schema

Its SKILL.md is about 360 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 Databases. It works with Drizzle ORM. The repository describes itself as: マネーフォワードMeを自動化、保有資産の可視化を行います. The licence is MIT.

When your agent uses it

  • Adding/modifying database tables
  • Columns in Drizzle ORM schema

Example prompts

  • “/db-schema-change”

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    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

DB Schema Change loads about 362 tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 68 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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 hiroppy/mf-dashboard at commit 48ab522, republished under its MIT licence (© hiroppy). 68 words, ~362 tokens.

Download SKILL.mdSave it as .claude/skills/db-schema-change/SKILL.md (or your agent's skills folder).
name
db-schema-change
description
Use when adding/modifying database tables or columns in Drizzle ORM schema

DB Schema Change Skill

Checklist (MUST complete all)

  • Add createdAt: text("created_at").notNull() to new tables
  • Add updatedAt: text("updated_at").notNull() to new tables
  • Specify onDelete for all foreign keys (cascade/set null)
  • Add index for frequently queried columns
  • Update packages/db/src/schema/relations.ts if adding relations
  • Run migration: pnpm --filter @mf-dashboard/db exec drizzle-kit generate
  • Update docs/architecture/database-schema.md with new ERD

File Locations

  • Schema: packages/db/src/schema/tables.ts
  • Relations: packages/db/src/schema/relations.ts
  • Repositories: packages/db/src/repositories/
  • Types: packages/db/src/types.ts

Template

typescript
export const newTable = sqliteTable("new_table", {
  id: integer("id").primaryKey({ autoIncrement: true }),
  // ... your columns ...
  createdAt: text("created_at").notNull(),
  updatedAt: text("updated_at").notNull(),
});

Foreign Key Template

typescript
foreignKeyColumn: integer("foreign_key_column")
  .notNull()
  .references(() => parentTable.id, { onDelete: "cascade" }),

Index Template

typescript
export const myTable = sqliteTable(
  "my_table",
  {
    // columns...
  },
  (table) => [index("my_table_column_idx").on(table.columnName)],
);

© hiroppy, MIT. 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 .agents/skills/db-schema-change of hiroppy/mf-dashboard.

Open the folder on GitHubat commit 48ab522

Compare with similar skills

DB Schema Change 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.

DB Schema Change compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
DB Schema Change this skillhiroppy/mf-dashboard418—~362Automated safety check: PassMIT
Drizzlekurealnum/dotfiles290—~1.3kAutomated safety check: PassNone
Database Schema Changeswilldady/platypus117—~527Automated safety check: PassMIT
Drizzle V1zhe-qi/clhoria-template193—~3kAutomated safety check: PassMIT
Drizzle Migration Safety on Neonsuperset-sh/superset15k—~2kAutomated safety check: NotesCustom licence
Better Drizzlealmeidazs/better-drizzle347—~1.7kAutomated safety check: PassApache-2.0

Similar skills

  • Drizzle

    kurealnum/dotfiles

    Drizzle ORM schema and database guide. An agent skill from kurealnum/dotfiles.

    290 GitHub stars~1.3k tokensUpdated 5 mo ago
    DatabasesAuto-check passed
  • Database Schema Changes

    willdady/platypus

    Guide for making database schema changes in Platypus using Drizzle ORM — editing the schema, pushing to a dev database, and generating the migration that ships.

    117 GitHub stars~527 tokensUpdated yesterday
    DatabasesAuto-check passed
  • Drizzle V1

    zhe-qi/clhoria-template

    Drizzle ORM v1 关系查询指南。当需要定义 Relations v2、编写关系查询、使用 through 多对多、预定义过滤器、或从旧版 Drizzle 迁移时使用

    193 GitHub stars~3k tokensUpdated 2 mo ago
    DatabasesAuto-check passed
  • Generates a Drizzle migration on a fresh Neon branch and runs a production-safety checklist for table sizes, lock order and load rehearsal before the PR opens.

    15k GitHub stars~2k tokensUpdated today
    DatabasesAuto-check: notes
  • Better Drizzle

    almeidazs/better-drizzle

    Write, review, and debug code that uses better-drizzle, the typed repository layer over Drizzle ORM 1.x (better(db), client.users.findMany, paginate, cursor, upsertMany, relation include/connect…

    347 GitHub stars~1.7k tokensUpdated 3 days ago
    DatabasesAuto-check passed
  • Drizzle Migrations

    bretzel-app/crumbs

    Drizzle ORM schema management and SQLite migrations — adding tables, modifying columns, creating indexes, generating and running migrations, Drizzle query patterns.

    127 GitHub starsUsed in 1 repo~2.6k tokens
    DatabasesAuto-check passed

More from hiroppy/mf-dashboard

  • Drizzle Erd

    hiroppy/mf-dashboard

    A skill your agent uses when needing to visualize database schema, generate ERD diagrams from Drizzle ORM schemas, or understand table relationships

    418 GitHub stars~627 tokensUpdated today
    Auto-check passed
  • Crawler Scraper

    hiroppy/mf-dashboard

    A skill your agent uses when adding new scraping targets to the crawler

    418 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • UI Component

    hiroppy/mf-dashboard

    A skill your agent uses when creating new UI components under apps/web/src/components/

    418 GitHub stars~832 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about DB Schema Change

What does DB Schema Change do?

A skill your agent uses when adding/modifying database tables or columns in Drizzle ORM schema. DB Schema Change is an agent skill from hiroppy/mf-dashboard.

When should I use DB Schema Change?

DB Schema Change fits situations like: adding/modifying database tables; columns in Drizzle ORM schema.

How do I install DB Schema Change in Claude Code?

Run `npx skills add hiroppy/mf-dashboard --skill db-schema-change -a claude-code`. Or copy the skill folder (.agents/skills/db-schema-change in hiroppy/mf-dashboard) into .claude/skills/db-schema-change in your project. Claude Code loads it when a task matches its description.

How do I install DB Schema Change in Codex?

Run `npx skills add hiroppy/mf-dashboard --skill db-schema-change -a codex`. Or copy the skill folder (.agents/skills/db-schema-change in hiroppy/mf-dashboard) into .agents/skills/db-schema-change in your project. Codex loads it when a task matches its description.

Can I use DB Schema Change 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 hiroppy/mf-dashboard --skill db-schema-change -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/db-schema-change, .gemini/skills/db-schema-change, .github/skills/db-schema-change and .opencode/skills/db-schema-change in your project.

What does DB Schema Change need to run?

Going by SKILL.md and its folder, DB Schema Change needs the command-line tools its instructions call (pnpm).

Does DB Schema Change 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 DB Schema Change safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does DB Schema Change use?

DB Schema Change is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does DB Schema Change use?

About 362 tokens (SKILL.md is roughly 1.4k 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 DB Schema Change?

Skills that share tags, products or a category with DB Schema Change: Drizzle (kurealnum/dotfiles, 290 stars), Database Schema Changes (willdady/platypus, 117 stars), Drizzle V1 (zhe-qi/clhoria-template, 193 stars) and Drizzle Migration Safety on Neon (superset-sh/superset, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains DB Schema Change?

hiroppy (a GitHub user) maintains it in hiroppy/mf-dashboard, which has 418 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 8, 2026.

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