typo3-batch
БесплатноБез исполняемых скриптовНе проверенPlans and executes batch TYPO3 migrations and large-scale refactors across hooks, PSR-14 events, TCA, dependency injection, Fluid, namespaces, ext_localconf…
от dirnbauer★ 33 звезды на GitHubОб этом скилле
TYPO3 Batch Operations
Adapted from Boris Cherny's (Anthropic) Claude Code
/batchskill for TYPO3 contexts. Target: TYPO3 v14.x only.
Orchestrate large-scale, parallelizable changes across a TYPO3 codebase. Decompose work into 5–30 independent units, present a plan, then execute each unit with verification.
Process
- Research: Scan codebase to find all affected files
- Decompose: Split work into independent, non-conflicting units
- Plan: Present numbered plan to user for approval
- Execute: Apply each unit, run verification after each
- Report: Summarize changes, list any failures
Execution Rules
- Each unit must be independently verifiable
- Never modify the same file in two different units
- Run
composer normalize/php -l/ PHPStan after PHP changes - Run tests if available (
vendor/bin/phpunit) - Commit each unit separately with descriptive message
- Stop and report if a unit breaks tests
Common TYPO3 Batch Operations
1. Hook → PSR-14 Event Migration
Research: Find all entries in $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'] and
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'].
Decompose: One unit per hook class.
Per unit:
1. Identify the hook interface/method
2. Find the corresponding PSR-14 event (see mapping below)
3. Create new event listener class with #[AsEventListener]
4. Move logic from hook method to __invoke()
5. Remove hook registration from ext_localconf.php
6. If **not** using `#[AsEventListener]`: register the listener in `Services.yaml`. With the attribute and `autoconfigure: true` (default), no extra `tags:` entry is required.
7. Run php -l on new file
Hook → event mapping (verify in Core event lists):
DataHandler (
t3lib/class.t3lib_tcemain.php): TYPO3 Core does not expose generic PSR-14 events named likeBeforeRecordOperationEvent/AfterRecordOperationEventunderTYPO3\CMS\Core\DataHandling\Event. For datamap/cmdmap reactions, useSC_OPTIONShook classes (see typo3-datahandler §9). Do not “migrate” those hooks to non-existent events.
| Hook / legacy API | Typical direction |
|---|---|
processDatamap_afterDatabaseOperations / related SC_OPTIONS |
Keep processDatamapClass hook methods (no 1:1 Core event) |
processDatamap_preProcessFieldArray |
Keep hook or narrow Core events for your table/field if documented |
processCmdmap_postProcess |
Keep processCmdmapClass hook methods |
drawHeaderHook |
ModifyPageLayoutContentEvent (Breaking #96526) |
drawFooterHook |
ModifyPageLayoutContentEvent (Breaking #96526) |
checkFlexFormValue |
Still often a hook; AfterFlexFormDataStructureParsedEvent is for DS parsing, not a drop-in for validation — confirm in Core for your case |
PageRenderer render hooks (render-preProcess, render-postProcess) |
No 1:1 PSR-14 replacement; prefer PSR-15 middleware for render-pipeline manipulation |
tslib_fe->contentPostProc (cached) |
AfterCacheableContentIsGeneratedEvent |
tslib_fe->contentPostProc (output) |
No PSR-14 event — use a PSR-15 middleware (Deprecation #91012); AfterCachedPageIsPersistedEvent replaces insertPageIncache, not this hook |
tslib_fe->contentPostProc (all) |
AfterCacheableContentIsGeneratedEvent (Breaking #97862; also covers usePageCache) |
BackendUtility->getPagesTSconfig |
ModifyLoadedPageTsConfigEvent |
generatePageTSconfig |
ModifyLoadedPageTsConfigEvent |
Not 1:1 replacements (verify before batch-rewriting):
drawHeaderHook/drawFooterHook— Page module header/footer integration points. Replaced byModifyPageLayoutContentEvent(Breaking #96526), which lets listeners add or change header and footer content;ModifyButtonBarEventcovers the button bar only and is not the migration target.tslib_fe->contentPostProc— Sub-hooks (all,cached,output) run at different FE pipeline stages. Map cached and all (plususePageCache) →AfterCacheableContentIsGeneratedEvent, andinsertPageIncache→AfterCachedPageIsPersistedEvent(Breaking #97862);outputhas no PSR-14 event — use a PSR-15 middleware instead.
2. TCA modernization (cumulative toward v14 target)
Research: Scan all Configuration/TCA/ and Configuration/TCA/Overrides/ files.
Decompose: One unit per TCA file.
Per unit:
1. Replace 'eval' => 'required' → 'required' => true
2. Replace 'eval' => 'trim' → keep where trimming is desired (trim is NOT applied by default)
3. Replace 'eval' => 'null' → 'nullable' => true
4. Replace 'eval' => 'int' → 'type' => 'number'
5. Replace 'renderType' => 'inputDateTime' → 'type' => 'datetime'
6. Replace 'renderType' => 'inputLink' → 'type' => 'link'
7. Replace 'renderType' => 'colorPicker' → 'ty
Установить typo3-batch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл typo3-batch?
Plans and executes batch TYPO3 migrations and large-scale refactors across hooks, PSR-14 events, TCA, dependency injection, Fluid, namespaces, ext_localconf, Content Blocks, localization, and PHP upgrades. Use when the user asks for bulk migration, mass refactor, codemod-style TYPO3 updates, repeated fixes across an extension, or coordinated v14 modernization.
Как установить скилл typo3-batch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typo3-batch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic