/wp-db-migrate:ls-wp-db-preflightfrom wp-db-migrate
Inspect WordPress SQL exports and local Studio prerequisites before migration. Use for dependency checks, table inventories, source URLs and prefix compatibility without importing data.
Ships in wp-db-migrate. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read the parent skill for the shared operating contract. Resolve
this sub-skill's directory (in Claude Code, ${CLAUDE_SKILL_DIR}) and go up two
levels to the repository root. Set REPO to that absolute path in the command
examples. Never assume the current working directory is this checkout.
Establish DUMP (an absolute path to an uncompressed MySQL-format .sql) and
SITE (the requested local Studio site). If the input is compressed, extract a
working copy without replacing the original. Obtain a remote export only if the
user has authorised remote access; a site URL alone is not SSH configuration.
node --version
studio --version
studio import --help
studio export --help
node "$REPO/lib/sql-tool.cjs" tables "$DUMP" --json
node "$REPO/lib/sql-tool.cjs" site-urls "$DUMP" --studio-site "$SITE" --json
Use command exit codes and JSON findings together: sql-tool returns 0 for pass,
1 for findings requiring review, and 2 for usage or execution errors. Capture and
review each result rather than chaining them with && and losing later findings.
If the target does not exist, inspect the dump without --studio-site, then resolve
whether the user wants a new Studio site before creating it.
Report table sizes/rows, prefixes, source URL candidates, missing tools and any
multisite or prefix mismatch. Preserve core content tables such as postmeta;
size alone is not a reason to exclude them. Choose exclusions in
prepare.
The legacy scripts/preflight-check.sh checks additional tools and a fixed
~/.studio path and may stop early. Do not treat it as a complete dependency audit.
Local Studio commands use Studio's bundled WP-CLI; standalone wp is only needed
for workflows that actually call it, such as a remote WP-CLI export.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lightspeedwp/ls-wp-db-migrate --plugin wp-db-migrate6 skills in this plugin
/ls-wp-db-migratePrepare and migrate MySQL or MariaDB WordPress exports into local WordPress Studio sites, including table analysis, sanitisation, URL replacement, verification and failed-import recovery. Use for staging-to-local database workflows, not remote deployments or file/media synchronisation./ls-wp-db-migrate-importBack up and import a prepared WordPress MySQL-format dump into a local Studio site. Use when an actual local database import is requested, after compatibility and exclusion review./ls-wp-db-prepareSanitise a MySQL or MariaDB WordPress dump for local Studio import. Use for SQL compatibility findings, table exclusions, prefix changes or preserving local accounts./ls-wp-db-recoverDiagnose a failed local WordPress Studio import and restore a verified backup when authorised. Use for partial imports, SQL compatibility errors or rollback requests./ls-wp-db-verifyVerify an imported local WordPress Studio database and preview or apply URL replacement. Use for source-to-local URL mapping, row-count checks and post-import site validation.