Agent skill
typo3-extension-upgrade
Agent Skill: Systematic TYPO3 extension upgrades to newer LTS versions. Covers Extension Scanner, Rector, Fractor, PHPStan, and testing. Use when upgrading extensions to newer TYPO3 versions or fixing compatibility issues. By Netresearch.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/typo3-extension-upgrade
SKILL.md
TYPO3 Extension Upgrade
Systematic framework for upgrading TYPO3 extensions to newer LTS versions.
Scope: Extension code upgrades only. NOT for TYPO3 project/core upgrades.
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 |
Planning Phase (Required)
Before ANY code changes for major upgrades (PHP version drops, TYPO3 major versions):
- List all files with hardcoded versions (composer.json, CI, Docker, Rector)
- Document scope - how many places need changes?
- Present plan to user for approval
- Track progress with todo list
See references/pre-upgrade.md for detailed planning checklist.
Generic Upgrade Workflow
- Complete planning phase (above)
- Create feature branch (verify git clean)
- Update
composer.jsonconstraints for target version - Run
rector process --dry-run→ review → apply - Run
fractor process --dry-run→ review → apply - Run
php-cs-fixer fix - Run
phpstan analyse→ fix errors - Run
phpunit→ fix tests - Test in target TYPO3 version(s)
Quick Commands
./vendor/bin/rector process --dry-run && ./vendor/bin/rector process
./vendor/bin/fractor process --dry-run && ./vendor/bin/fractor process
./vendor/bin/php-cs-fixer fix && ./vendor/bin/phpstan analyse && ./vendor/bin/phpunit
Configuration Templates
Copy from assets/ and adjust for target version:
rector.php,fractor.php,phpstan.neon,phpunit.xml,.php-cs-fixer.php
References
| Topic | File |
|---|---|
| Pre-upgrade checklist | references/pre-upgrade.md |
| API changes by version | references/api-changes.md |
| Real-world patterns | references/real-world-patterns.md |
TYPO3 Changelogs
| Version | Changelog |
|---|---|
| v14 | Changelog-14 |
| v13 | Changelog-13 |
| v12 | Changelog-12 |
Success Criteria
rector/fractor --dry-runshow no changesphpstan analysepasses- All tests pass
- Extension works in target TYPO3 version
Contributing: https://github.com/netresearch/typo3-extension-upgrade-skill
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?