Agent skill

Dev Database

by devcodex-labs in devcodex-labs/devcodex

数据库开发子类型规范 — Migration 安全策略 + Schema 变更审查. An agent skill from devcodex-labs/devcodex.

AGPL-3.0Auto-check passedDatabases

Install Dev Database

skills CLI
$ npx skills add devcodex-labs/devcodex --skill dev-database -a claude-code

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

GitHub CLI
$ gh skill install devcodex-labs/devcodex dev-database --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/devcodex-labs/devcodex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/content/skills/dev-database .claude/skills/dev-database && 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
dev-database
GitHub stars
439
Token cost
~482 tokens
SKILL.md length
131 words
Files
2
Skills in repo
70
Repo updated
First seen
Licence
AGPL-3.0

At a glance

数据库开发子类型规范 — Migration 安全策略 + Schema 变更审查. An agent skill from devcodex-labs/devcodex.

  • Databases work in your project
  • SKILL.md covers 触发条件, 执行规则, 产出物 and 关键约束, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Dev Database is an agent skill from devcodex-labs/devcodex. 数据库开发子类型规范 — Migration 安全策略 + Schema 变更审查

Its SKILL.md is about 480 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `intent.json`).

It sits in Databases. The repository describes itself as: Intent-driven AI coding workflow runtime for consistent context, skills, approvals, validation, and handoffs across six AI coding hosts. The licence is AGPL-3.0.

When your agent uses it

  • Databases work in your project

Example prompts

  • “/dev-database”

What it can do on your machine

Read from SKILL.md and the folder at commit 1dd4525. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

Dev Database loads about 482 tokens when it runs. Until then it costs about 14 tokens; SKILL.md has 131 words of instructions outside code blocks.

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

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 devcodex-labs/devcodex at commit 1dd4525, republished under its AGPL-3.0 licence (© devcodex-labs). 131 words, ~482 tokens.

Download SKILL.mdSave it as .claude/skills/dev-database/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
dev-database
description
数据库开发子类型规范 — Migration 安全策略 + Schema 变更审查

Dev Database Skill

触发条件

涉及数据库操作:Schema 变更(DDL)、Migration 文件、ORM 模型、查询优化、数据迁移。

执行规则

Migration 安全策略
操作类型要求
新增列DEFAULT 或 NULLABLE,禁止 NOT NULL 无默认值(避免锁表)
删除列必须先废弃(rename/注释),至少一个版本后再删除
修改列类型评估存量数据兼容性,准备回滚脚本
新建索引生产环境使用 CONCURRENTLY(PostgreSQL)或 ALGORITHM=INPLACE(MySQL)
CP 流程
  • CP2 必须包含:Schema ER 图 / 变更前后对比表 / 回滚方案
  • plan-review(两阶段门禁):PR-1 在 CP2 前自检,PR-2~PR-7 在 CP2→CP3 之间执行,PR-5③ Schema 变更属于此路径,不进 impact-review
  • CP3 必须包含:上线步骤(Migration 执行时机)+ 回滚触发条件

产出物

  • migrations/YYYYMMDD_description.{sql|ts|js} — Migration 文件
  • reports/requirements/ — 开发报告(含 Schema 变更说明)

关键约束

  • 🔴 禁止在 Migration 中写业务逻辑(纯 DDL + 数据修复)
  • 🔴 大表(>100万行)变更必须评估锁时间,提供在线变更方案
  • 🔴 数据库、MongoDB 或数据操作连接信息默认可按用户提供内容直写或沿用项目既有模式;只有用户或项目明确指定 config.local.json、env、secretRef 或 secret manager 时,才从对应入口读取,缺失文件或字段时提醒用户补齐
  • 🔴 数据补齐、迁移或跨环境写入必须执行 DataMutationPlan:范围来自显式清单、需求目录数据源或稳定业务键;跨环境写入不得直接用 source _id 匹配目标库,必须在目标环境重新唯一匹配并 dry-run 输出 source_id、target_id、缺失/重复清单;不能唯一匹配时阻断写库
  • 🔴 数据库配置、邮件模板、模块注册、推送配置、权限配置、字典配置等记录跨环境手动迁移必须执行 DatabaseRecordMigrationExportGate:只读源环境,导出主记录和引用记录的全字段 JSON/Extended JSON 备份,生成可执行 insert/upsert 脚本、执行顺序、引用完整性校验和目标 dry-run 说明;不得只给单条记录或截图说明
  • 🔴 一次性数据脚本默认执行 OneOffRequirementScriptPlacementGate:需要留档/复核时放入对应 requirement/bug/任务目录 scripts/;纯本地临时执行时须先通过 lifecycle constructor 分配 WorkspaceTempManifestV2,再写入 canonical workspace temp 的 runs/<project>/<producer>/<run-id>/local-scripts/。V1 manifest 只读兼容;禁止在任务目录另建 .tmp;只有长期复用、发布、维护或运维入口才进入项目通用 scripts/

Migration 执行后验证(F-13)

Migration 执行完成后须执行以下验证,完成后方可宣告任务完成:

验证项操作通过标准
Schema 一致性对比 ORM 模型与实际表结构列名/类型/约束完全一致
存量数据可用抽样查询受影响的行无报错,关键字段无 NULL 异常
索引生效EXPLAIN 关键查询新索引被使用,无全表扫描回退
回滚可用性验证回滚脚本语法(干运行)回滚脚本无语法错误

© devcodex-labs, 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

SKILL.md and 1 other file in content/skills/dev-database of devcodex-labs/devcodex.

  • SKILL.md
  • intent.json

Open the folder on GitHubat commit 1dd4525

Compare with similar skills

Dev Database 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.

Dev Database compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dev Database this skilldevcodex-labs/devcodex439—~482Automated safety check: PassAGPL-3.0
Evolving The Data ModelTriliumNext/Trilium38k—~2.1kAutomated safety check: PassAGPL-3.0
Hybrid Cloud Outboxesgetsentry/sentry45k—~4.8kAutomated safety check: PassCustom licence
Iptvnator Sqlite DB Worker4gray/iptvnator7.3k—~824Automated safety check: PassMIT
Replicate Video AdJingyi-Wu-Richael/replicate-video-ad1061 repos~1.6kAutomated safety check: PassNone
Content Create Hero Imageprisma/web1.1k—~6.9kAutomated safety check: PassNone

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
  • Hybrid Cloud Outboxes

    getsentry/sentry

    Official

    Guide for creating and maintaining outbox-based eventually consistent operations in Sentry.

    45k GitHub stars~4.8k tokensUpdated today
    DatabasesAuto-check passed
  • A skill your agent uses when changing Electron SQLite IPC, database-worker operations, request-scoped progress or cancellation, worker packaging, or runtime verification of non-EPG database work.

    7.3k GitHub stars~824 tokensUpdated today
    DatabasesAuto-check passed
  • Replicate Video Ad

    Jingyi-Wu-Richael/replicate-video-ad

    Analyze a reference video frame by frame and turn its visual grammar, story beats, dialogue, product reveal, proof sequence, and conversion structure into a production-ready ecommerce story-ad…

    106 GitHub starsUsed in 1 repo~1.6k tokens
    DatabasesAuto-check passed
  • Official

    A skill your agent uses when the operator wants a hero or meta image for a Prisma blog post; asks to create or generate a blog hero, cover, social card, Open Graph, or YouTube image; mentions cover…

    1.1k GitHub stars~6.9k tokensUpdated today
    DatabasesAuto-check passed
  • AI Partner Chat

    eze-is/ai-partner-chat

    基于用户画像和向量化笔记提供个性化对话。当用户需要个性化交流、上下文感知的回应,或希望 AI 记住并引用其之前的想法和笔记时使用。

    213 GitHub starsUsed in 1 repo~3k tokens
    DatabasesAuto-check passed

More from devcodex-labs/devcodex

All 70 skills in this repo
  • Accessibility I18n

    devcodex-labs/devcodex

    无障碍与国际化专家 Owner — 当任务涉及可访问性、键盘操作、焦点、屏幕阅读器、ARIA、语言地区、本地化、RTL、翻译资源、用户可见文案或多语言文档时使用;要求把包容性体验和本地化验证绑定到真实用户路径。

    439 GitHub stars~718 tokensUpdated 20 days ago
    Auto-check passed
  • AI Agent System Architecture

    devcodex-labs/devcodex

    AI Agent 系统架构专家 Owner — 当任务涉及 Agent 路由、工具调用、上下文管理、记忆、状态机、权限、人机协作、可观测性、回放验证或模型辅助治理时使用;要求把 Agent 行为设计成可解释、可恢复、可审计。

    439 GitHub stars~2.4k tokensUpdated 20 days ago
    Auto-check passed
  • API Contract Architecture

    devcodex-labs/devcodex

    API 契约架构专家 Owner — 当任务涉及 public API、HTTP/SDK/CLI 契约、版本兼容、错误模型、分页过滤、幂等、Schema、类型、迁移或消费者影响时使用;要求先冻结消费者契约,再设计实现与验证。

    439 GitHub stars~865 tokensUpdated 20 days ago
    Auto-check passed
  • Architecture Design

    devcodex-labs/devcodex

    架构设计文档编排 Owner — 当用户要求架构设计、系统设计、技术架构或可指导开发、Review 与任务拆分的完整方案时使用;要求从业务流程反推节点、状态、数据、一致性、异常补偿、ADR 与实施任务。

    439 GitHub stars~1.1k tokensUpdated 20 days ago
    Auto-check passed
  • Audit Common

    devcodex-labs/devcodex

    审查公共维度 G0~G5 + Profile Freshness Check — 所有 audit 子类型必先执行的基础维度层

    439 GitHub stars~4.1k tokensUpdated 20 days ago
    Auto-check passed
  • Audit Session

    devcodex-labs/devcodex

    审计工作流的跨会话状态机 — 在 <audit-root/.audit-state/<session-id.json 持久化轮次/发现项/收敛状态,支持 Token 中断后精准恢复

    439 GitHub stars~1.8k tokensUpdated 20 days ago
    Auto-check passed

Categories

Questions about Dev Database

What does Dev Database do?

数据库开发子类型规范 — Migration 安全策略 + Schema 变更审查. An agent skill from devcodex-labs/devcodex. Dev Database is an agent skill from devcodex-labs/devcodex.

When should I use Dev Database?

Dev Database fits situations like: databases work in your project.

How do I install Dev Database in Claude Code?

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

How do I install Dev Database in Codex?

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

Can I use Dev Database 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 devcodex-labs/devcodex --skill dev-database -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dev-database, .gemini/skills/dev-database, .github/skills/dev-database and .opencode/skills/dev-database in your project.

What does Dev Database need to run?

SKILL.md names no scripts, command-line tools or credentials: Dev Database is instructions for the agent only.

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

Dev Database 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 Dev Database use?

About 482 tokens (SKILL.md is roughly 1.9k 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 Dev Database?

Skills that share tags, products or a category with Dev Database: Evolving The Data Model (TriliumNext/Trilium, 38k stars), Hybrid Cloud Outboxes (getsentry/sentry, 45k stars), Iptvnator Sqlite DB Worker (4gray/iptvnator, 7.3k stars) and Replicate Video Ad (Jingyi-Wu-Richael/replicate-video-ad, 106 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dev Database?

devcodex-labs (a GitHub organization) maintains it in devcodex-labs/devcodex, which has 439 GitHub stars. The repository holds 70 skills in this directory. The repository was last updated on September 17, 2026.

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