/wp-db-migrate:ls-wp-db-migrate-importfrom wp-db-migrate
Back 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.
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.
Read prepare when there is no reviewed sanitised
output. Establish SITE, OUTPUT (the prepared dump) and a new absolute BACKUP
path outside the site's disposable working files. Confirm the target is local.
Inspect installed studio export --help and studio import --help; use supported
flags rather than copying commands from older guides.
For an existing site, export its database and verify the file is non-empty before importing. Record baseline table counts and URLs for later comparison.
studio export "$BACKUP" --mode db --path "$SITE"
test -s "$BACKUP"
studio import "$OUTPUT" --path "$SITE"
Execute and check these separately: an export or backup check failure blocks the
import. Do not assume studio backup create exists. For a new site, create it only
within the requested scope using installed CLI help, then back up its initial state.
An import request must cover overwriting this target with the reviewed exclusions and account policy. Ask only for unresolved scope. Never apply source-site writes or a remote deployment as part of a local import.
On import failure, stop and read recover. Do not claim
an automatic rollback. On success, read verify.
The migrate-recovery*.sh scripts only verify, replace URLs and start a server;
they cannot perform this import. Do not use the clone orchestrator for local dumps.
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-preflightInspect WordPress SQL exports and local Studio prerequisites before migration. Use for dependency checks, table inventories, source URLs and prefix compatibility without importing data./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.