Agent skill

Database Migration

by jeffstric in jeffstric/ZJT

数据库迁移专家,指导如何在本项目中创建 Alembic 迁移脚本,以及同步修改 model 目录下的模型定义。当需要新建表、修改表结构、添加/修改字段时使用。

Custom licenceAuto-check passedDatabases

Install Database Migration

skills CLI
$ npx skills add jeffstric/ZJT --skill database-migration -a claude-code

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

GitHub CLI
$ gh skill install jeffstric/ZJT database-migration --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/jeffstric/ZJT.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/database-migration .claude/skills/database-migration && 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-migration
GitHub stars
226
Token cost
~1.8k tokens
SKILL.md length
260 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
Custom licence

At a glance

数据库迁移专家,指导如何在本项目中创建 Alembic 迁移脚本,以及同步修改 model 目录下的模型定义。当需要新建表、修改表结构、添加/修改字段时使用。

  • Works in 7 steps: 幂等性原则 → 回滚能力 → 日志记录 → …
  • Tasks that involve Database migrations
  • SKILL.md covers 角色定位, 项目结构, 迁移脚本创建流程 and 重要注意事项, plus 2 more sections
  • Calls python

What it does

Database Migration is an agent skill from jeffstric/ZJT. 数据库迁移专家,指导如何在本项目中创建 Alembic 迁移脚本,以及同步修改 model 目录下的模型定义。当需要新建表、修改表结构、添加/修改字段时使用。

Its SKILL.md is about 1.8k 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, covering Database migrations. The repository describes itself as: ZhiJuTong (ZJT) is an AI-powered, open-source platform specifically designed for creating professional short dramas. It automates the entire production pipeline, from script and….

When your agent uses it

  • Tasks that involve Database migrations

Example prompts

  • “/database-migration”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Read, Write, Terminal

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. 幂等性原则
  2. 回滚能力
  3. 日志记录
  4. 字符集
  5. Model 同步
  6. 跨平台兼容
  7. 禁止只 stamp 不执行(数据丢失红线)

What it can do on your machine

Read from SKILL.md and the folder at commit 5cc1f0c. 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
    • Write
    • Terminal

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

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

  • Network

    No URLs in SKILL.md.

    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 Migration loads about 1.8k tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 260 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 260 words (~1,823 tokens).

name
database-migration
allowed-tools
Read, Write, Terminal

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/database-migration of jeffstric/ZJT.

Open the folder on GitHubat commit 5cc1f0c

Compare with similar skills

Database Migration 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 Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Database Migration this skilljeffstric/ZJT226—~1.8kAutomated safety check: PassCustom licence
Evolving The Data ModelTriliumNext/Trilium38k—~2.1kAutomated safety check: PassAGPL-3.0
Creating Database MigrationsNangoHQ/nango13k—~449Automated safety check: PassCustom licence
Openwrt Package UpdateNethServer/nethsecurity191—~841Automated safety check: PassCustom licence
Free Willsyahiidkamil/Software-Engineer-AI-Agent-Atlas397—~3.4kAutomated safety check: PassNone
Ecto Migrationsoperately/operately576—~1.2kAutomated safety check: PassCustom licence

Similar skills

  • Evolving The Data Model

    TriliumNext/Trilium

    A skill your agent uses when adding a DB migration or a new column/field to a Becca entity in Trilium ("add a migration", "new column on notes/attributes", "ALTER TABLE", "add a field to…

    38k GitHub stars~2.1k tokensUpdated today
    DatabasesAuto-check passed
  • A skill your agent uses when adding or editing Nango database migrations - covers migration directory selection, timestamped .cjs naming, matching recent migration style, down migration decisions…

    13k GitHub stars~449 tokensUpdated today
    DatabasesAuto-check passed
  • Openwrt Package Update

    NethServer/nethsecurity

    A skill your agent uses when updating any forked OpenWrt package in a NethSecurity workspace from the upstream openwrt/packages feed.

    191 GitHub stars~841 tokensUpdated yesterday
    DatabasesAuto-check passed
  • Free Will

    syahiidkamil/Software-Engineer-AI-Agent-Atlas

    Deliberate-choice procedure for a medium-to-high-stakes engineering fork — when the first plausible solution (the instinct, the default next-token pull) would be costly to get wrong.

    397 GitHub stars~3.4k tokensUpdated 3 mo ago
    DatabasesAuto-check passed
  • Ecto Migrations

    operately/operately

    Rules for Operately schema migrations (app/priv/repo/migrations/) and data migrations (app/lib/operately/data/change.ex).

    576 GitHub stars~1.2k tokensUpdated yesterday
    DatabasesAuto-check passed
  • DB Migrate

    simstudioai/sim

    Author or review a Drizzle DB migration for zero-downtime safety — expand/contract phasing, backward-compatibility with the deployed app version, and writing the -- migration-safe acknowledgment the…

    30k GitHub stars~2k tokensUpdated today
    DatabasesAuto-check passed

More from jeffstric/ZJT

All 19 skills in this repo
  • A skill your agent uses when Claude Code needs to operate this project's storyboard automation API or CLI as an agent: exchange agent tokens, discover worlds/scripts/characters/locations/props, call…

    226 GitHub stars~2.8k tokensUpdated 15 days ago
    Auto-check: notes
  • A skill your agent uses when Codex needs to operate this project's storyboard automation API or CLI as an agent: exchange an agent token for authtoken, discover…

    226 GitHub stars~6.6k tokensUpdated 15 days ago
    Auto-check passed
  • Add LLM Model

    jeffstric/ZJT

    新增 LLM 模型专家,指导如何在本项目中添加新的 LLM 供应商和模型。当需要接入新的大语言模型(如 OpenAI、Codex、DeepSeek 等)时使用。

    226 GitHub stars~2.3k tokensUpdated 15 days ago
    Auto-check passed
  • 资产就绪检查专家,负责检查角色(参考图和音色)、场景(参考图)、道具(参考图)的完备性和参考图内容质量(宫格切分污染检测),以及世界画风和构图设定的合理性与精简性。当需要确认所有资产是否准备就绪、是否可以进入制作工坊时使用。

    226 GitHub stars~2k tokensUpdated 15 days ago
    Auto-check passed
  • Character Creator

    jeffstric/ZJT

    角色创建师,基于剧情生成详细的人物角色卡,包括性格、习惯、人物关系网。当需要创建或完善角色信息时使用. An agent skill from jeffstric/ZJT.

    226 GitHub stars~1.5k tokensUpdated 15 days ago
    Auto-check passed
  • 剧本检查师,审核剧本内容是否符合内容规范,检查真实国家名称、黄赌毒、极端封建迷信等违规内容,同时检查角色一致性、大纲一致性、以及每集末尾是否有吸引人的钩子。当需要审核剧本合规性和质量时使用。仅审核任务上下文中的当前剧本,审核完成并记录结果后即结束。

    226 GitHub stars~4k tokensUpdated 15 days ago
    Auto-check passed

Categories

Questions about Database Migration

What does Database Migration do?

数据库迁移专家,指导如何在本项目中创建 Alembic 迁移脚本,以及同步修改 model 目录下的模型定义。当需要新建表、修改表结构、添加/修改字段时使用。. Database Migration is an agent skill from jeffstric/ZJT.

When should I use Database Migration?

Database Migration fits situations like: tasks that involve Database migrations.

How do I install Database Migration in Claude Code?

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

How do I install Database Migration in Codex?

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

Can I use Database Migration 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 jeffstric/ZJT --skill database-migration -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-migration, .gemini/skills/database-migration, .github/skills/database-migration and .opencode/skills/database-migration in your project.

What does Database Migration need to run?

Going by SKILL.md and its folder, Database Migration needs the command-line tools its instructions call (python). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Terminal.

Does Database Migration 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 Migration 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 Database Migration use?

Database Migration has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Database Migration use?

About 1.8k tokens (SKILL.md is roughly 7.3k 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 Migration?

Skills that share tags, products or a category with Database Migration: Evolving The Data Model (TriliumNext/Trilium, 38k stars), Creating Database Migrations (NangoHQ/nango, 13k stars), Openwrt Package Update (NethServer/nethsecurity, 191 stars) and Free Will (syahiidkamil/Software-Engineer-AI-Agent-Atlas, 397 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Database Migration?

jeffstric (a GitHub user) maintains it in jeffstric/ZJT, which has 226 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on September 22, 2026.

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