
typo3-core-contributions
Agent skill that guides TYPO3 Core contributions through Gerrit patches, Forge issues, and CI fixes.
- GitHub stars
- 92
What it does
- Adds the
typo3-core-contributionsskill covering Gerrit review, Forge issue tracking, and GitLab CI debugging for TYPO3 Core - Includes scripts such as
create-commit-message.py,validate-commit-message.py, andsetup-typo3-coredev.shfor commit messages and environment setup - Enforces the TYPO3 commit format with
[TYPE]tags, a requiredResolves:line, and a requiredReleases:line - Designed for developers submitting patches to review.typo3.org who need WIP state handling and CGL, PHPStan, and unit test fixes
Guide contributions to TYPO3 core following official contribution guidelines. Includes patch creation, Gerrit workflow, coding guidelines, testing requirements, and review processes for contributing to the TYPO3 core.
Add marketplace
/plugin marketplace add netresearch/claude-code-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install typo3-core-contributions@netresearch-claude-code-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceTYPO3 Core Contributions
When to Use — route by host
review.typo3.org (Gerrit), forge.typo3.org (Redmine), git.typo3.org/typo3/CI/cms (CI logs) are Core: Forge issues, patches, review, commit format, cherry-picks, rebasing — everything below. git.typo3.org/services/t3o-sites/** is plain GitLab for the t3o sites: no Gerrit, refs/for/main means nothing. Read references/t3o-gitlab-workflow.md first. A vulnerability report goes to the TYPO3 Security Team by e-mail, never into Gerrit, Forge or GitLab: read references/security-report.md before building anything.
Prerequisites
Run ${CLAUDE_SKILL_DIR}/scripts/verify-prerequisites.sh: TYPO3.org account, Gerrit SSH (ssh -p 29418 <user>@review.typo3.org), Git email matching Gerrit.
Workflow
- Setup:
${CLAUDE_SKILL_DIR}/scripts/setup-typo3-coredev.sh - Branch:
git checkout -b feature/<issue>-description - Analyze: root cause, reproduction, affected versions first
- Develop: fix + tests, validate with typo3-conformance-skill. Prove each test fails without the fix —
references/proving-a-test.md - Commit: format below,
Resolves: #<issue>+Releases: - Push:
git push origin HEAD:refs/for/main%wip— a plain push is not WIP; reviewers vote and amending outdates their votes - CI: wait for all jobs, read the actual logs at
git.typo3.org/typo3/CI/cms/-/jobs/<id>, fix ALL failures in one amend+push - Ready: Gerrit UI "Start Review", or
git push origin HEAD:refs/for/main%readywith a new patch set — pushing the commit Gerrit already has is rejected with "(no new changes)" - Review: amend, preserve Change-Id. Fetch the reviewer's patchset first:
git fetch origin refs/changes/XX/NNNNN/N && git reset --soft FETCH_HEAD - Update:
git commit --amend && git push origin HEAD:refs/for/main
Commit Format
[TYPE] Subject (imperative mood, max 52 chars)
How and why (not what). Wrap at 72 chars.
Resolves: #12345
Releases: main, 13.4, 12.4
[BUGFIX] [FEATURE] (main only) [TASK] [DOCS] [SECURITY]; breaking: [!!!], Releases: main only. Every commit MUST carry Resolves:, not Related:. No Signed-off-by: (no git commit -s) and no Assisted-by:/Co-authored-by: — the Core AGENTS.md forbids both; see references/commit-message-format.md.
CI Debugging
Read ALL failing job logs, never guess; fix everything in one patchset. Locally:
./Build/Scripts/runTests.sh -s unit && ./Build/Scripts/runTests.sh -s functional
./Build/Scripts/cglFixMyCommit.sh && ./Build/Scripts/runTests.sh -s phpstan
Key Operations
| Task | Command |
|---|---|
| Push to Gerrit | git push origin HEAD:refs/for/main%wip |
| Mark ready | Gerrit UI "Start Review", or git push origin HEAD:refs/for/main%ready on a new patch set |
| Rebase | git fetch origin && git rebase origin/main |
| Cherry-pick patch | git fetch origin refs/changes/XX/NNNNN/N && git cherry-pick FETCH_HEAD |
| Review another's change | findings as comments (file + line, or /PATCHSET_LEVEL) with unresolved: true, never message alone; references/gerrit-workflow.md § Reviewing Someone Else's Change |
| Install hook | cp Build/git-hooks/commit-msg .git/hooks/ && chmod +x .git/hooks/commit-msg |
| Fix email mismatch | GIT_COMMITTER_EMAIL="registered@email" git commit --amend --no-edit |
| Forge API | ${CLAUDE_SKILL_DIR}/scripts/create-forge-issue.sh, references/forge-api.md |
| t3o GitLab | uv run ${CLAUDE_SKILL_DIR}/scripts/t3o-gitlab.py access|issue|note|mr create|mr update|mr show|mr list|mr discussions|pipeline status|pipeline wait|pipeline failures|link|probe |
| ter gates locally, no Docker | references/t3o-gitlab-workflow.md § Reproducing the gates locally (ter) |
References
| Topic | File |
|---|---|
| Account setup | references/account-setup.md |
| Commit format | references/commit-message-format.md |
| Gerrit workflow | references/gerrit-workflow.md |
| Review patterns | references/gerrit-review-patterns.md |
| Modern patterns | references/modern-typo3-patterns.md |
| DDEV setup | references/ddev-setup-workflow.md |
| Forge API | references/forge-api.md |
| t3o sites on git.typo3.org | references/t3o-gitlab-workflow.md |
| Commit hook | references/commit-msg-hook.md |
| Proving a test | references/proving-a-test.md |
| Reporting a vulnerability | references/security-report.md |
| Proving a finding without a site | references/security-proof-harness.md |
| Troubleshooting | references/troubleshooting.md |
Readme
TYPO3 Core Contributions Skill
An AI skill for guiding contributions to TYPO3 Core through systematic workflows, automated quality checks, and best practices enforcement.
🔌 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 provides comprehensive guidance for contributing to TYPO3 Core, including:
- Gerrit-based code review workflow
- Automated CI/CD debugging
- Commit message formatting
- WIP (Work in Progress) state management
- Testing and quality assurance
- Account setup and prerequisites
Features
🔄 Complete Contribution Workflow
- Step-by-step guidance from setup to patch submission
- Automated detection of common issues
- Best practices enforcement at every stage
🤖 CI/CD Integration
- Systematic debugging of failed GitLab CI jobs
- Pattern recognition for common failures
- Automated fix suggestions
✅ Quality Gates
- Pre-submission validation
- Code style enforcement (CGL)
- PHPStan static analysis
- Comprehensive test coverage
📝 Documentation
- Gerrit workflow reference
- Commit message format guidelines
- Troubleshooting guide for the Gerrit-specific failures
- WIP state management
Quick Start
Prerequisites
Ensure you have:
- Git configured with your TYPO3.org email
- SSH key uploaded to review.typo3.org
- Docker (for DDEV) or native PHP 8.2+ environment
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-core-contributions@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:
mkdir -p ~/.claude/skills
git clone https://github.com/netresearch/typo3-core-contributions-skill.git \
~/.claude/skills/typo3-core-contributions
It loads as typo3-core-contributions@skills-dir on the next session. Update with git -C ~/.claude/skills/typo3-core-contributions 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-core-contributions-skill --skill typo3-core-contributions
Download Release
Download the latest release and extract to your agent's skills directory.
Git Clone
git clone https://github.com/netresearch/typo3-core-contributions-skill.git
Composer (PHP Projects)
composer require netresearch/typo3-core-contributions-skill
Requires netresearch/composer-agent-skill-plugin.
Scope
This skill covers: TYPO3 Core code contributions (PHP, JavaScript, CSS, tests)
- Submission via Gerrit (review.typo3.org)
- Git commit-msg hooks and validation
- Forge issue tracking
- GitLab CI/CD pipeline
Not covered: TYPO3 Documentation contributions
- For documentation work, use: https://github.com/netresearch/typo3-docs-skill
- Documentation uses GitHub Pull Requests, not Gerrit
- Different format (reStructuredText) and workflows
Directory Structure
skills/typo3-core-contributions/
├── SKILL.md # Main skill definition
├── references/
│ ├── account-setup.md # Prerequisites and account configuration
│ ├── commit-message-format.md # Commit message standards
│ ├── commit-msg-hook.md # What the core commit-msg hook checks
│ ├── ddev-setup-workflow.md # DDEV environment setup
│ ├── forge-api.md # Forge (Redmine) REST API
│ ├── gerrit-review-patterns.md # Review feedback patterns
│ ├── gerrit-workflow.md # Complete Gerrit submission workflow
│ ├── modern-typo3-patterns.md # Current TYPO3 coding patterns
│ ├── proving-a-test.md # Showing that a test catches the bug
│ ├── t3o-gitlab-workflow.md # t3o site repositories on git.typo3.org
│ └── troubleshooting.md # Gerrit-specific failures and their fixes
└── scripts/
├── create-commit-message.py # Commit message generator
├── create-forge-issue.sh # Interactive Forge issue creation
├── query-forge-metadata.sh # Forge trackers and categories
├── setup-typo3-coredev.sh # Automated environment setup
├── t3o-gitlab.py # git.typo3.org helper for t3o sites
├── validate-commit-message.py # Commit message validator
└── verify-prerequisites.sh # Prerequisites checker
tests/ # Offline tests for the scripts
assets/commit-template.txt # Git commit message template
Key Workflows
1. Initial Setup
# Verify prerequisites
./scripts/verify-prerequisites.sh
# Setup TYPO3 Core development environment
./scripts/setup-typo3-coredev.sh
2. Create Patch
# Create feature branch
git checkout -b feature/issue-number-description
# Make changes, commit with proper format
git commit -m "[BUGFIX] Fix indexed search null handling
Resolves: #105737
Releases: main"
3. Submit to Gerrit
# Submit as WIP (Work in Progress)
git push origin HEAD:refs/for/main%wip
# After CI passes, mark as ready
git commit --amend --allow-empty --no-edit
git push origin HEAD:refs/for/main%ready
4. Handle CI Failures
The skill provides systematic debugging:
- Check ALL failed job logs
- Identify failure patterns (cgl, phpstan, unit tests)
- Fix all issues in ONE patchset
- Re-submit and verify
WIP State Management
Command-Line Approach (Recommended)
# Set WIP state
git push origin HEAD:refs/for/main%wip
# Remove WIP state
git commit --amend --allow-empty --no-edit
git push origin HEAD:refs/for/main%ready
Web UI Alternative
Open review URL and click "Start Review" button.
Note: SSH gerrit review command does NOT support WIP flags.
Commit Message Format
Required structure:
[TYPE] Short description (max 52 chars)
Extended description explaining the why and how.
Resolves: #12345
Releases: main, 12.4
Types: BUGFIX, FEATURE, TASK, DOCS, SECURITY; a breaking change puts [!!!] in front, as in [!!!][FEATURE]
Required: a Resolves: line and a Releases: line; validate-commit-message.py rejects a message without either
Optional: Related: (but cannot be used alone)
CI/CD Debugging
Common failure patterns:
CGL (Code Style)
Build/Scripts/cglFixMyCommit.sh
git commit --amend --no-edit
PHPStan
Build/Scripts/runTests.sh -s phpstan
# Fix reported issues
Unit Tests
Build/Scripts/runTests.sh -s unit path/to/test
# Fix test failures
Troubleshooting
The skill includes comprehensive troubleshooting for:
- Account Issues: Email mismatch, SSH authentication, commit-msg hook
- CI Failures: CGL, PHPStan, unit tests, functional tests
- Gerrit Issues: WIP state, patch conflicts, rebase requirements
- Testing Issues: Test failures, coverage gaps, fixture setup
- Code Quality: Naming conventions, type safety, defensive programming
See references/troubleshooting.md for detailed solutions.
Real-World Testing
This skill was developed and validated through:
- Forge Issue #105737: TypeError in indexed search
- 7 patchsets with iterative CI debugging
- GitHub PR #397: Documentation improvements
- Live Gerrit testing: WIP workflow validation
All workflows have been tested on actual TYPO3 Core submissions.
Updates and Enhancements
Recent additions:
v1.1.0 (2025-10-27)
- ✅ WIP state management (command-line and web UI)
- ✅ CI failure investigation protocol (423 lines)
- ✅ Troubleshooting guide for the Gerrit-specific failures
- ✅ PHPStan error guidance
- ✅ Code style enforcement patterns
- ✅ Documentation scope clarification
Contributing
To improve this skill:
- Test on real TYPO3 Core contributions
- Document edge cases in troubleshooting guide
- Add automation scripts for common tasks
- Validate against official TYPO3 documentation
Resources
Official TYPO3 Documentation
Related Skills
- TYPO3 Docs Skill - For documentation contributions
Tests
tests/ holds one offline test file per script group. Each runs the shipped script as a user would, with stub curl and ssh commands first in PATH, a throw-away Git configuration and temporary directories, so no test reaches forge.typo3.org, git.typo3.org or review.typo3.org:
tests/validate-commit-message.sh: subject types including[!!!]breaking changes, theResolves:andReleases:footers, theEXT:warning and the body line length.tests/create-commit-message.sh: the generated subject and footers, a validator run over each generated message, and the--outputconfinement.tests/t3o-gitlab.sh: argument parsing, the draft-prefix rule, the pipeline wait budget and the refusal of non-numeric ids.tests/forge-scripts.sh: the requestcreate-forge-issue.shandquery-forge-metadata.shsend, driven through a terminal withscript.tests/verify-prerequisites.sh: the checks against a configured and a misconfigured checkout.
setup-typo3-coredev.sh has no test: it clones TYPO3 Core and starts DDEV.
Run them from the repository root; they need bash, python3, git, jq, timeout (GNU coreutils) and script (util-linux):
rc=0; for t in tests/*.sh; do bash "$t" || { echo "FAILED: $t"; rc=1; }; done; [ "$rc" -eq 0 ]
pre-commit run --all-files
Each check prints ok <check>, or FAIL <check> followed by what was expected and what was found, and a file exits 1 when one of its checks failed. tests/forge-scripts.sh uses the util-linux script -qec, which the BSD script on macOS does not accept. The pre-commit hooks in .pre-commit-config.yaml run the skill validator, the version-parity check, markdownlint, yamllint, actionlint, JSON and YAML syntax, ruff and ShellCheck.
In CI, tests.yml (Skill Tests) runs every tests/**/*.sh on each pull request and push to main, marks a failing file with an error annotation, and fails when no test file runs. A change to a script comes with a test in tests/ that fails without the change.
Dependencies
- Scripts: the Python scripts use the standard library only and start through
uv(uv run <script>or theuv run --scriptshebang), which runs them on Python 3.11 or later and downloads a matching interpreter when none is installed. The shell scripts needcurl,jq,gitandssh, andverify-prerequisites.shandsetup-typo3-coredev.shalsotimeoutfrom GNU coreutils (macOS has none; Homebrew's coreutils installs it asgtimeout, and itslibexec/gnubindirectory onPATHprovidestimeout);setup-typo3-coredev.shalso needs DDEV and Docker. These are system tools the contributor installs:verify-prerequisites.shchecks Git, the Gerrit SSH connection, Composer, PHP and DDEV,setup-typo3-coredev.shchecks Git, DDEV and Docker, and the Forge scripts stop whencurlorjqis missing. - Composer:
composer.jsonrequiresnetresearch/composer-agent-skill-plugin(constraint*), the Composer plugin for packages of typeai-agent-skill. No lock file is committed: the package is installed as a dependency of other projects, whose lock files pin it. - Pre-commit hooks: each hook repository in
.pre-commit-config.yamlis pinned byrev:. - CI: the workflows call reusable workflows of
netresearch/skill-repo-skill,netresearch/.githubandnetresearch/typo3-ci-workflowsat@main; those pin their actions by commit SHA. - Updates: Renovate (
renovate.json, presetgithub>netresearch/renovate-config) opens pull requests for new hook revisions;auto-merge-deps.ymlmerges dependency pull requests once the required checks pass, except those labelleddeps-no-automergeordeps-major. Composer Audit and dependency review check dependency changes on pull requests. - Selection: a new dependency is added only when a script or the tooling needs it, from its upstream source (Packagist, the tool's own repository), under a licence compatible with this repository's.
Governance and policies
This repository follows the Netresearch organisation policies:
- Governance: ownership, roles, 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 and its scripts (threat model, trust boundaries, countermeasures and limits) is in docs/SECURITY-ASSURANCE.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 schemas), Eval Validation (eval-validate.yml) and Skill Tests (tests.yml). - Pull requests to
main:security.ymlwith Composer Audit, SAST (Opengrep; findings handled under the organisation's static analysis rule), Betterleaks secret scanning, zizmor, dependency review (fail-on-severity: high) and CodeQL analysis of Python and the GitHub Actions workflows; Harness Verification (harness-verify.yml); Template Drift (check-template-drift.yml) and the DCO sign-off check. - Also on every pull request: Labeler (
labeler.yml), the dependency auto-merge job (auto-merge-deps.yml, skipped unless a dependency bot opened the pull request), SonarCloud code analysis, Copilot code review (a repository ruleset) and CodeRabbit review. - Required for merging into
main: Skill Validation, Eval Validation, Skill Tests, All security checks (the gate job ofsecurity.yml, which fails when Betterleaks, zizmor, dependency review, Composer Audit with Opengrep, or CodeQL fails) and DCO; themerge-queueruleset's code-scanning rule requires CodeQL results with no error-level alerts and no security alerts of severity high or higher. GitHub secret scanning with push protection is enabled for the repository. - Two static-analysis exceptions are recorded, both explained in the assurance case: the
nosemgrepcomment on theurlopencall int3o-gitlab.py, and the one on theunserializecall inter-seed-from-catalogue.php.
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.
Author
Created for use with Claude Code and TYPO3 Core contributions.
Maintained by: Netresearch DTT GmbH
Support
For issues or questions:
- Open an issue in this repository
- Reference official TYPO3 documentation
- Test workflows on live Gerrit instance
Made with ❤️ for Open Source by Netresearch
Details
- Marketplace
- netresearch/claude-code-marketplace
- Source
- netresearch/typo3-core-contributions-skill
- Category
- Development
- Listed since
- Apr 7, 2026
More from netresearch/claude-code-marketplace
All 41- typo3-ddev
- typo3-docs
- typo3-extension-upgrade
- 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
Similar to typo3-core-contributions
More Git & Releases
typo3-docsPluginnetresearch/claude-code-marketplace92 starsCreate and maintain TYPO3 extension documentation following official TYPO3 documentation standards. Automated extraction with priority-weighted gap analysis, RS
typo3-testingPluginnetresearch/claude-code-marketplace92 starsCreate and manage TYPO3 extension tests with comprehensive testing infrastructure. Includes unit, functional, and acceptance testing support, PHPUnit configurat
developer-essentialsPluginwshobson/agents42.8K starsEssential developer skills including Git workflows, SQL optimization, error handling, code review, E2E testing, authentication, debugging, and monorepo manageme
pr-planSkillboshu2/agentops593 installsPlan a contribution to an open source project before opening the pull request.
pipecat-devPluginpipecat-ai/pipecat17.3K starsDevelopment workflow skills for contributing to the Pipecat project