enonic-controller-generator

Installation
SKILL.md

Enonic XP Controller Generator

Procedures

Step 1: Detect Enonic XP Project

  1. Execute node scripts/find-enonic-targets.mjs <workspace-root> to locate the project root and existing components.
  2. If the script exits with code 1 (no markers found), inform the user that no Enonic XP project was detected and stop.
  3. Record the sitePath from stdout — all generated files target directories relative to this path.

Step 2: Determine Component Type

  1. Identify which component type the user requires:
    • Page — renders a full page, may declare one or more regions.
    • Part — a leaf component with a config form, no regions.
    • Layout — organizes other components via named regions.
    • Response processor — a site-level filter that modifies the HTTP response (e.g., inject scripts).
  2. If the request is ambiguous, ask the user to clarify the component type before proceeding.
Related skills

More from webmaxru/enonic-agent-skills

Installs
104
First Seen
Mar 28, 2026