/wp-db-migrate:ls-wp-db-migratefrom wp-db-migrate
Prepare 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.
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.
This repository is the parent Claude skill. Its focused sub-skills live in sub-skills/
and share lib/, scripts/ and docs/ at the repository root.
Request: $ARGUMENTS
Read the relevant sub-skill before acting; load only the stages needed. A stage name at the start of the request selects that stage. With no stage, infer it from the request; a complete migration follows preflight → prepare → migrate → verify.
| Stage | Read | Use for |
|---|---|---|
preflight | Preflight | Dependencies, source tables, URLs and target prefix |
prepare | Prepare | Sanitising an export and choosing exclusions |
migrate | Migrate | Backing up and importing into a local Studio site |
verify | Verify | URL replacement, counts and site checks |
recover | Recover | Diagnosing a failed import and restoring a backup |
For example: /ls-wp-db-migrate preflight /path/to/export.sql /path/to/studio-site.
These are routed arguments, not nested slash commands. Plugin installations also
register the sub-skills individually; see installation.
${CLAUDE_SKILL_DIR}. Resolve relative
links from the file containing them. Sub-skills also explain direct invocation.node lib/sql-tool.cjs for dump analysis and sanitisation.
Studio imports MySQL-format SQL and translates it; do not convert it to native
SQLite syntax or load it with sqlite3.migrate-recovery*.sh are post-import
helpers, not import engines. The clone orchestrator does not implement a complete
local-file import. Its SSH export stage is not called from main, and in
dry-run mode it makes no SSH connection. The scripts need Bash 4.2+
(brew install bash on macOS) and refuse unknown SSH host keys.For CLI syntax use WordPress Studio CLI. For Claude discovery use Claude Code skills.
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-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.npx claudepluginhub lightspeedwp/ls-wp-db-migrate --plugin wp-db-migrate