data-tier-cutover

data-tier-cutover is a skill for Claude Code from lukasrepublic/agentic-foundry. It costs 233 tokens per session (1,741 once invoked), scanned A, original, MIT.

A read-only procedure for moving an application's SQL database and cache from self-managed servers to a managed serverless service. It chooses between restoring a snapshot and continuously replicating data before a fast switch.

In plain words
What is it for?
Use it to prepare the migration decision, inventory, validation gate, and operator-run cutover instructions for stateful application data.
Why use it?
It prevents an unsafe cutover by requiring information about downtime, shared production data, and whether the source can be replicated.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the foundry plugin — 84 skills, 8 agents, 11 hooks, 1 MCP server shipped together

Good fit Use it to prepare the migration decision, inventory, validation gate, and operator-run cutover instructions for stateful application data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lukasrepublic/agentic-foundry/data-tier-cutover
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 lukasrepublic/agentic-foundry --skill data-tier-cutover
Clone the repo
git clone --depth 1 https://github.com/lukasrepublic/agentic-foundry

Made for: Claude Code.

Or install foundry, the plugin that ships this one along with the rest of its 84 skills, 8 agents, 11 hooks, 1 MCP server.

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 data-tier-cutover

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/data-tier-cutover/github.svg)](https://agentmods.dev/skills/lukasrepublic/agentic-foundry/data-tier-cutover)
Your own site
<a href="https://agentmods.dev/skills/lukasrepublic/agentic-foundry/data-tier-cutover"><img src="https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/data-tier-cutover/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 data-tier-cutover

Your own site · 80×15
<a href="https://agentmods.dev/skills/lukasrepublic/agentic-foundry/data-tier-cutover"><img src="https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/data-tier-cutover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 233 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,741 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.00233 $0.01741
Opus 5.5 $0.00093 $0.00696
Sonnet 5.5 $0.00047 $0.00348
Haiku 4.5 $0.00023 $0.00174

Measured 1mo ago against content hash 707d386074fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-tier-cutover 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 1mo 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.

skills/data-tier-cutover/SKILL.md · 94 lines

How it starts

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

data-tier-cutover — the stateful-tier decision model, inventory, gate, runbooks, and review hook

Migrating the stateful tier is the hardest step of a platform migration and is categorically different from the stateless id-* flow. This skill encodes the decision model and the four evidence-backed traps so they are driven, not re-derived. Read-only / never-apply: this skill authors the plan artifact + runbook; every mutating step in the emitted runbook is operator-run (the id-apply posture discipline). The merge floor — the adopter's branch protection + CI checks (see docs/merge-floor.md) — stays the merge authority.

Stage A — the cutover-mechanism decision tree (fail-closed)

  • Inputs (all three required): downtime_tolerance (window_ok | near_zero), source_shared_with_prod (bool), source_is_replicable (bool). A missing input is a STOP — never assume tolerance.
  • window_ok AND not shared ⇒ snapshot-restore (the simple path): a snapshot restore PRESERVES the source DB users and passwords — the app keeps its credentials and only the host string changes.
  • near_zero OR shared-with-prod ⇒ CDC-replicate + fast-promote, and the plan artifact MUST carry the three required CDC caveat items: sequences are NOT replicated by logical CDC — resync them at promote; the cache cannot be slaved cross-environment — provision it FRESH and warm it; define a replication-lag SLA before promote (stale reads until promote).
  • Record the chosen mechanism + rationale into the per-app cutover plan artifact so the operator and the PR reviewers see WHY, not just WHAT.

Stage B — connection-pool inventory (from application source, never the deploy layer)

  • Read the APPLICATION SOURCE for the data-access topology and record a matrix row per app: {pool_shape: single | dual, ro_endpoint_key, rw_endpoint_key, sticky_read_your_writes: bool, orm/driver}. The deploy/gitops layer is an UNRELIABLE source for this — a dual read/write pool or a sticky read-your-writes default is only visible in code, and guessing from the deploy layer produced a wrong matrix on the evidence engagement.
  • The matrix drives feasibility: dual-pool apps can take a phased read-first cutover; a single-pool app cannot. Missing/ambiguous topology ⇒ default-deny — STOP and ask; never guess (a wrong guess silently reads stale data or connects to the wrong endpoint).

Read the full file on GitHub · 94 lines

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. 1mo ago First seen · 94 lines · 233 tokens per session scan A 707d386074fc

Subscribe to this mod's changes

data-tier-cutover is a skill published in the GitHub repository lukasrepublic/agentic-foundry (1 stars, last pushed 3d ago), licensed MIT. It adds 233 tokens to every session and 1,741 once invoked, about $0.0009 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.

Related

Other skills, from other repositories

forge-infra

Build production-grade infrastructure as code for a service or project. Use when asked to "set up infra", "provision infrastructure", "create cloud resources", "IaC for this project", "terraform for this", or "deploy this service".

tonone-ai/tonone · 53 tokens

flux-recon

Database reconnaissance — full inventory of schema, migrations, data volume, backups, connection pooling, and query patterns. Use when asked to "assess this database", "understand the schema", or "database health check".

tonone-ai/tonone · 48 tokens

forge-audit

Audit existing infrastructure for security issues, waste, and misconfigurations. Use when asked to "audit my infra", "check cloud setup", "infra review", "are we wasting money", "security check on infra", or "review my terraform".

tonone-ai/tonone · 54 tokens

forge-cost

Audit cloud infrastructure costs and produce a concrete optimization plan with specific changes and estimated savings. Use when asked to "how much is this costing", "reduce cloud spend", "cost optimization", "are we overpaying", "cloud bill", or "budget for this infra".

tonone-ai/tonone · 58 tokens

relay-deploy

Set up a complete deployment configuration — Dockerfile, deployment manifest, environment config, and rollback procedure. Use when asked about "deployment setup", "how do I deploy this", "deployment strategy", or "rollback plan".

tonone-ai/tonone · 48 tokens

flux-migrate

Build zero-downtime database migrations — forward SQL, rollback SQL, deployment sequence. Use when asked to "write migration", "schema change", "add column", "rename table", "drop column", or "migrate safely".

tonone-ai/tonone · 51 tokens