/redaxo-core:rex-create-modulefrom redaxo-core
Scaffolds REDAXO CMS modules with input/output PHP, REX_VALUE placeholders, and proper escaping. Supports text, textarea, wysiwyg, media, and link fields.
Ships in redaxo-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are helping the user scaffold a new REDAXO module. A module has two parts:
name="REX_INPUT_VALUE[N]")'REX_VALUE[N]', always with rex_escape())Ask the user for:
text – single-line texttextarea – multi-line textwysiwyg – rich text (escape with 'html_simplified' on output)media – single image/file (uses REX_MEDIA[N] widget)medialist – multiple media (uses REX_MEDIALIST[N])link – single internal link (uses REX_LINK[N])linklist – multiple internal links (uses REX_LINKLIST[N])Verify limits: at most 20 REX_VALUE slots, 10 each of REX_MEDIA, REX_MEDIALIST, REX_LINK, REX_LINKLIST. If the user wants more, suggest storing JSON in one REX_VALUE slot or recommending the yform addon.
Generate two files:
<name>_input.php – the editor form, using class="form-control" Bootstrap-style markup that REDAXO ships with in the backend.<name>_output.php – the frontend rendering. Every value touched by an editor must go through rex_escape() with the right strategy.Wrap the input in a <fieldset> with a <legend> matching the module name, so the editor view stays organized.
For media output, look up the rex_media instance to get dimensions and alt text:
<?php if ($filename = 'REX_MEDIA[1]') { $media = rex_media::get($filename); } ?>
<?php if ($media): ?>
<img src="<?= rex_url::media($media->getFileName()) ?>"
alt="<?= rex_escape($media->getTitle()) ?>"
width="<?= $media->getWidth() ?>"
height="<?= $media->getHeight() ?>">
<?php endif; ?>
rex_article:<?php $articleId = (int) 'REX_LINK[1]'; $article = $articleId ? rex_article::get($articleId) : null; ?>
<?php if ($article): ?>
<a href="<?= $article->getUrl() ?>"><?= rex_escape($article->getName()) ?></a>
<?php endif; ?>
Output the two files as separate code blocks the user can copy into the REDAXO backend (Modules → Add new module). Add a short comment at the top of each block: <?php // Input and <?php // Output.
Don't write to disk – modules are stored in the database, not as files. The user pastes the code into the backend UI.
After generating, briefly explain what you produced and remind them to clear the REDAXO cache after creating the module if it's already in use.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub friendsofredaxo/claude-marketplace --plugin redaxo-core11 skills in this plugin
/redaxo-addon-developmentBuilding and maintaining custom REDAXO addons – package.yml, boot.php, install/update/uninstall, lang files, fragments, backend pages, the assets pipeline (and the reinstall-to-sync rule), cache-busting on asset URLs, vendor dependencies, and the common-pitfalls checklist. Use when the user creates a new addon, edits package.yml, sets up backend pages, ships frontend assets from an addon, integrates Composer dependencies, or asks how to package functionality as a reusable addon./redaxo-api-functionsBuilding HTTP/AJAX endpoints in REDAXO using rex_api_function – the lib/ class location, naming convention, $published flag for frontend access, JSON responses, CORS for cross-domain widgets, and the rex-api-call URL. Use when the user adds an AJAX/HTTP endpoint to a custom addon, builds a JSON API for a frontend widget, or asks how to expose data via /index.php?rex-api-call=. Distinct from the FriendsOfRedaxo/api addon (covered by the redaxo-api-addon plugin)./redaxo-architectureREDAXO project structure, request lifecycle, and core classes. Use when the user works on a REDAXO codebase, mentions REDAXO directory layout, asks about rex_addon/rex_config/rex_path/rex_url/rex_clang/rex_request, or when files under redaxo/src/, redaxo/data/, or redaxo/cache/ appear in the conversation./redaxo-console-commandsBuilding CLI / diagnostic / maintenance commands for REDAXO addons using Symfony Console (rex_console_command). Covers the class location, naming convention, package.yml registration, and SymfonyStyle helpers. Use when the user adds a CLI tool to an addon, wants a cronjob entry point, builds a diagnostic command, or asks "how do I run X from the command line in REDAXO". Replaces the anti-pattern of writing standalone bootstrap scripts in bin/./redaxo-extension-pointsREDAXO Extension Points – the hook system for modifying core/addon behavior without patching files. Use when the user mentions rex_extension::register, hooks into events like ART_CONTENT / OUTPUT_FILTER / PACKAGES_INCLUDED, or wants to extend backend pages and content./redaxo-metainfo-fieldsDefining and managing REDAXO metainfo fields (cat_*, art_*, med_*) – the SELECT/RADIO/CHECKBOX `params` separator rules (| between options, : inside an option), the SQL-query escape hatch, the rex_metainfo_add_field idempotency caveat, and filtering categories by metainfo via rex_navigation::addFilter. Use when the user adds a metainfo field, sees broken/extra options in a metainfo dropdown, writes idempotent setup scripts that touch metainfo, or filters navigation by category metainfo.Other plugins' skills for the same job