Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add kanfu-panda/pdlc-skills --skill pdlc-db-migrategit clone --depth 1 https://github.com/kanfu-panda/pdlc-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kanfu-panda/pdlc-skills/pdlc-db-migrate)<a href="https://agentmods.dev/skills/kanfu-panda/pdlc-skills/pdlc-db-migrate"><img src="https://agentmods.dev/badge/skills/kanfu-panda/pdlc-skills/pdlc-db-migrate/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kanfu-panda/pdlc-skills/pdlc-db-migrate"><img src="https://agentmods.dev/badge/skills/kanfu-panda/pdlc-skills/pdlc-db-migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.03687 |
| Opus 5.5 | $0.00014 | $0.01475 |
| Sonnet 5.5 | $0.00007 | $0.00737 |
| Haiku 4.5 | $0.00003 | $0.00369 |
Grade A, and why
pdlc-db-migrate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 286 lines — stays where its author put it; the contents beside it link to each section on GitHub.
数据库迁移管理
⛔ IRON LAW · 不可违反的硬门禁(工具型命令)
本命令不是主链路上的阶段:不追加 history,不改 current_stage / next_step / last_phase_result,也不为此分配功能ID。以下规则不可协商:
- 文件必须落盘:正文要求创建的文件必须作为实际文件写入磁盘,不可仅在对话中输出(只要求在对话里输出的,照正文办)。
- 自检必须执行:产出后按本命令的自检项逐项核对,不得以"已经很好了"为由跳过。
- 防循环:修复只做一次,不递归。修不了的问题记进报告,继续往下走。
违反任一条 = 立即中止当前命令,输出违规详情,等待人工介入。
根据 db-design 文档管理数据库迁移脚本,支持生成、执行、回滚和状态查看。
子命令解析
从本命令的参数中解析子命令和选项:
| 子命令 | 格式 | 说明 |
|---|---|---|
generate <描述> |
根据 db-design 文档生成版本化迁移脚本(up + down) | |
status |
查看迁移状态,列出已执行/待执行的迁移 | |
up |
执行所有待执行的迁移 | |
down [N] |
回滚最近 N 个迁移(默认 1) | |
diff <功能名> |
对比 db-design 文档与现有迁移脚本,生成增量迁移 |
如果未提供子命令或子命令无法识别,输出以上帮助信息后停止。
PDLC 前置检查(仅 generate 和 diff 子命令)
当子命令为 generate 或 diff 时执行:
- 从用户输入中提取功能名称关键词
- 在
docs/02_design/database/目录下搜索包含该关键词的数据库设计文档- 匹配新格式:
F<日期>-<编号>-*<关键词>*-db.md - 匹配旧格式:
YYYYMMDD-*<关键词>*-db.md - 同时检查文件内容中是否包含该关键词
- 匹配新格式:
- 未找到 → 输出以下信息后立即停止,不继续执行:
⛔ PDLC 守卫:未找到与「<功能名>」相关的数据库设计文档。 迁移脚本必须基于已有的数据库设计。请先运行: 👉 /pdlc-db-design <设计目标> - 找到 → 提取功能ID(如
F20260326-090000),读取该设计文档内容,继续执行
先探测项目布局(不要套用写死的目录)
下文出现的 backend/services/、frontend/web/ 等路径只是空项目时的默认布局。动手创建或扫描目录之前,先看项目实际长什么样:
- monorepo 标志:
pnpm-workspace.yaml、turbo.json、nx.json、lerna.json、package.json的workspaces、go.work、Cargo.toml的[workspace]、settings.gradle(.kts)的include→ 按其中声明的目录(如apps/、packages/、services/、crates/)理解布局 - 已有单元的位置:在
backend/services/、services/、apps/、packages/、cmd/、crates/下找已存在的服务 / 应用,新单元放在同级,命名与目录结构照着已有的来 - 单体与全栈框架:只有一个
src/,或是框架默认结构(manage.py+ 各 app、Rails 的app/、Next.js 的app//pages/、Spring Boot 单模块)→ 按框架约定放,不要新建services/一类平行目录 - 空项目或判断不了 → 才用下文的默认布局;执行前把将要创建的路径列给用户确认(
--autonomous下记入auto_decisions[])
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 13d ago Changed d6da0ce3c4b1
- 17d ago Changed · +28 lines · +23 tokens per session be89f645650a
- 18d ago Changed · +1 lines 08cd8cfd681f
- 1mo ago Changed · +58 lines f1a67f47aa13
- 1mo ago First seen · 199 lines · 11 tokens per session scan A 94ffc1c56f07
pdlc-db-migrate is a skill published in the GitHub repository kanfu-panda/pdlc-skills (18 stars, last pushed 13d ago), licensed MIT. It adds 34 tokens to every session and 3,687 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
postgres-database-migration
Use this skill for planning, testing, and safely executing PostgreSQL schema migrations — especially when working with production data or shared databases. Trigger when user asks to: Test a schema migration before applying it to production Add, remove, or rename columns safely on a live table Change a column's data…
setup-timescaledb-hypertables
Use this skill when creating database schemas or tables for Timescale, TimescaleDB, TigerData, or Tiger Cloud, especially for time-series, IoT, metrics, events, or log data. Use this to improve the performance of any insert-heavy table. Trigger when user asks to: Create or design SQL schemas/tables AND…
timescaledb-hyperfunctions
Use this skill when writing analytical SQL over time-series data with the TimescaleDB Toolkit (timescaledbtoolkit extension) hyperfunctions: approximate percentiles, statistical summaries, time-weighted averages, counter/gauge rates, uptime/heartbeat tracking, state durations, OHLC candlesticks, approximate distinct…
design-postgis-tables
Comprehensive PostGIS spatial table design reference covering geometry types, coordinate systems, spatial indexing, and performance patterns for location-based applications.
migrate-postgres-tables-to-hypertables
Use this skill to migrate identified PostgreSQL tables to Timescale/TimescaleDB hypertables with optimal configuration and validation. Trigger when user asks to: Migrate or convert PostgreSQL tables to hypertables Execute hypertable migration with minimal downtime Plan blue-green migration for large tables Validate…
pgvector-semantic-search
Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…