sql-migration-manager

sql-migration-manager is a skill for Claude Code, Codex from eric861129/SKILLS_All-in-one. It costs 51 tokens per session (836 once invoked), scanned A, original, MIT.

A guide for recording incremental SQL database changes, meaning updates applied after the original database setup. It covers adding new skills and updating existing skill records in one migration file.

In plain words
What is it for?
Generate SQL for new or changed skills, update only changed fields, add date labels, and prepend the latest changes to the incremental updates file.
Why use it?
It keeps later database changes separate from the initial setup and preserves a clear, date-ordered history of updates.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Generate SQL for new or changed skills, update only changed fields, add date labels, and prepend the latest changes to the incremental updates file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eric861129/skills_all-in-one/sql-migration-manager
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 eric861129/SKILLS_All-in-one --skill sql-migration-manager
Clone the repo
git clone --depth 1 https://github.com/eric861129/SKILLS_All-in-one

Made for: Claude Code, Codex.

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 sql-migration-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/eric861129/skills_all-in-one/sql-migration-manager.svg)](https://agentmods.dev/skills/eric861129/skills_all-in-one/sql-migration-manager)
Your own site
<a href="https://agentmods.dev/skills/eric861129/skills_all-in-one/sql-migration-manager"><img src="https://agentmods.dev/badge/skills/eric861129/skills_all-in-one/sql-migration-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 836 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.00051 $0.00836
Opus 5 $0.00026 $0.00418
Sonnet 5 $0.00010 $0.00167
Haiku 4.5 $0.00005 $0.00084

Measured 8d ago against content hash d1b9550730d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

sql-migration-manager 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 8d 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.

.agent/skills/sql-migration-manager/SKILL.md · 69 lines

What it actually says

SQL Migration Manager (資料庫遷移管理)

此技能定義了如何為 SKILLS_All-in-one 平台產生增量資料庫更新指令,並將其集中記錄於單一 SQL 檔案中,確保異動軌跡清晰且易於追蹤。

🚀 核心工作流 (Migration Workflow)

Step 1: 判定異動類型 (Identify Action)

  1. INSERT (新增):當 skill-manager 執行 Onboard 階段時。
  2. UPDATE (更新):當 skill-updater 偵測到版本差異並執行 Update 階段時。

Step 2: 產出 SQL 語法 (Generate SQL)

根據 database/init_skills.sql 的資料表結構,生成對應的 SQL。

  • 新增技能範本

    INSERT INTO Skill (id, name, nameZh, description, descriptionZh, author, category, tags, downloadCount, createdAt, version, githubUrl, folderName)
    VALUES ({id}, '{name}', '{nameZh}', '{description}', '{descriptionZh}', '{author}', '{category}', '{tags}', 0, '{today}', '{version}', '{githubUrl}', '{folderName}');
    
  • 更新技能範本 (僅針對變更欄位):

    UPDATE Skill SET
      version = '{new_version}',
      description = '{new_desc}',
      descriptionZh = '{new_desc_zh}',
      updatedAt = '{today}'
    WHERE name = '{name}';
    

Step 3: 更新增量 SQL 檔案 (File Prepend)

  1. 目標檔案database/incremental_updates.sql
  2. 寫入邏輯 (Prepending)
    • AI Agent 必須將新的 SQL 指令插入到檔案的 最頂部 (Top)
    • 日期分組:若當前日期與檔案頂部日期不同,需插入新的日期標籤(如 --YYYY/MM/DD)。
    • 排序:最新的異動日期應出現在檔案最上方。

範例結構

--2026/03/11
INSERT INTO Skill ... (新異動)

--2026/03/09
INSERT INTO Skill ... (舊異動)
UPDATE Skill SET ...

🚦 規則與限制 (Guardrails)

  1. 禁止修改 init_skills.sql:該檔案目前僅作為「初始環境建立備份」,不應手動或自動修改。
  2. ID 唯一性檢查:在產出 INSERT 語句前,必須讀取 src/data/skills.ts,抓取最新的 id,並確保 ID 沒有重複。
  3. JSON 轉義:處理 tags 欄位時,必須確保 JSON 字串內的引號已正確轉義。
  4. 編碼保護:寫入 incremental_updates.sql 時,必須確保為 UTF-8 (No BOM)

📝 執行紀錄範本

  • Migration: 已將 SQL 異動記錄至 database/incremental_updates.sql (日期標籤: --2026/03/09)。
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. 8d ago First seen · 69 lines · 51 tokens per session scan A d1b9550730d7

Subscribe to this mod's changes

sql-migration-manager is a skill published in the GitHub repository eric861129/SKILLS_All-in-one (52 stars, last pushed 4mo ago), licensed MIT. It adds 51 tokens to every session and 836 once invoked, about $0.0003 per session on Opus 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-30.

Related

Other skills, from other repositories

clickhouse-knowledge-patch

Use this skill when writing, reviewing, upgrading, or operating ClickHouse SQL and server configurations. Start with the compatibility-sensitive items below, then load the topic reference that matches the task.

Nevaberry/nevaberry-plugins · 9 tokens

alembic-knowledge-patch

Use this skill when changing an Alembic project, reviewing generated migrations, upgrading Alembic, extending its CLI or operation system, or diagnosing revision graph and backend-specific DDL behavior.

Nevaberry/nevaberry-plugins · 11 tokens

cloudflare-d1-knowledge-patch

Use this skill when designing, implementing, migrating, operating, or debugging Cloudflare D1 databases. Check the project’s Wrangler configuration, binding usage, database generation, account plan, and remote-versus-local command flags before applying guidance.

Nevaberry/nevaberry-plugins · 13 tokens

drizzle-knowledge-patch

Use this skill when work touches Drizzle SQL identifiers or aliases, Drizzle Kit module loading, or Zod schemas generated from Drizzle tables.

Nevaberry/nevaberry-plugins · 10 tokens

duckdb-knowledge-patch

Use this skill when writing DuckDB SQL, upgrading an existing database, working with external files or lakehouse formats, configuring the CLI, or using spatial data. Inspect the project's DuckDB version and load the relevant topic reference before relying on defaults, return types, parser behavior, storage…

Nevaberry/nevaberry-plugins · 9 tokens

lineage

Use when user invokes /lineage with a column name (optionally qualified with table/schema). Also triggers on "trace this column", "where does X come from", "what reads from Y table". Traces column-level data lineage through SQL, Kafka, Spark, JDBC, and ORM codebases. Produces a structured lineage path with confidence…

harnessprotocol/harness-kit · 94 tokens