
enonic-webhook-integrator
Sets 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.
- Installs
- 144
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/webmaxru/enonic-agent-skills --skill enonic-webhook-integrator- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads enonic-webhook-integrator automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Enonic Webhook Integrator
Procedures
Step 1: Detect the Enonic XP project
- Execute
node scripts/find-enonic-targets.mjs .to locate Enonic XP project roots in the workspace. - If the script returns an empty array, stop and explain that no Enonic XP project was found.
- If multiple projects are found, ask which project should receive the integration.
- Identify the application key from
gradle.properties(appName) orbuild.gradle.
Step 2: Determine integration direction
- Classify the task as one of: outbound event listener (XP reacts to internal events and calls an external system), outbound webhook config (XP sends webhook payloads via built-in config), inbound webhook endpoint (XP receives payloads from an external system), or mixed (combination).
- Read
references/event-reference.mdto identify the correct event types, listener patterns, and filtering strategies. - Read
references/webhook-reference.mdwhen the task involves outbound webhook configuration or inbound HTTP service endpoints.
Step 3: Implement outbound event listener (if applicable)
- Read
assets/event-listener.template.tsas a starting scaffold. - Register the event listener in the application's
main.ts(ormain.js) controller using lib-event'slistener()function. - Use the
typeparameter with a pattern matching the target node events (e.g.,node.pushed,node.created,node.updated,node.deleted). - Filter events by path within the callback by checking
event.data.nodes[].pathto restrict processing to the intended content tree. - When the listener must call an external HTTP endpoint, use lib-httpClient's
request()function inside the callback or delegate to a background task. - For long-running processing, delegate work from the event callback to a background task using lib-task's
executeFunction()to avoid blocking the event thread. - Read
references/examples.mdfor complete integration patterns including CDN invalidation, search reindexing, and notification dispatch.
Step 4: Configure outbound webhooks (if applicable)
- Read
references/webhook-reference.mdfor thecom.enonic.xp.webhooks.cfgconfiguration format. - Create or update the file at
XP_HOME/config/com.enonic.xp.webhooks.cfgwith webhook entries specifying the target URL and event types. - Validate that the configured event types match the intended content lifecycle events.
- Use HTTPS URLs for webhook targets.
- Never write actual secret values into configuration files or source code. Use descriptive placeholder tokens (e.g.,
REPLACE_WITH_CDN_SECRET) and instruct the operator to substitute real credentials out-of-band. Secrets must be managed by the operator through secure deployment pipelines, environment variables, or secret management tools—not committed to files.
Step 5: Implement inbound webhook endpoint (if applicable)
- Read
assets/http-service.template.tsas a starting scaffold. - Create an HTTP service controller at
src/main/resources/services/<serviceName>/<serviceName>.ts. - Export a
post(req)function that parses the incoming JSON payload fromreq.body. - Reject payloads exceeding a reasonable size limit (e.g., 1 MB) before parsing.
- Validate the inbound payload by checking required fields, authentication headers, or HMAC signatures before processing.
- Sanitize all string fields from the external payload before using them in content operations: trim whitespace, enforce maximum lengths, strip or escape HTML/script content, and reject values containing path traversal sequences (
..,/,\). - Use an allowlist of expected field names rather than passing the raw payload object to content APIs.
- Return appropriate HTTP status codes:
200for success,400for malformed payloads,401for authentication failures,413for oversized payloads,500for unexpected errors. - When inbound payloads trigger content creation or modification, use lib-content or lib-node APIs within a context run to ensure proper permissions. Never pass unsanitized external values as content names, paths, or keys.
Step 6: Wire async processing with lib-task (if applicable)
- When event handling or webhook processing requires heavy or time-consuming work, wrap it in
executeFunction()from lib-task. - Report progress from long-running tasks using
progress()to allow monitoring. - Read
references/event-reference.mdfor the task event lifecycle (task.submitted,task.updated,task.finished,task.failed).
Step 7: Validate the integration
- Execute
node scripts/find-enonic-targets.mjs .to confirm the project still resolves correctly. - Verify that the event listener registration is in the application's
main.tsormain.jsfile, which runs at application startup. - Confirm that outbound HTTP calls use HTTPS and include error handling for network failures and non-2xx responses.
- Confirm that no actual secret values, API keys, or credentials appear in generated source code or configuration files—only placeholder tokens.
- Confirm that inbound webhook endpoints sanitize and allowlist all fields from external payloads before passing them to content APIs.
- If a webhook config file was created, confirm the event type patterns match the intended triggers.
- Run the workspace build to verify no compilation errors.
- Read
references/troubleshooting.mdwhen events do not fire, webhook deliveries fail, or inbound requests are rejected.
Error Handling
- If
node scripts/find-enonic-targets.mjs .finds no projects, confirm thatbuild.gradlereferencescom.enonic.xpplugins or that asrc/main/resources/site/directory exists. - If events do not fire after registering a listener, read
references/troubleshooting.mdto check listener registration location, event type patterns, and cluster vs. local event scope. - If outbound HTTP calls fail, verify the target URL, network access from the XP instance, and that the operator has substituted placeholder tokens with real credentials.
- If inbound webhook requests return 404, confirm the service controller path follows
services/<name>/<name>.tsand the application is deployed. - If background tasks fail silently, check task state using
taskLib.list()and inspect logs for errors within the task function.
FAQ
What does the enonic-webhook-integrator skill do?
Sets 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.
How do I install enonic-webhook-integrator?
Run npx skills add https://github.com/webmaxru/enonic-agent-skills --skill enonic-webhook-integrator in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/enonic-webhook-integrator/ (personal) or .claude/skills/enonic-webhook-integrator/ (project).
Which AI agents can use enonic-webhook-integrator?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is enonic-webhook-integrator safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains enonic-webhook-integrator?
It is published by webmaxru in webmaxru/enonic-agent-skills. It has 144 recorded installs.
More from webmaxru/enonic-agent-skills
enonic-nextxp-integration
webmaxru/enonic-agent-skills
Open the skill to read its SKILL.md instructions.
agent-skill-deploy
webmaxru/enonic-agent-skills
Deploys agent skill collections from any GitHub repository with a /skills folder to one or more distribution surfaces: GitHub releases, Claude Code marketplace, VS Code plugin marketplace, and Copilot CLI plugin marketplace. Handles pre-flight validation, conventional commit analysis, version bumping across surface configs, and surface-specific publishing with dry-run support. Use when releasing, publishing, or deploying a skills collection to any supported marketplace or creating a GitHub release for a skills repository. Don't use for deploying non-skill packages, npm modules, Docker images, or Azure resources.
enonic-content-type-generator
webmaxru/enonic-agent-skills
Open the skill to read its SKILL.md instructions.
enonic-guillotine-query-builder
webmaxru/enonic-agent-skills
Open the skill to read its SKILL.md instructions.
agent-package-manager
webmaxru/enonic-agent-skills
Installs, configures, audits, and operates Agent Package Manager (APM) in repositories. Use when initializing apm.yml, installing or updating packages, validating manifests, managing lockfiles, compiling agent context, browsing MCP servers, setting up runtimes, or packaging resolved context for CI and team distribution. Don't use for writing a single skill by hand, generic package managers like npm or pip, or non-APM agent configuration systems.
github-agentic-workflows
webmaxru/enonic-agent-skills
Authors, reviews, installs, and debugs GitHub Agentic Workflows in repositories, including workflow markdown, frontmatter, gh aw compile and run flows, safe outputs, security guardrails, and operational patterns. Use when creating or maintaining GH-AW automation. Don't use for standard deterministic GitHub Actions YAML, generic CI pipelines, or non-GitHub automation systems.
Popular backend & apis skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
entra-app-registration
microsoft/azure-skills
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
google-agents-cli-adk-code
google/agents-cli
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).
embedded-captions
heygen-com/hyperframes
Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet anchor rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.
entra-agent-id
microsoft/azure-skills
Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmipath token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).
neon
neondatabase/agent-skills
Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASEURL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.