Individual skill
release-db-config-sync
Compute the remote DB migration + Nacos config diff before a test release — apc release db-config-sync really spawns sync-test-migrations.ts --dry-run (never a stub) and diffs Nacos key dumps, stopping at the write boundary. green(0) no diff · staged(3) pending migrations/missing keys await approval · blocked(1) real script failed. Diff only, never writes the remote.
sdk/apc/skills/release-db-config-sync/SKILL.md
Source commit f83b859a173802a73d978197e92328ab2bf57a6e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 9, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,364
- Repository last updated
- Oct 22, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-communication Repository topic
- agent-memory Repository topic
- ai-agents Repository topic
- claude Repository topic
- cursor Repository topic
- docker Repository topic
- knowledge-base Repository topic
- llm-tools Repository topic
- mcp Repository topic
- mcp-server Repository topic
- testing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
Read excerpt
# release-db-config-sync
发版前算清**远端 DB 迁移**与 **Nacos 配置**的差异(`apc/01` §2 db-config-sync,收口步 3/4)。这是治 **R3**("DB sync 走桩、`writes:0` 换马甲冒充已同步")的真机制:它**真 spawn** `scripts/ops/sync-test-migrations.ts --dry-run`——真解析凭证、真连库、真算迁移计划——退出码由真脚本决定,**绝不注入桩**。Nacos 侧对两份 key dump 算真差集。**dry-run 永不写库、不写真 Nacos**——止于写入边界,真 apply 走审批后的远端路径。
**什么时候用**:`release-preflight` 绿之后、`release-tag` 之前,确认远端 test 环境的迁移账本和配置 key 都对齐了才发版。
## 承重纪律(先记死)
- **事故红线(memory / `apc/01` 开头)**:prod 曾因 Navicat 结构 diff 绕过迁移账本灌库出事故(丢回填 / 半应用)。**一切 DB sync 必须走账本,diff 工具只做审计不做写入。** 本 skill 就是账本路径的收口——**绝不教你拿 Navicat / 裸 SQL 去改远端**。
- **本 skill 只 dry-run**:算差异、出计划、停在写入边界。真 apply(把 pending 迁移打进 test RDS、把缺失 key 补进 Nacos)是**审批后**的远端动作(本机替身口径下 = M5),不由本 skill 执行。
- **别把桩当验过**:本机替身下 Nacos fetch 未接线时,key-diff 会**诚实标 `skipped`**(真路径 = M5)。看到 `skipped` 就照实报 ⬜,别写成"配置已核对无差异"。
## Anti-pattern(直接判红)