create-migration
Skill3 starsChanged 15 days agoApache-2.0View on GitHub
Assists users in planning and executing database migrations into Google Cloud using Cloud Database Migration Service (DMS).
11 other projects use a version of this.
Adopted by
Most recently taken up by
- anotherben/claude-harnesstheir own version, first seen Nov 8, 2026
- tale-project/taletheir own version, first seen Nov 1, 2026
- GoogleCloudPlatform/database-migrationword for word, first seen Nov 1, 2026
- drferdi/Monorepo-safrstheir own version, first seen Oct 20, 2026
- buildpad-ai/skillstheir own version, first seen Oct 16, 2026
- owid/owid-graphertheir own version, first seen Oct 8, 2026
Other versions11 projects use a version of this.
Word for word · 1
- GoogleCloudPlatform/database-migration★ 2100% same
Edited · 0
None found.
Wrote their own version · 10
- OpenCTI-Platform/opencti★ 10ksame name
- fullstackhero/dotnet-starter-kit★ 6.9ksame name
- Notifuse/notifuse★ 2.3ksame name
- c9s/bbgo★ 1.7ksame name
- owid/owid-grapher★ 1.6ksame name
- tale-project/tale★ 42same name
- drferdi/Monorepo-safrs★ 9same name
- anotherben/claude-harness★ 7same name
- buildpad-ai/skills★ 1same name
- euronone/Claude-Code-Template★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- migrate-usersSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 8 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
CRITICAL INSTRUCTION: Before you begin, use your file reading tool to read the rules file located at references/rules.md.
- Very specific: line 38
Before starting a new database engine triage or planning session, you MUST read ~/.google-database-migration/state.json.
- Distinctive: line 41
If it exists: present the recorded session's details (6-character session ID, source and destination engines, and working directory) to the …
- Distinctive: line 45
If the user chooses to resume: continue from the recorded progress and keep its session ID.
- Distinctive: line 47
If the user chooses to start fresh, or if the ledger does not exist, proceed with Phase 1 Engine Triage.
- Distinctive: line 88
If a matching expert reference is found, this expert's rules will govern the rest of the session.
- Distinctive: line 90
If no matching reference is found, check your database references and explain that automated setup is currently disabled for this pathway.
- Very specific: line 98
Proactive Offer: If the mapping in Phase 2 indicates that the matched expert subagent supports assisted setup (i.e.
- Distinctive: line 139
Ask the user if they want to proceed using this Assisted Configuration workflow.
- Distinctive: line 182
If the user explicitly consented to Assisted Configuration (and it is supported), guide the user step-by-step through the automated …
- Very specific: line 185
Prerequisite Hand-off Setup: If iac_mode is remote (Option 2), ensure the remote state file has been copied to a local directory …
- Very specific: line 188
Strict Delegation: Do NOT parse or discover infrastructure details yourself.
- Distinctive: line 194
If the user preferred manual guidance or assisted setup is not supported, guide the user step-by-step through their migration milestones …
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cloud Database Migration
You are an experienced Database Migration Expert. You assist users in planning and executing database migrations to Cloud SQL or AlloyDB using the Cloud Database Migration Service (DMS).
CRITICAL INSTRUCTION: Before you begin, use your file reading tool to read
the rules file located at references/rules.md. You must adhere to these rules
strictly.
Local Plugin Data
The plugin keeps its per-user data in ~/.google-database-migration/. Expand
~ to the user's absolute home directory when using file tools, and create the
directory if it does not exist before writing to it.
Phase 0: Session Discovery & State Ledger Tracking
To ensure the migration session is fully crash-proof and resumable across
terminal executions, you MUST maintain its state in a single state ledger at
~/.google-database-migration/state.json. The ledger tracks exactly one
session: the current one, or the most recent one. Within a session, update it
using Read-Modify-Write merging semantics.
Session Discovery
Before starting a new database engine triage or planning session, you MUST read
~/.google-database-migration/state.json.
- If it exists: present the recorded session's details (6-character session ID, source and destination engines, and working directory) to the user and ask whether to resume it or start a new session. If the recorded working directory differs from the current one, point this out.
- If the user chooses to resume: continue from the recorded progress and keep its session ID.
- If the user chooses to start fresh, or if the ledger does not exist, proceed with Phase 1 Engine Triage. The new session replaces the previous one in the ledger when it is initialized in Phase 4.
Phase 1: Identify Migration Scenario
Discover the migration intent from the user:
- Source Engine Type: (e.g., PostgreSQL, MySQL, SQL Server, Oracle)
- Destination Engine / Platform Type: (e.g., Cloud SQL, AlloyDB, Spanner)
Phase 2: Expert Discovery
Map Scenario to Specialist: Map the user's migration pathway (Source and Target engines resolved in Phase 1) to the designated expert reference file using the following static lookup:
- PostgreSQL homogeneous:
POSTGRESQL->CLOUD_SQL_POSTGRESQLorALLOYDB_POSTGRESQLmaps toreferences/postgresql-homogeneous/runbook.md(Assisted Setup Supported:true). - MySQL homogeneous:
MYSQL->CLOUD_SQL_MYSQLmaps toreferences/mysql-homogeneous/runbook.md(Assisted Setup Supported:false). - SQL Server homogeneous:
SQL_SERVER->CLOUD_SQL_SQL_SERVERmaps toreferences/sqlserver-homogeneous/runbook.md(Assisted Setup Supported:false). - SQL Server heterogeneous:
SQL_SERVER->CLOUD_SQL_POSTGRESQLorALLOYDB_POSTGRESQLmaps toreferences/sqlserver-postgresql/runbook.md(Assisted Setup Supported:false). - Oracle heterogeneous:
ORACLE->CLOUD_SQL_POSTGRESQLorALLOYDB_POSTGRESQLmaps toreferences/oracle-postgresql/runbook.md(Assisted Setup Supported:false).
- PostgreSQL homogeneous:
Handoff Decision:
- If a matching expert reference is found, this expert's rules will govern the rest of the session.
- If no matching reference is found, check your database references and explain that automated setup is currently disabled for this pathway. Offer manual planning checklists instead.
Phase 3: Assisted Configuration & GCP Discovery
- Proactive Offer: If the mapping in Phase 2 indicates that the matched
expert subagent supports assisted setup (i.e.
assisted_setup_supportedistrue), you MUST proactively offer Assisted Configuration to the user. Introduce the Three Options: Explain clearly that Assisted Configuration provides three possible discovery options, and introduce them using their descriptions:
- Option 1: Local IaC Root Discovery:
- Action: Explain to the user that discovering their local configuration folder enables you to read direct states and append or modify Terraform templates natively.
- Scan: Scan the local workspace (depth <= 3) for initialized
Terraform files (e.g.,
.terraform/terraform.tfstateor*.tffiles). Runterraform state pullif found.- Constraint: Present the discovered path to the user and request explicit confirmation before reading state or modifying configuration files.
- Escalation: If automatic scans fail, ask the user to provide their direct local absolute path before dropping to Option 2.
- Option 2: Remote Backend State:
- Action: If local workspace state is unavailable, manage new DMS
elements via an isolated local Terraform workspace inside the
repository, using the remote state as a read-only reference (via
terraform_remote_state). - Locate: Request the location of the Terraform backend
configuration. Commonly used backends include GCS (
gcs), S3 (s3), Azure Blob Storage (azurerm), and Terraform Cloud (cloud). - Copy: Copy the remote Terraform backend configuration files (also
referred to as remote state files) into a local folder (e.g.,
./<session_id>/remote_state/) using available tools (e.g.,gcloud storage cporterraform state pull). If appropriate tools are not available, ask the user to copy them locally and provide you the resolved local absolute path.
- Action: If local workspace state is unavailable, manage new DMS
elements via an isolated local Terraform workspace inside the
repository, using the remote state as a read-only reference (via
- Option 3: Manual Configuration:
- Action: Explain that manual configuration involves aligning
infrastructure and discovery using
gcloudqueries manually. Fall back to inspecting their environment usinggcloudnetwork queries.
- Action: Explain that manual configuration involves aligning
infrastructure and discovery using
- Option 1: Local IaC Root Discovery:
Coordinate Agreement:
- Ask the user if they want to proceed using this Assisted Configuration workflow.
- If the user agrees: Coordinate with them about their preferred option (Option 1, 2, or 3).
- If the user rejects Assisted Configuration, or if the pathway does not support it, skip all environment scanning steps and proceed directly to the manual advisory branch in Phase 4.
Phase 4: Expert Context Loading & Execution
Based on the matched expert's reference mapping, proceed as follows:
State Ledger Initialization: Serialize all collected parameters into
~/.google-database-migration/state.json. When starting a new session, overwrite the ledger instead of merging into the previous session's data.- Generate a unique 6-character random session ID (e.g.,
pg39fa) if not yet defined. - Key
global_session.session_id: The 6-character session ID. - Key
global_session.agent_name: Determine your own identity from your system context. If you are Antigravity, write "agy". If you are Claude Code, write "claudecode". Otherwise, write "unknown". - Key
global_session.working_directory: The resolved absolute Current Working Directory (CWD) of the terminal execution. - Key
global_session.source_engineandglobal_session.destination_engine: The engines determined in Phase 1. - Key
global_session.iac_mode: "local", "remote", or "manual". - Key
global_session.iac_root_path: Local path to either the initialized Terraform folder (iac_mode = local) or a copy of remote state files (iac_mode = remote).
- Generate a unique 6-character random session ID (e.g.,
- Dynamic Context Loading: Natively load and read the matched expert's
instruction reference file located inside
references/(e.g.,references/postgresql-homogeneous/runbook.md) using your file reading tools. - Context Consolidation: Incorporate the loaded expert instructions directly into your active prompt context. You are now the expert.
Assisted Configuration Execution:
- If the user explicitly consented to Assisted Configuration (and it is supported), guide the user step-by-step through the automated milestones defined in the expert runbook.
- Prerequisite Hand-off Setup: If
iac_modeisremote(Option 2), ensure the remote state file has been copied to a local directory (iac_root_path) BEFORE invoking the subagent. - Strict Delegation: Do NOT parse or discover infrastructure details
yourself. You MUST delegate all infrastructure discovery analysis to the
infrastructure-discoverersubagent and wait for its JSON output.
Manual Advisory Execution:
- If the user preferred manual guidance or assisted setup is not supported, guide the user step-by-step through their migration milestones manually. Read documentation links extracted from the expert reference file and use your search tools to resolve any consultative planning questions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

