/techdebt
Scans files touched during the current session for technical debt based on project coding standards.
Usage
/techdebt
Parameters
None.
What It Does
1. Identify Touched Files
Determines which files were modified during the session using git diff and conversation history. Filters to relevant file types: PHP, HTML (Fluid), TypoScript, YAML, JavaScript, CSS.
2. Scan for Issues
Reads each touched file in full and checks for:
| File Type | Checks |
|---|---|
| PHP | Missing strict_types, missing type hints, ObjectManager usage, deprecated TYPO3 APIs, security issues, untyped properties |
| Fluid (.html) | Unescaped variables, deprecated ViewHelpers, inline styles/scripts |
| TypoScript | Wrong file extensions, missing ifEmpty, deprecated properties |
| TCA | v12/v13 incompatible syntax, deprecated renderType values |
| YAML | Missing autowiring, improper DI configuration |
3. Report Findings
Presents findings grouped by file with:
- File path and line numbers
- Issue type and severity (Critical / Medium / Low)
- Whether the issue was introduced this session or is pre-existing
4. Fix Selected Issues
You choose what to fix:
- All issues (new + pre-existing)
- New issues only
- Critical and Medium only
- None
Fixes are minimal — only the flagged issue is changed, no surrounding refactoring.
5. Verify
Flushes the TYPO3 cache to confirm fixes don’t break anything.
Notes
- Only scans files touched in the current session — not the entire project
- Scans the entire file, not just changed lines
- Does not flag stylistic preferences — only concrete, fixable problems