enonic-controller-generator

Generates TypeScript/JavaScript controllers and paired XML descriptors for pages, parts, layouts, processors in Enonic XP projects.

1|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/webmaxru/enonic-agent-skills --skill enonic-controller-generator
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: enonic-controller-generator
Source: https://github.com/webmaxru/enonic-agent-skills/tree/main/skills/enonic-controller-generator
Command: npx skills add https://github.com/webmaxru/enonic-agent-skills --skill enonic-controller-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

The Enonic XP Controller Generator reduces manual boilerplate by scaffolding controller files and XML descriptors for pages, parts, layouts, and processors in Enonic XP projects.

Core Features & Use Cases

  • Generates TypeScript/JavaScript controllers alongside paired XML descriptors for pages, parts, and layouts
  • Includes reusable templates and guidance for Thymeleaf/Mustache rendering and portal API usage
  • Supports a range of component types (pages, parts, layouts, processors) with deterministic project structure
  • Use cases include rapid scaffolding of UI components for new sites or features with consistent conventions

Quick Start

Run the generator to scaffold a new Enonic XP controller set by providing the component name.

Frequently Asked Questions about enonic-controller-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Enonic XP controllers and XML descriptors?โ–ผ

The generator automates scaffolding Enonic XP controllers and XML descriptors by using predefined templates. You provide a component name, and it produces paired TypeScript or JavaScript controllers with corresponding XML descriptors for pages, parts, layouts, and processors.

What is the best way to scaffold UI components for Enonic XP projects?โ–ผ

The best way to scaffold UI components for Enonic XP projects is using a template-based generator. It ensures deterministic project structure and consistent conventions by automatically wiring templates to the site structure and applying region mappings for pages, parts, and layouts.

Can I generate both TypeScript controllers and XML descriptors for Enonic XP pages?โ–ผ

Yes, you can generate paired TypeScript controllers and XML descriptors for Enonic XP pages. The generator targets Enonic XP projects to scaffold these UI components, applying region mappings and wiring templates to the appropriate site structure.

Does the Enonic XP controller generator support Thymeleaf and Mustache rendering?โ–ผ

Yes, the Enonic XP controller generator includes reusable templates and guidance for Thymeleaf and Mustache rendering. It supports portal API usage when scaffolding pages, parts, layouts, and processors with consistent conventions.

Do I need to manually configure region mappings when scaffolding Enonic XP layouts?โ–ผ

No, you do not need to manually configure region mappings when scaffolding Enonic XP layouts. The generator automatically applies region mappings and wires templates to the appropriate site structure, eliminating manual boilerplate for pages, parts, and layouts.

What component types are supported by Enonic XP scaffolding tools?โ–ผ

Enonic XP scaffolding tools support pages, parts, layouts, and processors. The generator produces deterministic project structures by creating paired TypeScript or JavaScript controllers and XML descriptors for these specific component types.