/prestashop-upgrade-toolbox:prestashop-upgrade-toolbox-integrityfrom prestashop-upgrade-toolbox
Verifies a migrated PrestaShop storefront is complete across URLs, navigation, destinations, data, and config, then executes the cutover. Covers phases 7-8 of the upgrade toolbox.
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 and conventions: prestashop-upgrade-toolbox-core. Read it first — in particular
the rule that a control which has never been made to fail is not a control.
Dossier: write as you go in migration/04-integrity.md and 05-cutover.md for the cutover, and what a reader must know in migration/page/04-integrity.html and page/05-cutover.html — the runbook of the day as it unfolds (prestashop-upgrade-toolbox-core, "The migration dossier").
An acceptance pass spontaneously answers "do the pages respond?". That is the easiest question and the least covering. You need three.
| Question | What it catches | What it lets through |
|---|---|---|
| 1. Do the URLs answer? | 404s, broken routes | a page served but empty; a link gone from the menu |
| 2. Is the navigation intact? | template elements lost (menu, header, footer) | a link that is present but points at the wrong page |
| 3. Are the destinations right? | links to a duplicate, a stub, an impoverished page | — |
🔴 The classic mistake is to have asked only the first. A URL inventory can prove that not one indexed page is lost while an entry point in the header has silently vanished from the rebuilt front — the page still exists and still answers 200. That gets found by the merchant, looking at their own site.
Full method, seven axes: references/site-acceptance.md. Access continuity, personal data and secrets: references/access-and-data-checks.md. The cutover itself: references/cutover-runbook.md.
Independent controls, each on a different axis. None of them subsumes another, and the gaps
between them are where damage hides — so the table below is also the coverage map: read it by
kind of damage and hunt the empty cells
(prestashop-upgrade-toolbox-core/references/control-self-audit.md).
| Control | Kind of damage | Script and declaration |
|---|---|---|
| Template links | navigation, destinations | scripts/audit_template_links.py |
| URL inventory before/after, exhaustive | SEO routes | scripts/seo-inventory.py |
| Route smoke test and soft 404s | HTTP, empty pages | scripts/smoke.py |
| Accounting reconciliation | rows, money | capture-metrics.py + compare-captures.py, metrics/accounting.tsv |
| Real customer e-mails, production only | addresses lost, or anonymised by mistake | same pair, metrics/emails.tsv |
| Business configuration, source vs target | settings both versions share | same pair, metrics/config-crossversion.tsv |
| Configuration equivalence, target vs target | replay of the validated front state | same pair, metrics/config.tsv |
| Environment values | substitutions actually applied | same pair, metrics/environment.tsv |
| Multistore topology | per-shop rows and scoping | same pair, metrics/shop.tsv |
| Back-office access | employees, profiles, permissions, API accounts | same pair, metrics/access.tsv |
| Served files | images, downloads, uploads, mail templates | same pair with a shell interpreter, metrics/files.tsv |
| Schema drift, same database | structure before/after a hop or a reload | same pair, metrics/schema.tsv |
| Schema vs a vanilla install | vanilla tables/columns the target lacks | capture-sets.py + compare-sets.py, metrics/schema-sets.tsv |
| Password lineage | customer access | prestashop-upgrade-toolbox-data/scripts/check-password-lineage.py |
| Functional perimeter, hop by hop | modules, hook attachments and global switches changed with no decision | capture-sets.py + scripts/state_diff.py compare, metrics/module-state-sets.tsv |
| Modules on money and customer hooks | a payment module nobody asked for, or one missing | scripts/state_diff.py expect on hook_modules, against a list written in advance from the source's own (displayPayment on 1.6, paymentOptions from 1.7) |
| Carriers offered | a carrier lost, added or switched off | scripts/state_diff.py expect on carriers (metrics/module-state-sets.tsv, keyed by id_reference), against the source's enabled carriers |
| URL families known from outside | a URL shape engines indexed that the rebuild does not serve | scripts/url_families.py, with metrics/route-sets.tsv to explain a broken family |
| Surfaces called without a page | feeds, direct scripts, module endpoints third parties use | prestashop-upgrade-toolbox-audit/scripts/access_surfaces.py, on the target's logs after the switch |
| Containment restored | a guardrail still cut in production, or one that never cut anything | prestashop-upgrade-toolbox-data/scripts/containment_check.py verify --state live |
| Staging carry-over | validated configuration overwritten by the final import | scripts/staging_delta.py plan then final (runbook §0) |
| Staging frozen, ids free | a change made on staging after J-2; rows created on staging whose ids the source reused since | scripts/staging_delta.py frozen and ids |
| Source frozen | an order written after the freeze snapshot | the freeze captured twice, five minutes apart, compare-captures.py |
| Leftovers after an import | menu entries of absent modules, ghost modules, entities missing a translation or a shop | prestashop-upgrade-toolbox-data/scripts/landing_check.py leftovers, after the transplant, after acceptance, on the day |
| What production served, on the new production | a cookie banner, an analytics tag, a feed or a partner domain gone | prestashop-upgrade-toolbox-audit/scripts/served_fingerprint.py at the freeze and on the new shop, then state_diff.py compare |
| URLs at the freeze, decided losses only | a URL lost that nobody decided, or a decided loss that did not happen | scripts/seo-inventory.py compare --expected |
| Staging domain and test values | links to staging, a test bank account, a test mode, robots.txt blocking the shop | scripts/forbidden_values.py |
Capture then compare is deliberately two steps: at a cutover the source is a dump, not a live database, so the source is captured once at the freeze and the target compared against that archived reference as many times as needed.
Cells and sets are different tools, on purpose. A metric collapses to one value, so the verdict is a string equality — perfect for "did this move?". A set keeps its rows, so the verdict is a difference you can read. Use sets wherever the two sides legitimately differ in bulk: comparing a real target's schema to a vanilla install as hashes gives seven permanent reds and nothing to read, which is the "cries wolf on a correct run" failure that gets a control switched off.
Each declaration states its own scope, and the runner enforces it. A file carrying
#!scope target-only refuses to be captured on the source, so --side source|target is required
whenever a scope is declared. That is not bureaucracy: config.tsv reads
<prefix>_shop.theme_name and <prefix>_translation, neither of which exists on a 1.6 source, and
the symptom of pointing it at the wrong side is a "table doesn't exist" error that reads like
missing data instead of the wrong side. Today: accounting.tsv, emails.tsv,
config-crossversion.tsv, shop.tsv and files.tsv are source-and-target; config.tsv,
access.tsv and environment.tsv are target-only; schema.tsv is any (the same database,
before and after). Environment-specific values are separated for a different reason — the
transplant substitutes them, so comparing them across environments differs by design.
Capture through the dossier. dossier.py capture --dir migration --env <env> runs every
declaration allowed on that environment's side with the values of its profile
(migration/<env>.local.env: client, prefix, newsletter table, sample modulus, excluded status
modules, anonymisation domain, root), into migration/captures/<label>/, and says which
declarations the profile cannot serve. dossier.py run --step 04-integrity (or 05-cutover) then
executes the gate rows and writes their dated results — see prestashop-upgrade-toolbox-core, "The
migration dossier". Two values must be the same on both sides or the comparison is meaningless:
SAMPLE_MOD, and EXCLUDE_STATE_MODULES — the payment modules installed on the target create
their own order statuses, excluded by module name so that a status added or lost on the source
stays visible. emails.tsv is compared in production only: on an anonymised copy its count is 0 by
design, and "no real address left" is a containment probe there, not a comparison.
Use --diagnose on the first run against any new shop. A capture aborts on the first empty
metric, which is right on the day and wrong when you are setting up: a declaration whose version
cannot serve five of its metrics takes six runs to reveal them one at a time, each re-executing
everything that already worked. --diagnose evaluates them all, prints each one with the database
client's own message, and writes no capture — a diagnostic must never be mistakable for a
reference. Then re-run without it to capture.
Every one of these ships with stubbed tests in tests/ that force it to go red — an
unreachable site, a query returning nothing, two hollow captures, unequal metric sets, a verifier
that accepts anything. Run them after any change: they need no database, no server and no
container.
What has run on real data and what only on stubs is kept in one place: the README, "What has and has not been proven". Read it before trusting a verdict, and treat the first run on a new shop as part of the work.
A metric declaration grows: the day you add a metric, every older capture stops being comparable.
compare-captures.py fails on unequal metric sets rather than comparing the intersection.
That is the intended behaviour, and it means one thing operationally: re-capture the reference
whenever the declaration changes, before you need it.
And be honest about what a reference is. A capture taken from the target after a dry run and some manual fixes measures drift between runs — it is not an independently validated oracle, the reference of truth a result is judged against. Say which of the two you have.
Rehearsal at J-2 → staging frozen → on the day: integrations stopped, freeze proven, chain replayed, staging carried over and the final diff, the day's gestures (images, caches and CDN, sitemaps), the merchant's third-party switches → go/no-go gate on the new production → open → J+1. Who does what, the rollback and the accounting decision on invoice numbering: references/cutover-runbook.md.
What the scripts never do, by design: switch the DNS or the document root, open the shop to the public, touch a server's scheduled jobs, CDN, backups or PHP settings, change a setting on a third party's side, tell third parties their integrations are suspended, copy a backup off the machine. Those are the merchant's or the host's boxes; the controls check their effect.
dossier.py check at STATUS: consistent, with 04-integrity marked done and every gate row proven, and 05-cutover likewise after the switch — its gate run on the new production, and every blocking before/after check with both cells proven;dossier.py check refuses 05-cutover done otherwise;SOFT404_GUARD=on in the smoke output, or a written reason why not;url_families.py,
STATUS: reachable), and the modules on payment and carrier hooks exactly the expected ones
(state_diff.py expect, STATUS: as-expected);references/access-and-data-checks.md (opens in a new tab)references/cutover-runbook.md (opens in a new tab)references/site-acceptance.md (opens in a new tab)scripts/audit_template_links.py (opens in a new tab)scripts/capture-metrics.py (opens in a new tab)scripts/capture-sets.py (opens in a new tab)scripts/compare-captures.py (opens in a new tab)scripts/compare-sets.py (opens in a new tab)scripts/forbidden_values.py (opens in a new tab)scripts/metrics/access.tsv (opens in a new tab)scripts/metrics/accounting.tsv (opens in a new tab)scripts/metrics/config-crossversion.tsv (opens in a new tab)scripts/metrics/config.tsv (opens in a new tab)scripts/metrics/emails.tsv (opens in a new tab)scripts/metrics/environment.tsv (opens in a new tab)scripts/metrics/files.tsv (opens in a new tab)scripts/metrics/module-state-sets.tsv (opens in a new tab)scripts/metrics/route-sets.tsv (opens in a new tab)scripts/metrics/schema-sets.tsv (opens in a new tab)scripts/metrics/schema.tsv (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.
/prestashop-upgrade-toolbox-dataCarry a legacy PrestaShop shop's data onto PrestaShop 9 once the audit has decided — run the schema-upgrade chain on a disposable clone, transplant the upgraded database into a fresh install, carry the files, and make every later database step replayable. Use when the migration decision is made and the data has to move: products, customers, orders/invoices, CMS pages, configuration, product images; when customer passwords must keep working after the move (the cookie-key lineage); when a version-upgrade tool reports success without actually upgrading; when a rebuild step must be made idempotent and provably replayable. Covers phases 3 and 4. NOT for the pre-decision audit (see prestashop-upgrade-toolbox-audit), NOT for the modules (see prestashop-upgrade-toolbox-modules), NOT for integrity checks or going live (see prestashop-upgrade-toolbox-integrity).
/prestashop-upgrade-toolbox-module-rewriteRewrite, as a module of your own for PrestaShop 9, the legacy behaviour a migration decided to rewrite — a core override, a 1.6-only module, a script the old shop served outside the dispatcher, a custom integration (ERP or logistics bridge, export, blog) — from a specification taken from the old shop's real behaviour, on the staging with the migrated data, with the module's own data carried by a replayable script and a proof by effect. Use when the modules decision (prestashop-upgrade-toolbox-modules) says "rewrite"; when an override must become a module + hook; when a 1.6 module has no PrestaShop 9 version and must be ported; when a directly-called script must become a front controller. NOT for payment or shipping modules: those are never rewritten, always taken from the PrestaShop Marketplace or the provider. NOT for deciding a module's fate (see prestashop-upgrade-toolbox-modules), NOT for a brand-new feature unrelated to the migration.
/prestashop-upgrade-toolbox-modulesCarry a legacy PrestaShop shop's modules and overrides onto PrestaShop 9 — inventory every installed module and every leftover module folder, write a decision per module (keep, update, rewrite as a module + hook, replace, drop), port them on the target, and prove that every module is decided and every module that encashes, writes or notifies works by its effect. Payment and shipping modules are always kept, updated or replaced from the PrestaShop Marketplace, never rewritten; the rewrites themselves are done with prestashop-upgrade-toolbox-module-rewrite. Use when the audit has listed the modules and the data has landed on the target; when the upgrade tool uninstalled or replaced a module silently; when a payment or carrier module is missing or unexpected; when legacy behaviour in an override must become a module. Covers phase 5. NOT for the audit itself (see prestashop-upgrade-toolbox-audit), NOT for the data (see prestashop-upgrade-toolbox-data).
/prestashop-upgrade-toolbox-themeReproduce the storefront of the old PrestaShop shop (1.6 or 1.7) on the new PrestaShop 9, as a child theme of hummingbird: capture the old pages from the local reference copy, write one self-contained HTML template per page as the specification, have the merchant validate it, then restitute it as Smarty templates and brand CSS, polish it in bounded loops measured against the old shop, and prove it with a gate on the staging. Use when the merchant wants the new shop to look like the old one; when the old theme cannot run on 9 and has to be rebuilt; when a migrated shop shows the default theme; when the colours, fonts, header, footer, home, category, product or CMS pages of the old shop must be carried over. NOT for a new design or a rebrand, NOT for a shop that is not being migrated (a Shopify or WooCommerce store, a brand-new shop), NOT for moving the data (see prestashop-upgrade-toolbox-data).
Other plugins' skills for the same job