/wp-db-migrate:ls-wp-db-recoverfrom wp-db-migrate
Diagnose a failed local WordPress Studio import and restore a verified backup when authorised. Use for partial imports, SQL compatibility errors or rollback requests.
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.
Capture the failing command, exit status and relevant error/table without exposing credentials or customer rows. Stop automatic retries. Preserve the original dump, prepared output, reports and verified pre-import backup.
Determine whether the database is unchanged, partly imported or unusable. Read prepare for SQL findings and exclusion changes. Do not exclude a core table merely to bypass a failing import.
If the user requests rollback (or existing authorisation includes it), verify the
backup belongs to this site and is non-empty, inspect studio import --help, then:
test -s "$BACKUP"
studio import "$BACKUP" --path "$SITE"
Check each command separately and verify restored counts and URLs against the pre-import baseline. A restore failure is a hard stop: report the state and error, keep the backup, and request the missing information or action. Do not loop restores. If rollback is not authorised, present the exact backup and local target for review.
Propose a corrected preparation/import only after identifying a concrete cause. A retry that changes exclusions or account policy needs that scope resolved first. Use verify after any successful restore or corrected import.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 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-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-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.npx claudepluginhub lightspeedwp/ls-wp-db-migrate --plugin wp-db-migrate