/prestashop-upgrade-toolbox:prestashop-upgrade-toolbox-datafrom prestashop-upgrade-toolbox
Migrates legacy PrestaShop data (products, customers, orders, CMS, config, images) to PrestaShop 9 by running schema upgrades on a disposable clone, transplanting the upgraded database into a fresh install, and preserving cookie-key lineage for password continuity.
Ships in prestashop-upgrade-toolbox. 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.
Read when SKILL.md points to them; scripts run unread.
Shared context, topology and conventions: prestashop-upgrade-toolbox-core. Read it first.
Dossier: write as you go in migration/01-data.md, and what a reader must know in migration/page/01-data.html (prestashop-upgrade-toolbox-core, "The migration dossier").
The source is never modified by this skill. It reads a dump. That single property is what makes abandoning cheap right up to the DNS switch.
Install a clean target from the official release archive or Docker image, pinned to the exact version the last hop reaches. Do not improvise a partial install. Install it without demo fixtures: a target seeded with sample products and customers makes every reconciliation count differ for a reason that has nothing to do with the migration. Give it a random table prefix: the transplant renames the imported tables to it.
What that install is for, and what it is not:
override/; the
modules the audit kept come after the transplant (phase 5);Two things to settle before the target serves a page:
cookie_key, cookie_iv, new_cookie_key) from the clone, and the key PHP resolves is
then checked, not the one in the file. See
references/landing-the-data.md.prestashop-upgrade-toolbox-core/references/scope-containment.md), from a registry that pairs
every cut with its restore step and a probe of its real state. scripts/containment_check.py lint refuses a registry that forgets a channel (payment is the usual one), a cut with no
restore step, or a probe that cannot tell the two states apart; verify --state contained
then reads every state — and a probe that reads nothing fails: that is the cut aimed at a
table or key the target does not have, which touches zero rows and exits 0.The data must reach the target's schema. Doing that by hand is the expensive mistake: use the vendor's upgrade tool on a disposable clone of the source, version hop by version hop — one hop being one version step the tool actually supports — then transplant its database into the fresh install.
scripts/hop_check.py — after every hop: nothing lost in the tool's log, the version read from
the database, a schema probe of the version's own changes (references/hop-probes.tsv);
and, before the hop to 9, no table left on MyISAM without a decision.scripts/landing_check.py — the prefix renamed with no table left behind, and no leftover:
menu entries of absent modules, ghost modules, entities missing a translation or a shop.scripts/check-password-lineage.py — proves the lineage through the target's own runtime.🔴 Never trust an exit code as a post-condition. The upgrade tool can exit 0 meaning "you already have this version" while the database stays on the old schema — or after losing migration queries it logged as warnings. Chained blindly, that carries an old or half-migrated schema forward and calls it the new target.
hop_check.py hopatSTATUS: migratedafter every hop, before the next one.
🔴 The upgrade tool changes the functional perimeter without asking. It uninstalls what it judges incompatible — and a module that computes its compatibility from the running version can fall out of range in the middle of the chain, files included; it sets global switches (overrides, non-native modules) and moves on; the new version brings modules of its own, enabled. All of it exits 0, and every business-data reconciliation stays green. So capture the perimeter before and after every hop —
capture-sets.py --sets metrics/module-state-sets.tsv(inprestashop-upgrade-toolbox-integrity) — and runstate_diff.py compareon the two captures with a decisions file: every module, hook attachment or switch that appeared or disappeared needs a written decision and a signature (kept, replaced by what and agreed by whom, dropped). An undecided change stops the chain. Which module it hits is never the point: the same mechanism takes a payment module on one shop and a carrier on the next.
🔴 The chain upgrades a running shop, not a dump. Each hop needs a PrestaShop that boots, which means its own PHP version — a 1.6 clone will not run on the PHP that runs 9. Plan the hops as containers, one runtime per hop, before naming a cutover date.
Then carry the files. img/ (the whole photo library), download/ (digital products already
sold), upload/, and any overridden mails/ template. No schema upgrade and no table copy
touches them, and every row count stays green without them. Regenerate the image derivatives
afterwards — which only means something if the originals arrived, so measure both
(prestashop-upgrade-toolbox-integrity, metrics/files.tsv).
Covered by prestashop-upgrade-toolbox-modules: inventory, a written decision per module, the port,
the proof — and the ordering rule: modules are installed after the transplant.
The front itself — the old storefront reproduced as a child theme — is prestashop-upgrade-toolbox-theme.
Three traps remain here, whatever the theme:
<prefix>_search_index and _search_word arrive empty or stale,
and a shop whose storefront search returns nothing passes every row count, every configuration
hash and every HTTP check. It is a replay step, and its post-condition is a non-zero count.
It is one of seven: missing pages and renamed URLs in meta, collations, the faceted search's
price index, native modules left disabled, mail templates, redirects — the table of
references/landing-the-data.md, §5, with their order.Employees and permissions are a decision, not a migration. <prefix>_access went from
per-tab flags in 1.6 to authorization roles in 9, so the two models do not map and nothing can
reconcile them. Decide — re-created (the recommendation: the roles do not translate, and a
migration is the right moment to drop the accounts of people who left) or carried over — write it
down, and let metrics/access.tsv prove the replay restored what you validated. An empty
permission table gives every non-SuperAdmin profile a back office with nothing in it, and the
symptom reaches you as "the site is broken".
dossier.py check at STATUS: consistent, with 01-data marked done and every gate row proven;hop_check.py hop STATUS: migrated — nothing lost in the log, the version read
from the database, the schema probes of the version — its log cited in the hop table;hop_check.py engines, STATUS: innodb);state_diff.py compare, STATUS: decided or identical), each
decision signed;STATUS: well-formed, and verify --state contained at
STATUS: as-declared after every fresh import;landing_check.py prefix, STATUS: renamed), three cookie keys copied, theme set —
and the clean-up after it (landing_check.py leftovers, STATUS: clean);scripts/check-password-lineage.py passes, including the effective-key and end-to-end checks;img/, download/, upload/, overridden mails/ — and the derivatives
regenerated, both measured, not assumed;metrics/shop.tsv;prestashop-upgrade-toolbox-integrity);prestashop-upgrade-toolbox-integrity).references/hop-probes.tsv (opens in a new tab)references/landing-the-data.md (opens in a new tab)references/upgrade-chain.md (opens in a new tab)scripts/check-password-lineage.py (opens in a new tab)scripts/containment_check.py (opens in a new tab)scripts/hop_check.py (opens in a new tab)scripts/landing_check.py (opens in a new tab)tests/test_check_password_lineage.py (opens in a new tab)tests/test_containment_check.py (opens in a new tab)tests/test_hop_check.py (opens in a new tab)tests/test_landing_check.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prestashopcorp/prestashop-upgrade-toolbox --plugin prestashop-upgrade-toolbox7 skills in this plugin
/prestashop-upgrade-toolbox-auditAudit a legacy PrestaShop shop (1.6 or 1.7) before migrating it to PrestaShop 9, starting with a reference copy running locally. Use when the user wants to start a migration (the first questions, the dossier), audit an old shop (core files, overrides, modules, theme, data, integrations, direct scripts, multistore and markets, scheduled jobs, accounting and legal perimeter, cutover and performance baseline), run a legacy shop on modern PHP/MySQL (MAMP or Docker), debug one that fails there (504/FastCGI timeout, blank page, mcrypt removed in PHP 7.2, Smarty cache, nginx ignoring .htaccess, MySQL 8 caching_sha2_password), inventory the SEO URLs while production is live, or decide between an in-place upgrade and a clean reinstall with the data carried over. Covers phases 0 to 2 and ends at the decision. NOT for moving the data (prestashop-upgrade-toolbox-data), the modules' port (prestashop-upgrade-toolbox-modules), verifying or going live (prestashop-upgrade-toolbox-integrity), or installing a brand-new shop.
/prestashop-upgrade-toolbox-coreShared reference for the prestashop-upgrade-toolbox skills — the source / clone / target topology, the neutrality rule that keeps these skills reusable, the "measure, never assume" conventions, the containment guardrails that stop a working copy from reaching production or third parties, and the rules that make a control able to fail. Read this when building or editing any prestashop-upgrade-toolbox-* skill, or when you need the shared context behind prestashop-upgrade-toolbox-audit, -data, -modules, -module-rewrite, -theme and -integrity. This is a reference, not a task: it installs nothing and migrates nothing.
Other plugins' skills for the same job