/redaxo-core:redaxo-modulesfrom redaxo-core
Creates and edits REDAXO CMS modules with input/output PHP, using REX_VALUE, REX_MEDIA, REX_LINK, and related placeholders for backend content blocks.
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.
Modules are the building blocks of content in REDAXO. Each module has two parts:
Modules are placed inside templates via "slices". Editors can add multiple slices of different module types per article.
| Placeholder | Range | Notes |
|---|---|---|
REX_VALUE[1]…REX_VALUE[20] | 20 slots | text, longtext, anything serializable |
REX_MEDIA[1]…REX_MEDIA[10] | 10 slots | single media file (filename string) |
REX_MEDIALIST[1]…REX_MEDIALIST[10] | 10 slots | comma-separated filenames |
REX_LINK[1]…REX_LINK[10] | 10 slots | single article ID |
REX_LINKLIST[1]…REX_LINKLIST[10] | 10 slots | comma-separated article IDs |
These are hard limits set by the core. If you need more, store JSON in one REX_VALUE or use the yform addon.
Always use name="REX_INPUT_VALUE[N]" (input) but read with REX_VALUE[N] (output). The framework handles the round-trip.
<?php
// Input – module editing form
?>
<fieldset>
<legend>Headline</legend>
<div class="form-group">
<label for="rex-headline">Headline</label>
<input type="text" id="rex-headline" name="REX_INPUT_VALUE[1]"
value="REX_VALUE[1]" class="form-control">
</div>
<div class="form-group">
<label for="rex-text">Text</label>
<textarea id="rex-text" name="REX_INPUT_VALUE[2]"
class="form-control" rows="6">REX_VALUE[2]</textarea>
</div>
REX_MEDIA[widget=1 id=1 preview=1]
REX_LINK[id=1 widget=1]
</fieldset>
For media and link widgets, use the special widget syntax shown above – not plain inputs. They render the matching picker UI in the backend.
Escape user-controlled data when rendering, unless you deliberately output trusted WYSIWYG editor HTML raw (see the output=html exception below). Plain REX_VALUE[n] is already escaped, so read the raw value with output=html before passing it to rex_escape():
<?php
$headline = 'REX_VALUE[id=1 output=html]';
$text = 'REX_VALUE[id=2 output=html]';
$mediaSrc = 'REX_MEDIA[1]';
$linkId = (int) 'REX_LINK[1]';
?>
<section class="content-block">
<h2><?= rex_escape($headline) ?></h2>
<div class="text"><?= nl2br(rex_escape($text, 'html_simplified')) ?></div>
<?php if ($mediaSrc && $media = rex_media::get($mediaSrc)): ?>
<img src="<?= rex_url::media($media->getFileName()) ?>"
alt="<?= rex_escape($media->getTitle()) ?>"
width="<?= $media->getWidth() ?>"
height="<?= $media->getHeight() ?>">
<?php endif; ?>
<?php if ($linkId && $article = rex_article::get($linkId)): ?>
<a href="<?= $article->getUrl() ?>"><?= rex_escape($article->getName()) ?></a>
<?php endif; ?>
</section>
rex_escape() is REDAXO's safe-by-default helper. Pass a strategy as the second argument:
'html' (default) – full HTML escaping'html_attr' – inside HTML attributes'html_simplified' – like 'html', but keeps <b>, <i>, <code>, <kbd>, <var> and <br>'js' – inside <script> blocks'css' – inside <style>'url' – for URL components'html_simplified' does not strip other tags, it escapes them – WYSIWYG HTML (<p>, <a>, lists) would show up as text. For trusted WYSIWYG editor HTML, skip rex_escape() and output REX_VALUE[id=n output=html] directly – this is the one deliberate exception to the escaping rule above; it only neutralises <? / ?> and offers no XSS protection, so use it only for content editors are trusted to write.
When 20 REX_VALUE slots aren't enough or you need structured data:
// Input: hidden field with JSON
<input type="hidden" name="REX_INPUT_VALUE[1]"
value='REX_VALUE[1]' id="rex-data">
// + JS/UI that writes JSON into #rex-data on form submit
// Output: decode safely (REX_VALUE is HTML-escaped, see pitfalls)
$data = rex_var::toArray('REX_VALUE[1]') ?? [];
REX_VALUE[1] and REX_INPUT_VALUE[1] – input form ALWAYS uses REX_INPUT_VALUE, output ALWAYS uses REX_VALUE.rex_escape() – any field touched by an editor must be escaped on output. But REX_VALUE[n] is already escaped (and nl2br()'d): rex_escape('REX_VALUE[1]') double-escapes, so Tom & Jerry is displayed as Tom & Jerry. Escape the raw REX_VALUE[id=n output=html] instead.rex_media's getWidth() / getHeight() or the media_manager addon for responsive variants.json_decode('REX_VALUE[1]', true) – REX_VALUE[n] is substituted HTML-escaped (" → ", in output additionally nl2br()), so json_decode() returns null and sets an error state you'd have to check via json_last_error() – neither the return value nor a thrown exception surfaces it by default, so the fallback kicks in silently. Use rex_var::toArray('REX_VALUE[1]'), which decodes the entities first (compact JSON only – line breaks become <br />), or REX_VALUE[id=1 output=html] for the unescaped value.REX_VALUE output mode – plain REX_VALUE[n] is escaped and nl2br()'d; REX_VALUE[id=n output=html] is raw except for neutralised <?/?>; REX_VALUE[id=n output=php] executes the value as PHP (in the backend it is only syntax-highlighted, and under rex::isLiveMode() it refuses to run at all); REX_VALUE[id=n isset=1] yields true/false for branching (structure/plugins/content/lib/var_value.php). The placeholder is replaced before the code runs, bare or inside a quoted string, so 'REX_VALUE[1]' and REX_VALUE[1] both end up as a valid string literal.What SKILL.md sets; muted values are Claude Code's defaults
11 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.npx claudepluginhub friendsofredaxo/claude-marketplace --plugin redaxo-coreOther plugins' skills for the same job