/prestashop-upgrade-toolbox:prestashop-upgrade-toolbox-auditfrom prestashop-upgrade-toolbox
Audits legacy PrestaShop 1.6/1.7 shops before migration to PrestaShop 9. Covers core files, overrides, modules, theme, data, integrations, SEO URLs, and produces a documented in-place vs. clean-install recommendation.
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, conventions and the containment rule: prestashop-upgrade-toolbox-core. Read it
first — including references/version-facts.md, which holds the version-pinned facts this phase
leans on (what actually breaks a 1.6 on modern PHP, and what the generated .htaccess contains).
Dossier: write as you go in migration/00-audit.md (prestashop-upgrade-toolbox-core, "The
migration dossier"). What a reader must know goes in the audit's report,
migration/audit-report.html, which the person follows the audit on: laid out when phase 2
starts, one section written as each workstream closes, the points that matter most in
page/summary.html (the dossier's page shows them too). It takes the place of
page/00-audit.html. Tell the person where the report is when it is first written.
This skill ends at a decision, not at a migration. Its output is a documented recommendation — in-place upgrade, or fresh install of the target with the data carried over — that someone else could disagree with on the evidence.
Follow these steps for each workstream of Phase 2, one workstream at a time. They are not advice. An audit once skipped them: it ran the commands, reported most workstreams "done" from counts, and every decisive finding turned out to be in the part it had not read.
Size it and tell the user before starting — number of items (files, overrides, modules, tables, jobs), lines of code, estimated time, and how the work will be split. Never shrink the scope silently to fit a session: if it does not fit, say so and split.
Run the measurement commands of the playbook. Their output makes the workstream measured. It does not make it done.
Write a card for every item that is not vanilla — third-party and custom modules, overrides, modified core files, custom scripts. Native modules left untouched get one line each in a single table (name · active · hooked · fate), not a card. Read yourself every item that touches money, stock, legal obligations or security; delegate the rest to parallel reviewers with this exact card and the containment rules (read-only, no request to production or third parties, no secret copied). The card:
Inside a card, every finding — a business rule, a condition, a hard-coded ID or URL, a third party, a dead branch, a security issue — is written so the merchant can decide whether to keep that bespoke development, without opening the code:
file:line;<SECRET>; never copy its value;A finding stated without its excerpt (“IDs are hard-coded in the cart”) is not a finding: the merchant cannot weigh it. Dead files can stay grouped in a table (file | evidence it is dead).
Check the workstream's "Done when" box at the end of its section in the playbook. Every line must be true.
Re-verify, yourself, every delegated claim that changes a decision or goes to the merchant (security finding, accounting anomaly, "dead" verdict on something with business weight), in the code or the database. Write down what you corrected.
Only then write "done" — in the journal and in every summary.
Never:
diff -w and a line count — use scripts/core-diff.py and
scripts/override-map.py (see A and B in the playbook);Always, for the whole audit (phases 0–2):
scripts/coverage-check.py over the shop tree and every report (add the database tables and
configuration keys with --items): each UNCITED= line is an item no report mentions — analyse
it or exclude it in writing until the status is covered. Then have it attacked: by default
one independent reviewer working through the eight angles of the playbook's checklist
("Contradictory review"); one reviewer per angle only on a stated trigger — multistore, several
markets, heavy custom code. An audit read workstream by workstream looks complete from the
inside; what nobody looked at only shows up when somebody is asked to find it.prestashop-upgrade-toolbox-core,
references/intake.md): read the version and the perimeter from the shop's files, confirm them
in one summary, ask only what no file holds, create the dossier and draft the request to the
host. The heavier path of this skill fires only on the trigger the intake wrote.core.fileMode false — a legacy shop is full of permission noise, and
committing mode changes buries the real diff.docs/ folder, READMEs, a patch log, an
architecture diagram, release notes: they name the systems the code does not show and the local
patches nobody will mention. Read them before any workstream starts, and list every system
outside the repository they or the code refer to — a VPN-only script folder, a separate
back-office application, a media server, an ERP-side job. Each one gets a line in the audit,
even if it is out of scope: out of scope is a decision, not an omission.img/, upload/, download/) are routinely excluded from a code export.
Ask for the settings file with its secrets redacted except the cookie keys, which carry
every customer password; without them the reference copy runs on new keys and no customer login
can be tested.prestashop-upgrade-toolbox-integrity (references/access-and-data-checks.md).00-audit.md, with who it was asked to and when:
The most treacherous phase, and the one where the schedule slips. Order:
prestashop-upgrade-toolbox-core) and prove it →Containment is proven, not asserted: write the copy's own registry, containment-reference.tsv
in the dossier (template: prestashop-upgrade-toolbox-core/references/containment-registry.example.tsv),
from the old shop's modules and the outbound channels found in the code. Then, before the first
page is served and after every fresh import:
containment_check.py lint at STATUS: well-formed, and
containment_check.py verify --state contained on the reference copy's database at
STATUS: as-declared (prestashop-upgrade-toolbox-data/scripts/). lint refuses a registry with no
mail line or no anonymisation line (privacy); verify reads the mail method and counts the
addresses still outside the reserved domain, so a mail cut that touched zero rows or an
anonymisation that missed the customer table fails instead of passing silently. Each line's
restore step reads never: reference copy, discarded after the cutover: this copy is never
switched back on.
The failure catalogue, cause by cause, is in references/local-reference-setup.md. Read it before debugging: most of these look like the same symptom (a slow or blank page) and have unrelated causes.
🔴 Containment comes before the first browser page view, not after it — and it covers every outbound channel found in the code, not only e-mail: chat webhooks, messaging APIs, help-desk and marketing platforms, partner crons. List them from the code; do not stop at the channels a checklist names.
🔴 Phase 1 is done only at its criteria (see Done below) — not when the home page answers. Every workaround made to get there is recorded with its consequence for the audit.
🔴 A reference copy that 404s its own images is not a reference copy. On nginx the front-controller fallback is only a third of what PrestaShop's
.htaccessdoes: the image and web-service rewrites have to be ported too, or workstream D reads a broken theme, the SEO inventory is built from a mutilated site, and acceptance later replays destinations that never worked. Details in the failure catalogue.
Workstreams A→K plus SEO. Commands and method: references/audit-playbook.md. A→G read the code and the data; H→K read the business the code runs — markets, operations, accounting, the cutover — and are the ones a code-only audit misses.
| # | Workstream | Method | Decisive for |
|---|---|---|---|
| A | Modified core files | diff against the exact vanilla release | upgrade vs fresh |
| B | Overrides | inventory, portability, and the subsystems they short-circuit (whose configuration is dead code) | carry-over effort |
| C | Modules | starting from what production serves; automatic triage (native / official / third-party / custom) then focus; name/directory case check; vendor, licence and known vulnerabilities per module; settings held on the third party's side; table prefix written by hand | replace or rewrite |
| D | Theme | the theme actually served, then diff against vanilla | new front (prestashop-upgrade-toolbox-theme) |
| E | Data and files | volumes, custom tables and columns, multi-language, purgeable junk — plus img/, download/, upload/, overridden mails/, which no data query sees | ETL plan |
| E′ | Multistore, employees | shops and shop URLs; employee and permission counts | scope, and a decision |
| F | Integrations | payment actually used, blog, web service, ERP/stock, feeds and where each third party reads them | reconnections |
| G | Directly-callable scripts | root scripts, front controllers outside the dispatcher, debug endpoints | access surfaces |
| H | Multistore & international | what the shops share, per-shop configuration, currencies, taxes and payment per country; what opening one more market involves today | data model + the market-opening baseline |
| I | Operations | scheduled jobs (server crontab with a fate per line, module endpoints), file exchanges, advanced stock management, back-office usage per profile, the team that will execute | rewrite list + process continuity |
| J | Legal & financial | invoice numbering per shop, credit notes, delivery slips, exchange rates, redeemable vouchers, stored value, consent proof, retention | carry-over requirements + reconciliation metrics |
| K | Cutover & performance | performance baseline (local and production), order rate by hour and day, blackout calendar, target hosting as questions to the host (advice, never changed by the agent) | freeze window + the "faster" claim |
| — | SEO | URL inventory — start early, production is still live | 301 plan |
Recommended order: core and overrides first. They decide the most and they are the cheapest to measure — but not cheap to analyse: the override directory of an old shop routinely holds tens of thousands of lines and rewrites order creation, invoicing, stock and shipping. Apply the mandatory steps above to each one; a workstream ends at its "Done when" box, not when its commands have run.
Lay out the report as phase 2 starts, before the first workstream:
dossier.py report --dir migration writes audit-report.html and one skeleton per section in
page/report/ (STATUS: unwritten until the last one is written). A workstream is done when its
"Done when" box is ticked and its section is written for a reader; the report is not written
in one go at the end. From then on dossier.py check --write keeps the page and the report
current with the files.
Criteria and the bias trap: references/decision-matrix.md.
Two rules worth stating up front:
dossier.py check at STATUS: consistent, with 00-audit marked done and every gate row proven;STATUS: well-formed and verify --state contained at STATUS: as-declared after the last
import;<prefix>_image rows next to the originals on disk, and the image
types to regenerate;scripts/access_surfaces.py at STATUS: inventoried on the production access logs and
crontabs: every surface a third party calls without a page has an owner, a fate and a check
for after the cutover (playbook, workstream I);migration/audit-report.html, at STATUS: reported from
dossier.py report --dir migration: every section written, none left as its skeleton
(playbook, "The end-of-audit report").scripts/coverage-check.py at STATUS: covered (or each remaining item excluded in writing),
and the contradictory review run (eight angles), its blockers carried into the reports;references/audit-playbook.md (opens in a new tab)references/decision-matrix.md (opens in a new tab)references/local-reference-setup.md (opens in a new tab)scripts/access_surfaces.py (opens in a new tab)scripts/core-diff.py (opens in a new tab)scripts/coverage-check.py (opens in a new tab)scripts/override-map.py (opens in a new tab)scripts/php-methods.php (opens in a new tab)scripts/served_fingerprint.py (opens in a new tab)tests/test_access_surfaces.py (opens in a new tab)tests/test_audit_scripts.py (opens in a new tab)tests/test_served_fingerprint.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-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-integrityProve a migrated or rebuilt PrestaShop storefront lost nothing, then run the cutover. Use when a shop has been migrated to a new version or had its front rebuilt and you need to verify it before going live: compare the outgoing links of each template between old and new site, check CMS pages exist AND that templates link the right ones, compare URL inventories before and after, detect soft 404s, reconcile orders/invoices/payments/stock between source and target, count product images on disk, compare configuration, back office permissions and database schema, smoke-test critical routes, check customer passwords still work, sweep for residual personal data and plain-text secrets; then freeze the source, run the go/no-go gate, switch over and keep a rollback. Covers phases 7 and 8. NOT for the pre-decision audit (see prestashop-upgrade-toolbox-audit), NOT for moving the data (see prestashop-upgrade-toolbox-data), NOT for porting the modules (see prestashop-upgrade-toolbox-modules).
/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