webmaxru avatar

Enonic Controller Generator

Scaffolds Enonic XP controllers and their paired XML descriptors for pages, parts, layouts, and response processors. It detects your XP project structure, generates TypeScript or JavaScript controller files with proper lib-portal imports and HTTP handlers, writes the matching XML config with regions and form inputs, and creates Thymeleaf or Mustache view templates. It even wires up your build.gradle dependencies and site.xml processor entries. The wizard style prompting works well when you're spinning up new components and need the boilerplate done right. Saves you from the tedious file matching errors that happen when descriptor names don't line up with directory names, which anyone who's worked with XP knows is annoyingly easy to get wrong.

skills.sh installs
477
last updated
Aug 21, 2026

Install

$ npx -y skills add webmaxru/enonic-agent-skills --skill enonic-controller-generator --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

Sponsors

Details

Repository
github.com/webmaxru/enonic-agent-skills
Categories
Frontend Development, Backend & APIs, AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from webmaxru/enonic-agent-skills

All 12
1inertia-rails avatarinertia-rails-typescriptinertia-rails/skillsTypeScript type safety for Inertia Rails (React, Vue, Svelte): shared props, flash, and errors via InertiaConfig module augmentation in globals.d.ts. Use when s473skills.sh installs
2pedronauck avatartailwindcsspedronauck/skillsTailwind CSS v4 conventions — semantic design tokens for theme-safe styling, mobile-first responsive layouts, and v4-first utilities. Use when styling component471skills.sh installs
3sonofmagic avatarweapp-tailwindcsssonofmagic/skills协调 weapp-tailwindcss 相关任务并提供当前安全基线。Use when 用户泛化地询问 weapp-tailwindcss、Tailwind CSS in mini-programs、mini app styling,或尚未明确是接入、迁移、排障、运行时、自定义构建还是 React Native;具体任459skills.sh installs
4bobmatnyc avatarsveltekitbobmatnyc/claude-mpm-skillsSvelteKit - Full-stack Svelte framework with file-based routing, SSR/SSG, form actions, and adapters for deployment452skills.sh installs
5hoodini avatarfigmahoodini/ai-agents-skillsIntegrate with Figma API for design automation and code generation. Use when extracting design tokens, generating React/CSS code from Figma components, syncing 450skills.sh installs
6mblode avatardefine-architecturemblode/agent-skillsGenerates folder structures, module contracts, middleware pipelines, and frontend/backend boundaries for TypeScript full-stack applications, and finds domain-in448skills.sh installs