netresearch/typo3-docs-skill / skills/typo3-docs
typo3-docs
FlaggedUse when TYPO3 extension documentation has to render on docs.typo3.org, which builds a manual from Documentation/guides.xml and reads no Settings.cfg (a single README.rst serves an extension too small for one): when an extension has no documentation yet, or when creating, editing or reviewing Documentation/*.rst, guides.xml, README.md or XLF translations, rendering docs with Docker, TYPO3 RST directives, screenshots, or XLIFF 2-space indentation (TYPO3 v14+).
scripts/check-ui-surface-screenshots.sh
View on GitHub#!/usr/bin/env bash
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: Netresearch DTT GmbH
#
# TD-54: an extension with a user interface shows it at least once.
#
# Binds to what the code registers — backend modules and frontend plugins —
# rather than to a screenshot count, so this cannot ask a library for pictures
# and cannot ask a one-module extension for ten. Deliberately only the zero
# case: how MANY screenshots are enough is not mechanically decidable. Measured
# over the netresearch t3x fleet, one repository keeps eight images for what the
# registries report as a single module, and reading them shows four genuine
# surfaces (administration, configuration, login, user settings) that no
# registry declares. A count-based rule flagged all three such repositories
# wrongly, so it was dropped and only "none at all" remains.
set -euo pipefail
[ -d Documentation ] || exit 0
modules=0
if [ -f Configuration/Backend/Modules.php ]; then
if command -v php >/dev/null 2>&1; then
# shellcheck disable=SC2016 # $m is PHP's variable, not the shell's
modules=$(php -r '$m = @include "Configuration/Backend/Modules.php";
echo is_array($m) ? count($m) : -1;' 2>/dev/null || echo -1)
else
modules=-1
fi
if [ "$modules" = "-1" ]; then
# Old-style registration (ExtensionManagementUtility::addModule) does not
# return an array. Count registrations instead, and say the number is an
# estimate rather than presenting it as a measurement.
modules=$({ grep -cE "addModule|^ {4}'[A-Za-z0-9_]+' *=>" \
Configuration/Backend/Modules.php 2>/dev/null || true; } | head -1)
modules=${modules:-0}
estimated=" (estimated: this Modules.php does not return an array)"
fi
fi
plugins=0
if [ -d Configuration/TCA/Overrides ]; then
# `grep` exits 1 when it matches nothing, and under `set -e` with `pipefail`
# that killed the script before it reached the image count — a silent exit 1
# that reads as a finding. Measured on two repositories of the fleet.
plugins=$({ grep -rhoE 'registerPlugin|addPlugin' Configuration/TCA/Overrides/ 2>/dev/null || true; } | wc -l)
fi
surfaces=$((modules + plugins))
[ "$surfaces" -gt 0 ] || exit 0
images=0
for dir in Documentation/Images Documentation/_Images; do
[ -d "$dir" ] || continue
found=$({ find "$dir" -type f \
\( -iname '*.png' -o -iname '*.avif' -o -iname '*.jpg' -o -iname '*.jpeg' \
-o -iname '*.gif' -o -iname '*.webp' \) 2>/dev/null || true; } | wc -l)
images=$((images + found))
done
[ "$images" -gt 0 ] && exit 0
echo "This extension registers $surfaces user-interface surface(s)${estimated:-} but Documentation/ has no screenshot."
echo " A reader cannot tell what the module or plugin looks like before installing it."
exit 1
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |