/enonic-skills:enonic-content-type-generatorfrom enonic-skills
Generates Enonic XP content type XML schema definitions from natural-language descriptions. Covers structured content modeling including input types, form layout, option sets, item sets, mixins, x-data, and content-type inheritance. Use when creating, scaffolding, or generating Enonic XP content type definitions, adding fields or sets to existing content types, or querying Enonic XP input types and super-types. Do not use for non-Enonic content modeling, GraphQL queries, JavaScript/TypeScript controllers, or generic XML editing unrelated to Enonic schemas.
Ships in enonic-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Step 1: Detect Enonic XP Project
node scripts/find-enonic-targets.mjs [workspaceRoot] to locate Enonic XP project roots.Step 2: Gather Requirements
blog-post).Blog Post).base:structured unless the request specifies a folder (base:folder) or another built-in type.references/content-type-reference.md to map natural-language field descriptions to the correct Enonic XP input type and configuration.Step 3: Generate the Content Type XML
assets/content-type.template.xml to obtain the starter template.DISPLAY_NAME with the display name from Step 2.DESCRIPTION with a short description or remove the element if none was provided.<super-type> element to the value determined in Step 2.<form> element with the identified inputs, item sets, option sets, field sets, and mixin references.name attribute using camelCase.type attribute to the exact Enonic XP input type name (case-sensitive).<label>, <occurrences>, <help-text>, <default>, and <config> as required.<config>.<config> with allowContentType, allowPath, treeMode, and hideToggleIcon as specified.<config> with max-length, show-counter, or regexp if validation constraints are requested.<config> with min and max if range constraints are requested.<config> with <timezone>true</timezone> if timezone-aware storage is requested.references/examples.md.Step 4: Write the File
[projectRoot]/src/main/resources/site/content-types/[name]/[name].xml[projectRoot]/src/main/resources/site/mixins/[name]/[name].xml[projectRoot]/src/main/resources/site/x-data/[name]/[name].xmlsite.xml, add <x-data> entries with allowContentTypes and optional attributes as specified.Step 5: Validate Output
<input> has a valid type attribute by cross-referencing references/content-type-reference.md.name attributes are unique within their nesting level.<occurrences> values are logically consistent (minimum <= maximum, or maximum = 0 for unlimited).references/content-type-reference.md without creating files.scripts/find-enonic-targets.mjs exits with a non-zero code, report the stderr message and ask for the project root path manually.references/content-type-reference.md and suggest the closest match. Do not invent input type names.references/troubleshooting.md to diagnose and correct the error, then regenerate the file.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
enonic-skills@webmaxru-ai-native-dev is listed by webmaxru/ai-native-dev — review the source before installing
npx claudepluginhub webmaxru/ai-native-dev --plugin enonic-skills8 skills in this plugin
/enonic-app-managerGuides developers through Enonic CLI commands for sandbox management, project scaffolding, local development, app deployment, and CI/CD pipeline generation. Use when creating Enonic XP sandboxes, starting or stopping local instances, scaffolding projects from starters, running dev mode with hot-reload, deploying apps, or generating CI/CD workflows for Enonic apps. Don't use for writing XP application code (controllers, content types), querying via Guillotine or lib-content APIs, configuring non-Enonic environments, or Docker/Kubernetes deployment of XP./enonic-content-managementGenerates Enonic XP scripts for bulk content operations — creating, updating, querying, migrating, and transforming content using lib-content and lib-node APIs. Covers the query DSL (NoQL), aggregations, batch processing, task controllers for long-running operations, and export/import workflows. Use when writing bulk content creation, update, or deletion scripts, querying with NoQL syntax, migrating content between environments, running long-running task operations, or working with aggregations and paginated retrieval. Do not use for Guillotine GraphQL frontend queries, content type schema definitions, single contentLib.get() calls, or non-Enonic data migration tools./enonic-controller-generatorGenerates Enonic XP controller files (TypeScript/JavaScript) and paired XML descriptors for pages, parts, and layouts. Covers lib-portal imports, HTTP handler exports, region definitions, Thymeleaf/Mustache rendering, and response processors. Use when scaffolding page controllers with regions, part controllers with config access, layout controllers with multi-region support, or response processors for Enonic XP sites. Do not use for content type schemas, headless Next.js/React frontends, GraphQL Guillotine queries, or non-Enonic web frameworks./enonic-event-managerSets up Enonic XP event listeners, webhook configurations, and external system integrations triggered by content lifecycle events. Covers lib-event listener registration, node event filtering, outbound webhook configuration via com.enonic.xp.webhooks.cfg, custom HTTP service controllers for inbound webhooks, task-based async processing with lib-task, and outbound HTTP calls with lib-httpClient. Use when listening for content publish/create/update/delete events, configuring outbound webhooks, building HTTP service endpoints for inbound webhooks, or triggering async processing on content changes. Do not use for content querying, frontend component development, non-Enonic event systems, or GitHub webhook configuration./enonic-guillotine-query-builderComposes, debugs, and optimizes Guillotine GraphQL queries for Enonic XP headless content delivery. Covers query construction, variable usage, filtering, aggregation, pagination, sorting, and TypeScript type generation from the auto-generated Guillotine schema. Use when writing or troubleshooting Guillotine queries, querying custom content types through GraphQL, or generating typed interfaces from Guillotine responses. Don't use for content type XML definitions, non-Enonic GraphQL APIs (Apollo, Hasura), server-side lib-content queries, or Guillotine deployment and CORS configuration./enonic-library-referenceEnonic XP server-side JavaScript/TypeScript API reference for all /lib/xp/* libraries. Provides function signatures, parameters, return types, and usage examples for lib-content, lib-node, lib-auth, lib-portal, lib-context, lib-event, lib-task, lib-repo, lib-io, lib-mail, lib-schema, lib-project, lib-export, lib-scheduler, lib-value, lib-i18n, lib-websocket, lib-admin, lib-app, lib-auditlog, lib-cluster, lib-common, lib-grid, and lib-vhost. Use when looking up Enonic XP library functions, parameter shapes, return types, or usage examples. Do not use for Guillotine GraphQL queries, content type schema definitions, Enonic CLI commands, or non-Enonic JavaScript APIs.