release-db-config-sync

release-db-config-sync is a skill for Claude Code from Prismer-AI/PrismerCloud. It costs 91 tokens per session (4,018 once invoked), scanned A, original, MIT.

A read-only release check that compares remote database migrations and Nacos configuration keys before a test release. Nacos is a service for storing and distributing application configuration.

In plain words
What is it for?
Use it to calculate a migration plan and compare configuration-key dumps before publishing a test release.
Why use it?
It reveals pending database changes or missing configuration without writing to the database or configuration service. It also prevents teams from bypassing the migration record with direct database edits.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to calculate a migration plan and compare configuration-key dumps before publishing a test release.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prismer-ai/prismercloud/release-db-config-sync
About the project

Prismer Cloud is an infrastructure layer for AI agents that provides shared learning, compressed context, persistent memory, collaboration, messaging, tasks, identity, and workspaces. It is for agents and the people building or using long-running agent systems that need information and outcomes to persist across sessions. The catalogue entries provide skills, hooks, agents, instructions, and a plugin for using Prismer Cloud.

Prismer-AI/PrismerCloud · 1,386 stars · on GitHub · prismer.cloud

Install

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.

Any agent
npx skills add Prismer-AI/PrismerCloud --skill release-db-config-sync
Clone the repo
git clone --depth 1 https://github.com/Prismer-AI/PrismerCloud

Made for: Claude Code.

Wrote 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.

agentmods badge for release-db-config-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/prismer-ai/prismercloud/release-db-config-sync/github.svg)](https://agentmods.dev/skills/prismer-ai/prismercloud/release-db-config-sync)
Your own site
<a href="https://agentmods.dev/skills/prismer-ai/prismercloud/release-db-config-sync"><img src="https://agentmods.dev/badge/skills/prismer-ai/prismercloud/release-db-config-sync/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.

agentmods 80×15 button for release-db-config-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/prismer-ai/prismercloud/release-db-config-sync"><img src="https://agentmods.dev/badge/skills/prismer-ai/prismercloud/release-db-config-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,018 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.04018
Opus 5.5 $0.00036 $0.01607
Sonnet 5.5 $0.00018 $0.00804
Haiku 4.5 $0.00009 $0.00402

Measured 17d ago against content hash 801f9e24445f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

release-db-config-sync 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 17d 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.

sdk/apc/skills/release-db-config-sync/SKILL.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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(直接判红)

  • ❌ 迁移 dry-run 报 blocked(真脚本失败 / 缺凭证)时,改用别的路径灌库绕过去。真脚本 exit 非 0 = 连不上 / 缺 REMOTE_MYSQL_*,是要修的前置,不是要绕的门。
  • ❌ 有 pending 迁移(staged)就当没事发版。staged(exit 3)意味着远端账本落后,未审批 apply 前不该 tag。
  • ❌ key-diff skipped 说成"已核对"。没给 dump 文件就是没比,别冒充。

工具契约(签名以此为准)

apc 不在 PATH——在仓库根用 npx tsx sdk/apc/bin/apc.ts <sub>。

命令 作用 退出码
npx tsx sdk/apc/bin/apc.ts release db-config-sync [--ref <dump>] [--cur <dump>] [--json] 真跑 sync-test-migrations.ts --dry-run(本机替身指向本地 replica,永不写远端)+ 对两份 Nacos dump 算 key 差集 0 green(无差异)· 3 staged(有 pending / 缺 key)· 1 blocked(真脚本失败 / 缺凭证)

--json 字段(名以此为准):

  • 顶层:{ verb:'db-config-sync', decision, migration, keyDiff, blockers:[], staged:[] }
  • migration:{ exitCode, pending:[<sql文件名>], stderr }(exitCode 是真脚本退出码;pending 是真脚本 fs 枚举 ⇄ _migrations 账本比对得出的待同步迁移)
  • keyDiff:{ status:'skipped', reason } 或 { status:'computed', missing:[], extra:[], common }(missing = 目标环境缺的 key,需补齐;extra 不阻塞,仅报告)

Workflow

1. 跑迁移 dry-run + key-diff

# 只算迁移(不给 dump 时 key-diff 诚实 skipped):
npx tsx sdk/apc/bin/apc.ts release db-config-sync --json > /tmp/dbsync.json; D=$?
echo "db-config-sync exit=$D"

Read the full file on GitHub · 187 lines

Files

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.

Changes

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.

  1. 17d ago First seen · 187 lines · 91 tokens per session scan A 801f9e24445f

Subscribe to this mod's changes

release-db-config-sync is a skill published in the GitHub repository Prismer-AI/PrismerCloud (1,386 stars, last pushed 2d ago), licensed MIT. It adds 91 tokens to every session and 4,018 once invoked, about $0.0004 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-09-29.

Related

Other skills, from other repositories