
typo3-extension-upgrade
Upgrade planner and scanner that move TYPO3 extensions to newer LTS versions with PHP compatibility.
- GitHub stars
- 92
What it does
- Adds
/assessand/rectorcommands plus anupgrade-planneragent for TYPO3 extension upgrades - Covers Extension Scanner assessment, Rector PHP migrations, and Fractor migrations for FlexForms, TypoScript, YAML, and Fluid
- Documents version-specific paths for v11 to v12, v12 to v13, v13 to v14, and dual v12 plus v13 compatibility
- Designed for extension developers who need one codebase to work with an upgraded TYPO3 LTS or two versions at once
Systematic TYPO3 extension upgrades to newer LTS versions with modern PHP compatibility. Extension Scanner assessment, Rector for PHP migrations, Fractor for FlexForms/TypoScript/YAML/Fluid, PHPStan, and testing setup. Version-specific guidance for v11→v12, v12→v13, and dual-compatibility.
Add marketplace
/plugin marketplace add netresearch/claude-code-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install typo3-extension-upgrade@netresearch-claude-code-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceTYPO3 Extension Upgrade Skill
Framework for upgrading TYPO3 extensions to newer LTS versions. Extension code only, not project/core upgrades.
Done is exit=0 from the step 10 command, run last on every line the
constraint names that installs — read from the run, not assumed. Not green on
one line with another left red. Not green because failing tests
were skipped or deleted. Not a commit with --no-verify. Anything short of that is
reported as not done, with the lines that show why.
A commit hook that fails is a check the repository requires, not an obstacle.
Read which command it ran, run that command yourself, fix what it reports, and
commit again: code style is usually fixed by the repository's own fixer
(php-cs-fixer fix with its config), PHPStan findings are fixed in the code.
Measured: three agents with both TYPO3 lines green bypassed the style or PHPStan
hook with --no-verify, and a fourth bypassed its own failing unit tests.
Upgrade Toolkit
| Tool | Purpose | Files |
|---|---|---|
| Extension Scanner | Diagnose deprecated APIs | TYPO3 Backend |
| Rector | Automated PHP migrations | .php |
| Fractor | Non-PHP migrations | FlexForms, TypoScript, YAML, Fluid |
| PHPStan | Static analysis | .php |
Core Workflow
-
Complete planning phase (consult
references/pre-upgrade.md) -
Create feature branch (verify git is clean)
-
Update
composer.jsonconstraints for the target version. v14's LTS minor is 3: write^14.3, never^14.4—^13.4 || ^14.3to support both. v11.5, v12.4 and v13.4 make14.4look like the next in line; it matches no release, socomposer updatefails dependency resolution, exits non-zero and installs nothing. Constraints for every version pair:references/upgrade-v13-to-v14.mdAdding a version is not replacing one. Writing
^14.3alone drops support for every line the extension had before, which is a breaking change for everyone installing it — and it is the cheap way to make the new line resolve, so it happens by accident. "Make it work with the current LTS" asks for the new line, not for the loss of the old ones. Read the existing constraint and keep every line in it, then add the target:^12.4 || ^13.4becomes^12.4 || ^13.4 || ^14.3, and only an extension that already supported v13 alone ends up at^13.4 || ^14.3. Drop a line only where that was asked for, and say so where a maintainer will see it. Whether one codebase can serve them all is a separate question, answered inreferences/dual-compatibility.md. -
Audit third-party dependencies for major version changes (consult
references/third-party-dependency-upgrades.md) -
Run
rector process --dry-runthen review and apply -
Run
fractor process --dry-runthen review and apply -
Run
php-cs-fixer fix -
Run
phpstan analyseagainst each supported dependency version and fix errors -
Run
phpunitand fix tests.Tests/is part of the upgrade, not a consequence of it. A class v14 removed, referenced from a test, is fatal rather than failing: in an import, a parent, a property or a signature it stops PHPUnit while it loads the suite, so nothing runs at all. Search for the removed types across both trees before running anything:grep -rnE 'TypoScriptFrontendController|StandaloneView|TemplateView|HashService|LocalPreviewHelper|LocalCropScaleMaskHelper|FreezableBackendInterface' Classes/ Tests/Every hit is a fix, and deleting theuseline is not one: without the import,Foo::classresolves through the current namespace, so the file names a class nobody ever wrote and the error surfaces later, on the line that still has to support the old version. Change the usage, not the import.createMockon a removed class cannot be repaired by swapping the name either — seereferences/upgrade-v13-to-v14.mdThen run this, from the extension root, before the suite and again after the edits. It is the check for the edit above, as a block that runs as pasted — no path to find, no variable to bind. A line of output is a file that uses a removed type by its short name with no
useline for it; fix each one before step 10. No output and exit 0 is clean — it exits 1 on a finding, so&& phpunitafter it does not run the suite over the fault.types='TypoScriptFrontendController|StandaloneView|TemplateView|HashService|LocalPreviewHelper|LocalCropScaleMaskHelper|FreezableBackendInterface' strip='foreach (token_get_all(file_get_contents($argv[1])) as $t) { if (!is_array($t)) { echo $t; } elseif (!in_array($t[0], [T_COMMENT, T_DOC_COMMENT, T_CONSTANT_ENCAPSED_STRING, T_ENCAPSED_AND_WHITESPACE], true)) { echo $t[1]; } }' bad=0 for f in $(grep -rlE --include='*.php' "\b($types)\b" Classes Tests 2>/dev/null); do code=$(php -r "$strip" "$f") for t in $(grep -oE "\b($types)\b" <<<"$code" | sort -u); do grep -qE "^use .*\\\\$t;" <<<"$code" || grep -qE "\\\\$t\b" <<<"$code" \ || { echo "$f: $t used without import"; bad=1; } done done test "$bad" = 0Comments and string literals are stripped first: a docblock naming a removed type is not a reference PHP resolves. The same check is
TU-58in this skill'scheckpoints.yaml, for the runner inautomated-assessment. The block is here because a script has to be reachable to be a shortcut. Measured on the same case and model, at this step: an instruction to run the runner was in context in three of three trials and run in none; this block, pasted whole, was run in five of six. -
Install the target version and run the suite against it. A green suite on the version already installed proves nothing about the target — that is the old code passing old tests. Install first, in two passes, then test:
composer update "typo3/*" --with typo3/cms-core:^14.3 -W --no-install \ && rm -rf vendor && composer install \ && composer show typo3/cms-core | grep '^versions' \ && vendor/bin/phpunit -c Build/phpunit/UnitTests.xml; echo "exit=$?"Chained, so a failed install stops before PHPUnit runs against the old tree; the
versionsline says what was actually installed, andexit=is the status of whichever step ran last. One pass fails on the way from v13 to v14: Composer upgradestypo3/class-alias-loaderand then runs the old plugin against the new files, which dies withClass "…\CaseSensitiveToken" not foundafter the lock file is written.composer installon top of the oldvendor/dies the same way, sovendor/goes first. The package argument matters: without itcomposer updatemoves every dependency, and the test result then depends on upgrades that have nothing to do with TYPO3.-Wlets the TYPO3 packages' own dependencies follow. If the target will not install, the upgrade is untested. Say so in the report, with the error, and do not report the suite as passing: a green run on the version that was already there is that version's result. -
Run the same command for every older line the constraint keeps —
--with typo3/cms-core:^13.4for^13.4, and so on. A migration that turns the target green can break the line below it: measured, an agent got v14 green, left v13's suite failing, and reported all three lines compatible. Fix, then run every line again. A line that cannot be installed here at all — Composer cannot resolve or download it — is untested, not failed: report it with Composer's error, and never drop it from the constraint for that reason (step 3). -
Before reporting, read the
exit=line of the last run on each line. On a line that installed, anything other thanexit=0means the work is not done: go back to step 9. A line whose install failed is the untested case from step 11. Committing past a red suite, or with--no-verify, is not done either. The report says, per line, what was installed and whether the suite passed — and where it did not, the failure as PHPUnit or Composer printed it. -
Verify success criteria (consult
references/verification.md)
Done means the suite passes on every line the constraint names, with that line installed — every line that can be installed; the rest are reported as untested. Not that the constraint was widened, and not that the suite is green where it was already green.
Measured: agents reported "✅ 719 tests pass" having never installed the target,
having seen the suite fail to load three times, or having seen three errors and
thirteen failures and committed with --no-verify. The run's own exit= line
is what tells you which of those you are in; read it before you write the
report.
Where a removed class is referenced decides when it bites. In an import, a
parent class, a property or a signature it is resolved while PHPUnit loads
the suite, so nothing runs at all and the failure looks nothing like a test
failure. Referenced only inside a method body, it fails when that one test
executes, and the rest of the suite still passes — which is the more
comfortable failure and the easier one to miss in a summary line.
When the migration breaks the tests
It will. A suite that was green before Rector routinely comes back with dozens of errors, and working through them is the job.
Never revert the migration to get back to green. Measured: an agent ran
Rector, saw Tests: 719, Errors: 34, discarded every migrated file under
Classes/, got OK (719 tests, 1176 assertions), and committed
composer.json, ext_emconf.php and two build files — no code at all. That
commit claims support for a version the code does not have, and it is the worst
of the three possible outcomes: a failing upgrade is visible, an unattempted one
is honest, and this one is neither.
Green after a revert is the state you started in. The only green that counts is the one from step 10, with the target version installed and the migration in place.
Skipping or deleting a failing test to get green is the same revert, one
test at a time. One skip is legitimate: where the code branches by version, a
test of the branch that exists only on the older line —
if (!class_exists(X::class)) { self::markTestSkipped(...); } — may skip on
the newer line, provided the newer line's branch has a test of its own. Any
other skip, a version check that returns early, or a removed test method turns
a failure into silence. So does --no-verify on the commit: it silences the
checks that would report it.
Nor stop to ask whether to proceed. Measured: an agent installed the
target, counted the uses of a class the new version removed, ran
git reset --hard, and asked whether it should do the refactoring. A request
to make the extension work with the new version is that permission. Replacing
what the new version removed is the upgrade, however many places use it — it
is the work, not a finding to report back. Ask only about what the request
leaves open, such as dropping a supported line (step 3).
When NOT to Apply Automatically
Do NOT blindly apply Rector/Fractor when dual-version compatibility, missing tests, unclear changes, or complex APIs (DBAL, Extbase) are involved. Instead apply rules manually, testing between changes.
Third-Party Dependency Upgrades
When composer.json widens a dependency to a new major version: enumerate API usages, cross-reference the new API, verify mocks, use adapter pattern for signature differences, run PHPStan per major version. See references/third-party-dependency-upgrades.md.
Quick Commands
rector process --dry-run && rector process # PHP migrations
fractor process --dry-run && fractor process # Non-PHP migrations
php-cs-fixer fix && phpstan analyse && phpunit # Quality checks
Asset Templates
Config templates in assets/: rector.php, fractor.php, phpstan.neon, phpunit.xml, .php-cs-fixer.php
References
| Reference | Use when... |
|---|---|
references/pre-upgrade.md | Planning checklist, version audit, risk assessment |
references/api-changes.md | Checking deprecated/removed APIs by TYPO3 version |
references/api-traps.md | Cross-version footguns: TCA restrictions, boot order, DI bypass, a v12+ redirect() that is not returned; establishing an API fact against TYPO3/typo3 at a ref |
references/upgrade-v11-to-v12.md | Upgrading from TYPO3 v11 to v12 |
references/upgrade-v12-to-v13.md | Upgrading from TYPO3 v12 to v13 |
references/upgrade-v13-to-v14.md | Upgrading from TYPO3 v13 to v14 |
references/dual-compatibility.md | Dual compatibility (v12 + v13) |
references/real-world-patterns.md | Real-world migration examples |
references/toolchain-output.md | Rector/Fractor dry-run output |
references/troubleshooting.md | Rector broke code, PHPStan errors, test failures |
references/third-party-dependency-upgrades.md | Non-TYPO3 dependencies (major version bumps, adapter patterns) |
references/verification.md | Success criteria and real-world testing |
references/multi-version-worktrees.md | Per-LTS worktree layout, backport workflow, cross-version CI matrix |
references/audit-mode.md | Assessing/estimating: ticket only non-automatable findings |
scripts/scan-deprecations.sh <path> | Deterministic grep scan for deprecated/removed APIs and traps |
External Resources
Readme
TYPO3 Extension Upgrade Skill
A Claude Code skill for systematically upgrading TYPO3 extensions to newer LTS versions.
Developed by Netresearch DTT GmbH
🔌 Compatibility
This is an Agent Skill following the open standard originally developed by Anthropic and released for cross-platform use.
Supported Platforms:
- ✅ Claude Code (Anthropic)
- ✅ Cursor
- ✅ GitHub Copilot
- ✅ Other skills-compatible AI agents
Skills are portable packages of procedural knowledge that work across any AI agent supporting the Agent Skills specification.
Overview
This skill guides extension developers through upgrading TYPO3 extensions (third-party or custom) to newer TYPO3 LTS versions with modern PHP compatibility. It covers:
- Extension Scanner - Backend module for diagnosing deprecated/removed APIs
- Rector - Automated PHP code migrations
- Fractor - Automated non-PHP file migrations (FlexForms, TypoScript, YAML, Fluid)
- PHPStan - Static analysis
- PHPUnit - Testing framework setup
Scope
This skill is for extension developers upgrading extension code. It does NOT cover:
- Upgrading TYPO3 project installations
- TYPO3 core upgrades
- Site/instance migrations
Supported Upgrade Paths
| From | To | Status |
|---|---|---|
| v7 | v8 | Documented |
| v8 | v9 | Documented |
| v9 | v10 | Documented |
| v10 | v11 | Documented |
| v11 | v12 | Documented |
| v12 | v13 | Documented |
| v13 | v14 | Monitoring |
| v12 | v12+v13 (dual) | Documented |
Installation
Marketplace (Recommended)
Add the Netresearch marketplace once, then browse and install skills:
# Claude Code
/plugin marketplace add netresearch/claude-code-marketplace
/plugin install typo3-extension-upgrade@netresearch-claude-code-marketplace
Without a marketplace
Since Claude Code 2.1.157 a plugin directory under your personal skills directory loads on its own, including the commands and agents this repo ships:
mkdir -p ~/.claude/skills
git clone https://github.com/netresearch/typo3-extension-upgrade-skill.git \
~/.claude/skills/typo3-extension-upgrade
It loads as typo3-extension-upgrade@skills-dir on the next session. Update with git -C ~/.claude/skills/typo3-extension-upgrade pull and start a new session; remove it by deleting the directory. This route has no claude plugin update.
npx (skills.sh)
Install with any Agent Skills-compatible agent:
npx skills add https://github.com/netresearch/typo3-extension-upgrade-skill --skill typo3-extension-upgrade
Limitation:
npx skillsinstallsSKILL.md-based skills only. This repo also shipsagents,commands, which it does not install — use the marketplace or the skills directory for those.
Download Release
Download the latest release and extract to your agent's skills directory.
Git Clone
git clone https://github.com/netresearch/typo3-extension-upgrade-skill.git
Composer (PHP Projects)
composer require netresearch/typo3-extension-upgrade-skill
Requires netresearch/composer-agent-skill-plugin.
Usage
The skill activates automatically when Claude detects:
- TYPO3 extension upgrade requests
- Compatibility issues with newer TYPO3 versions
- Extension modernization tasks
Example prompts:
- "Upgrade this extension to TYPO3 v13"
- "Make this extension compatible with TYPO3 12 and 13"
- "Fix the deprecated API usage in this TYPO3 extension"
Contents
typo3-extension-upgrade-skill/
├── README.md # This file
├── agents/upgrade-planner.md # Upgrade planning agent
├── commands/ # /assess and /rector slash commands
└── skills/typo3-extension-upgrade/
├── SKILL.md # Main skill instructions
├── checkpoints.yaml # Assessment checkpoints
├── assets/ # Configuration templates
│ ├── rector.php # Rector configuration
│ ├── fractor.php # Fractor configuration
│ ├── phpstan.neon # PHPStan configuration
│ ├── phpunit.xml # PHPUnit configuration
│ └── .php-cs-fixer.php # PHP-CS-Fixer configuration
├── references/ # Detailed documentation (14 files)
│ ├── api-changes.md # Version-specific API migrations (v7-v14)
│ ├── pre-upgrade.md # Pre-upgrade checklist
│ └── ... # Version guides, dual compatibility, verification, troubleshooting
└── scripts/
└── scan-deprecations.sh # Report-only grep scan for deprecated APIs and traps
Key Resources
Official TYPO3 Changelogs
Tools
- TYPO3 Rector - PHP migrations
- TYPO3 Fractor - Non-PHP migrations
- Extension Scanner - API diagnostics
Contributing
Changes are proposed as pull requests against main. New or changed behaviour of a script needs a test in tests/test_scripts.py in the same pull request.
Tests
tests/test_scripts.py holds the behaviour tests for the shell scripts. It uses the Python standard library only and needs python3, bash, GNU grep and git:
python3 tests/test_scripts.py
What the tests cover:
skills/typo3-extension-upgrade/scripts/scan-deprecations.sh: each of the 45 checks against a fixture it must match (a fixture can match other checks too, for example->connect(matches checks 06 and 09), negative cases, the summaries, a missing path and the default target.Build/Scripts/check-plugin-version.shand theBuild/hooks/pre-pushhook that calls it: untagged, matching, mismatching and non-semver tags in a temporary git repository.scripts/verify-harness.sh: harness layouts from empty to complete, over-longAGENTS.md, broken references, undocumented composer scripts, GitHub annotation output and invalid arguments.
evals/run-ab-test.sh has no test: it calls the claude CLI, which runs paid model requests.
A passing run prints a dot per test and ends with OK and exit code 0. A failure prints FAIL: with the test name; for the scan checks the check= and label= fields name the check function and the heading it should have printed, and the exit code is 1. CI runs the same file in the Skill Tests workflow (.github/workflows/tests.yml) on every pull request and every push to main.
Dependencies
- Skill: the skill itself has no runtime dependency.
scan-deprecations.shneeds Bash and GNUgrep(its patterns use\|and\s). - Composer:
composer.jsonrequiresnetresearch/composer-agent-skill-pluginfor installation through Composer. Nocomposer.lockis committed (.gitignore). - Development and CI tools: pre-commit hooks are pinned by
rev:in.pre-commit-config.yaml. CI tools come from the shared workflows innetresearch/.github,netresearch/skill-repo-skillandnetresearch/typo3-ci-workflows, which pin every action by commit SHA. - Updates: Renovate (
renovate.json,config:recommendedwith thepre-commitmanager enabled) opens update pull requests. For pull requests opened by Renovate or Dependabot,auto-merge-deps.ymlapproves them and enables auto-merge through the shared workflow, unless they carry the labeldeps-majorordeps-no-automerge; the merge waits for the required checks. - Checks: dependency review and Composer Audit (see below) check dependency changes on pull requests. New dependencies follow the licence and vulnerability rules of the organisation's handling of dependency and code analysis findings.
Governance and policies
This repository follows the Netresearch organisation policies:
- Governance: ownership, roles, and how decisions are made and disputes resolved.
- Roadmap: planned and explicitly excluded work for the coming year.
- Handling of dependency and code analysis findings: thresholds, deadlines and the exception process for dependency (SCA) and static analysis (SAST) findings.
- Secret management: how CI and release credentials are stored, accessed and rotated.
- Access roster: who holds administrative access to this repository and the organisation.
The security assurance case for this skill (threat model, trust boundaries, countermeasures and limits) is in docs/SECURITY-ASSURANCE.md; components and data flow are in docs/ARCHITECTURE.md.
Checks that run on pull requests in this repository:
- Every pull request: Skill Validation (
lint.yml: skill structure, manifest sync, markdownlint, yamllint, actionlint, JSON syntax, ShellCheck, Ruff, checkpoint schema), Eval Validation (eval-validate.yml), Skill Tests (tests.yml:tests/test_scripts.py), the Labeler (labeler.yml) and Auto-merge dependency PRs (auto-merge-deps.yml, which acts only on Renovate and Dependabot pull requests); configured outside the workflows: SonarCloud and the DCO sign-off check; on pull requests tomainthat are not drafts, also the CodeRabbit review and the Copilot code review that the repository ruleset requests. - Pull requests to
main:security.ymlwith Betterleaks (secret scanning), zizmor (workflow static analysis), dependency review (fails on vulnerabilities of severity high or above), Composer Audit and Opengrep SAST (which findings fail the check is set by the organisation rule), and CodeQL (codeql / Analyze (actions),codeql / Analyze (python)); Harness Verification (harness-verify.yml) and Template Drift (check-template-drift.yml). - Secret detection: Betterleaks in
security.ymlon pull requests tomainand pushes tomain, and GitHub secret scanning with push protection, which is enabled for this repository.
Author
Netresearch DTT GmbH https://www.netresearch.de/
Netresearch is a Leipzig-based technology company specializing in e-commerce, logistics, and TYPO3 solutions. With extensive experience in TYPO3 extension development and maintenance, Netresearch contributes to the TYPO3 ecosystem through open-source extensions and community involvement.
License
This project uses split licensing:
- Code (scripts, workflows, configs): MIT
- Content (skill definitions, documentation, references): CC-BY-SA-4.0
See the individual license files for full terms.
Credits
Developed and maintained by Netresearch DTT GmbH.
Details
- Marketplace
- netresearch/claude-code-marketplace
- Source
- netresearch/typo3-extension-upgrade-skill
- Category
- Development
- Listed since
- Apr 7, 2026
More from netresearch/claude-code-marketplace
All 41- typo3-project-upgrade
- typo3-site-conformance
- typo3-testing
- typo3-typoscript-ref
- typo3-upgrade-effort-model
- typo3-vite
- agent-harness
- agent-rules
- automated-assessment
- cli-tools
- concourse-ci
- context7
- data-tools
- docker-development
- enterprise-readiness
- file-search
- formal-model-checking
- german-technical-writing
- git-workflow
- github-project
- github-release
- go-development
- jira-integration
- jujutsu-workflow
Similar to typo3-extension-upgrade
More Developer Tools
typo3-project-upgradePluginnetresearch/claude-code-marketplace92 starsSystematic TYPO3 project instance upgrades across major LTS versions. sys_template→Site Sets migration, Bootstrap 4→5 patterns, Bootstrap Package v12–v16 breaki
typo3-conformancePluginnetresearch/claude-code-marketplace92 starsEvaluate TYPO3 extensions for conformance to official coding standards, architecture patterns, and best practices. Automated validation scripts for file structu
framework-migrationPluginwshobson/agents42.8K starsFramework updates, migration planning, and architectural transformation workflows
php-modernizationSkillnetresearch/php-modernization-skill462 installsPHP modernization skill covering PHP 8.1-8.5 features, PSR compliance, and static analysis tooling.
dotnet-upgradePlugindotnet/skills6.3K starsSkills for migrating and upgrading .NET projects across framework versions, language features, and compatibility targets.