/prestashop-upgrade-toolbox:prestashop-upgrade-toolbox-modulesfrom prestashop-upgrade-toolbox
Migrates PrestaShop modules and overrides from a legacy shop to PrestaShop 9: inventories installed modules and leftover folders, writes a keep/update/rewrite/replace/drop decision per module, ports them to the target, and verifies payment/shipping modules by effect.
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.
Shared context, topology and conventions: prestashop-upgrade-toolbox-core. Read it first.
Dossier: write as you go in migration/02-modules.md, and what a reader must know in migration/page/02-modules.html (prestashop-upgrade-toolbox-core, "The migration dossier").
Every module of the old shop ends with a written decision — keep, update, rewrite, replace or drop — and dropping is a decision like the others.
Payment and shipping modules are never rewritten. Their decision is keep, update to the vendor's version for the target, or replace with a module from the PrestaShop Marketplace or the provider's official module. When none exists for the target, the merchant chooses another provider or an integrator. The same default holds for anything the Marketplace already sells (connectors, tracking): buying comes first, a rewrite needs a written reason. Nothing is replaced implicitly, and a module that encashes, writes somewhere or notifies someone is proven by its effect, not by its presence.
Start from the audit's cards (prestashop-upgrade-toolbox-audit, workstream C, and the modules of
production's served fingerprint). The inventory has two parts:
<prefix>module), with what it touches: hooks it is attached to
and on which shop, its own tables and their most recent rows, its configuration keys, the
scheduled jobs or URLs that call it, the third parties it talks to and the settings held on
their side;modules/ that is not installed — the leftovers of years of trials. Each
one gets a decision too (usually: dropped, not carried), because a folder copied over is code
served from the new shop.The decisions are written in 02-modules.md (one row per module and per leftover folder: role,
decision, who decided and when) and, for the control, in module-decisions.tsv in the
state_diff.py decisions format — one line per module of the source:
modules - <name>|* <decision in words: kept as …, replaced by …, rewritten as …, dropped because …> <who, date>
modules + <name>|* <why it is on the target: the kept module's new version, the replacement…> <who, date>
The gate compares the source's module list with the new shop's (state_diff.py compare --only modules): every module that changed — and between 1.6 and 9 every kept module changes version —
needs its line, and a line that matches nothing is refused as stale. STATUS: decided means
100 % of the modules decided.
How to decide each one — the five decisions, the questions to ask in order, the leftover folders and the common traps: references/module-decision-playbook.md.
php bin/console prestashop:module install|enable|disable|uninstall <name> or the
back-office module manager.prestashop-upgrade-toolbox-module-rewrite — a specification taken from
the old shop's behaviour, a module of your own built from its skeleton, never a core
override, the module's own data carried by a day-J script, the proof by effect. Never for a
payment or shipping module.<prefix>hook, or as an
alias in <prefix>hook_alias, which the core resolves on its own. A hook in neither has no
equivalent by name: pick the replacement and write it in the decision. The method and the
queries: prestashop-upgrade-toolbox-module-rewrite, references/porting-legacy.md, "Hooks: which still
exist".On the first build of the target, install modules after the transplant: the imported database replaces every module row, hook and setting an earlier install wrote.
Removing the dropped modules is a script too. A module whose folder is gone cannot be
uninstalled from the console: its rows (module, per-shop rows, hooks, tab, configuration keys)
are detached by a script, after a backup of what it removes, and replayed after every import. A
console uninstall can report a failure after doing its job, or succeed and leave orphan keys:
check the rows, not the message. A module kept but awaiting its vendor's version for the target
stays as rows and tables until it is installed, and its decision line says so — the gate reads
stale for it until then, which is the reminder, not a defect.
Two kinds, both in 02-modules.md:
state_diff.py expect, gate rows);prestashop-upgrade-toolbox-audit,
business workstream) are computed again on the staging, product by product and in total. A rule a
dropped module applied — a discount above an amount, a fee, a restriction — disappears with it
and raises no error; only a cart whose total changed shows it. Every difference is re-created
natively or decided.No module is reinstalled on the day. The target's database is reloaded from a fresh dump, and
the modules' state — rows, hooks, settings — comes back with the staging carry-over
(prestashop-upgrade-toolbox-integrity, cutover runbook). Three cases need more, and the rehearsal at
J-2 is where they show up; each one found there becomes a line of the runbook, so the day holds
no surprise:
This skill has no script of its own. The gate rows of 02-modules.md are carried by scripts
from other skills:
state_diff.py compare --only modules → decided (every module of the source has a decision)state_diff.py expect on paymentOptions and carriers → as-expectedBoth live in prestashop-upgrade-toolbox-integrity/scripts/. The metric declarations and expected
lists are written per project during the inventory (section 1 above).
dossier.py check at STATUS: consistent, with 02-modules marked done and every gate row
proven;state_diff.py compare --only modules at STATUS: decided;prestashop-upgrade-toolbox-module-rewrite, with no core override;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.
Other plugins' skills for the same job