Skip to content

About

AI agent skills that migrate a legacy PrestaShop 1.6 / 1.7 shop onto PrestaShop 9 - audit, data, modules, theme, integrity checks and cutover, each phase proven by deterministic controls. For Claude Code, Cursor, Codex and Gemini CLI. Read-only towards production.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

14 stars

Watchers

0 watching

Forks

prestashop-upgrade-toolbox

Tests

An AI-assisted migration toolbox that takes a legacy PrestaShop shop (1.6 or 1.7) onto PrestaShop 9. Install the plugin in your AI coding agent, point it at your shop, and the agent walks you through every step: audit, data migration, modules, theme, integrity checks and cutover.

Seven skills, one per phase of the migration, for Claude Code, Cursor, Codex, Gemini CLI, and any agent npx skills installs into. PrestaShop to PrestaShop only — this is not a platform switch.

What you need before starting

The agent will ask for these during setup. Gather them beforehand to avoid delays:

  • A copy of the shop's files — via FTP, SSH, or git. The agent works on a local copy for code analysis. It also reads the live shop over HTTP (GET only, no write) to compare what production serves with the reference copy.
  • A database dump — mysqldump or equivalent, of the shop's database.
  • Production access logs — a file or a directory of rotated logs covering at least one to two weeks (combined or common format, .gz accepted). These are the only reliable list of what third parties actually call (feeds, direct scripts, module endpoints). Ask your host for them.
  • The shop's crontab — the list of scheduled jobs, from the hosting panel or the server. Ask your host for it.
  • Target hosting ready — a server with the PHP and MySQL/MariaDB versions PrestaShop 9 requires, with backups configured and tested.

The access logs and the crontab come from the host, not from the code. No SSH access is needed: everything can come from the hosting panel, by FTP or from phpMyAdmin, or be sent by the host. The agent drafts the request to the host for you, and tracks what has been received.

Data and GDPR

A migration works on a copy of a live shop, and that copy holds personal data: customers, addresses, orders, employees, and the IP addresses of the access logs.

  • The scripts send nothing to a third party. They read source trees, dumps and logs, query a database through the client you give them, and send GET requests to the shop. They call no outside service.
  • The agent does. Like every AI coding agent, it sends what it reads to its model provider: code, files, command output, query results. Part of that can be personal data — a query that samples customer rows, a log line, a settings file.

Before the first session:

  • Agree it with the merchant. The merchant is the data controller of their customers' data. Check with them that it may be processed by the model provider you use, under a contract that covers it (a data processing agreement, GDPR article 28), on a plan that does not train on your data and stores it where you both accept. Read that provider's terms for your plan.
  • Anonymise where a step allows it. The audit's reference copy anonymises customer e-mail addresses and cuts outgoing mail before its first page view, and proves it. A dump delivered as anonymised is swept before it is trusted. The data migration and the checks on the new shop need the real data, and run on it.
  • Keep it out of sight. The skills write secrets and personal data only to *.local.* files, which the dossier's .gitignore keeps out of git. The dossier denies every web request (an .htaccess under Apache; under nginx, the host blocks the folder) and is not pushed to a repository others can read.
  • Delete it at the end. The reference copy is discarded after the cutover; delete the dumps, logs and captures too once the migration is closed.

Installation

The skills are in skills/, in the open Agent Skills format. Each agent reads them through its own manifest, all at the root of this repository.

Claude Code — .claude-plugin/:

/plugin marketplace add PrestaShopCorp/PrestaShop-Upgrade-Toolbox
/plugin install prestashop-upgrade-toolbox@prestashop-upgrade-toolbox

Cursor — .cursor-plugin/: Cursor discovers the seven skills in skills/ on its own. Clone the repository into Cursor's local plugins folder:

git clone https://github.com/PrestaShopCorp/PrestaShop-Upgrade-Toolbox ~/.cursor/plugins/local/prestashop-upgrade-toolbox

then run Developer: Reload Window. A team can instead import the repository into its team marketplace (Dashboard > Plugins & MCPs > Import from a repository).

Codex — .codex-plugin/ and .agents/plugins/marketplace.json:

codex plugin marketplace add PrestaShopCorp/PrestaShop-Upgrade-Toolbox

then install prestashop-upgrade-toolbox from /plugins. Codex also loads a project's .agents/skills/: the copy described for Gemini CLI below works without the plugin.

Gemini CLI — no manifest: Gemini discovers a project's skills in .agents/skills/ (or .gemini/skills/), not in a skills/ folder at the root. Copy only this repository's skills/ there, from the root of the shop's project — never the whole plugin, whose README.md would overwrite the shop's:

mkdir -p .agents && cp -R <this repository>/skills .agents/skills

Then run gemini from the same folder and type /skills list: the seven prestashop-upgrade-toolbox-* skills must be listed. Gemini loads a project's skills only once the folder is trusted: accept when it asks at the first launch, or it lists none. Gemini asks for a confirmation before it loads a skill. Which Google accounts and keys Gemini CLI accepts depends on Google's current offer: check it before you start, with what Data and GDPR asks of every agent.

Any other agent — the skills CLI:

npx skills add PrestaShopCorp/PrestaShop-Upgrade-Toolbox

Install the seven skills together, whatever the route: every skill reads prestashop-upgrade-toolbox-core first, and some run another skill's scripts. A local clone works on every route in place of the GitHub name.

Prerequisites

The skills themselves are instructions; the controls under skills/*/scripts/ need, on the machine that runs them:

  • python3 3.9 or later — standard library only, nothing to pip install;
  • a PHP CLI with the tokenizer extension (used by override-map.py through php-methods.php; without it the script answers STATUS: no-php);
  • curl (default transport of the smoke control);
  • a MySQL/MariaDB client, passed to the capture scripts with --sql-cmd;
  • a POSIX shell inside the target, only for metrics/files.tsv, whose metrics are shell commands run there.

Getting started

Install the plugin (see above), then ask the agent:

"Migrate my PrestaShop shop to version 9"

The agent first reads what the shop's files already tell — its version, its name, whether it is multistore or sells in several markets, how much custom code it carries — and shows you a short summary to confirm. It then asks only what no file holds: who does what (merchant, agency, host) and how the server can be reached. It creates the migration dossier and drafts the request to the host for what takes time to get (access logs, scheduled jobs, the settings file). Everything after installation happens through conversation — no CLI commands to memorise.

Each skill knows its own gate and proves it before moving on to the next phase: audit, data, modules, theme, integrity, cutover.

Recommended model

Claude Opus 5.5. The plugin was built and proven with it: every measurement in docs/maturity.md was made with it, on three real shops. The skills are plain instructions every agent of the Installation section loads, whatever its model. But the method asks the agent to prove each gate before moving on and to ask only what no file holds: a lighter model follows it less closely, and the migration is slower for it.

Skills

Skill Phases Purpose
prestashop-upgrade-toolbox-core — Shared base: source/clone/target topology, version-pinned PrestaShop facts, containment, and the rules that make a control able to fail
prestashop-upgrade-toolbox-audit 0–2 Get a reference copy running on a modern stack, audit it (core, overrides, modules, theme, data, files, integrations, business perimeter), decide upgrade vs fresh
prestashop-upgrade-toolbox-data 3–4 Carry the data over: upgrade chain, transplant into a fresh install, clean-up, files, replayable database steps
prestashop-upgrade-toolbox-modules 5 Inventory, a written decision per module, the port, proof by effect — payment and shipping always from the Marketplace
prestashop-upgrade-toolbox-module-rewrite 5 Rewrite overrides, 1.6-only modules, direct scripts and custom integrations as a module for the target
prestashop-upgrade-toolbox-theme 6 Reproduce the old storefront on PrestaShop 9: capture, HTML templates, a child theme of hummingbird, polish loops, gate on staging
prestashop-upgrade-toolbox-integrity 7–8 Prove nothing was lost, then cut over: independent controls per kind of damage, freeze / gate / rollback

Skills are auto-discovered from the skills/ directory.

The theme skill targets PrestaShop 9 and hummingbird only.

The migration dossier

Every migration keeps a dossier, migration/ at the root of the shop's project, written in the merchant's language: a README stating each step, one file per step (audit, data, modules, theme, integrity, cutover) and a dated journal. A step is done only when its gate carries the STATUS: line of each control and its date — skills/prestashop-upgrade-toolbox-core/scripts/dossier.py check refuses anything else. check --write also writes dossier.html, one self-contained page for the merchant, the agency and the host: the state of every step and gate read from the step files, the journal, and what each skill wrote for a reader in page/. See prestashop-upgrade-toolbox-core, "The migration dossier".

Repository structure

skills/<skill>/SKILL.md          the skill itself
skills/<skill>/references/       loaded on demand (progressive disclosure)
skills/<skill>/scripts/          deterministic controls: KEY=VALUE lines, a final STATUS: line
skills/<skill>/scripts/metrics/  declarative metric sets (TSV) for capture/compare
skills/<skill>/tests/            stubbed tests — every control with its proven failure case
.claude-plugin/ .cursor-plugin/ .codex-plugin/ .agents/plugins/
                                 one manifest per agent host that needs one, all pointing at skills/
tools/manifests/                 checks that every manifest points at the same, full plugin
tools/check-neutrality.sh        the neutrality gate
docs/                            maturity and other documentation for humans

The repository also holds trigger evaluation sets (tools/trigger-eval/), which measure whether the descriptions of four skills (audit, data, theme, integrity) trigger on the right requests.

Contributing

Contributions are welcome: bug reports, fixes, new checks, corrected version facts. Read CONTRIBUTING.md first, and follow the Code of Conduct.

To report a security vulnerability, do not open a public issue: see SECURITY.md.

License

Copyright © 2026 PrestaShop SA and Contributors. Licensed under the Open Software License version 3.0 — see LICENSE.

PrestaShop is a trademark of PrestaShop SA. Claude, Claude Code, Cursor, Codex, Gemini and every other product name cited here are trademarks of their respective owners; this project is not affiliated with or endorsed by them.

About

AI agent skills that migrate a legacy PrestaShop 1.6 / 1.7 shop onto PrestaShop 9 - audit, data, modules, theme, integrity checks and cutover, each phase proven by deterministic controls. For Claude Code, Cursor, Codex and Gemini CLI. Read-only towards production.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

14 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages