Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

enonic-webhook-integratorenonic webhook 集成器

Agent Skill

enonic-webhook-integrator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,788

周安装

76

GitHub Stars

公开资料未说明

下载量

626
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:enonic-webhook-integrator(enonic webhook 集成器)
来源仓库:https://github.com/webmaxru/enonic-agent-skills
仓库路径:skills/enonic-webhook-integrator
安装命令:
npx skills add https://github.com/webmaxru/enonic-agent-skills --skill enonic-webhook-integrator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/webmaxru/enonic-agent-skills --skill enonic-webhook-integrator

简介

为 Enonic XP 应用添加内外向 webhook 集成功能,支持事件驱动通信。

  • 可配置出站监听器或入站接收器,适配不同外部系统对接需求。
  • 自动提取应用密钥并定位项目根目录,生成合规的 webhook 注册脚本。
  • 操作涉及网络请求与配置变更,建议在测试环境先行验证后再部署至生产。
  • enonic-webhook-integrator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Enonic Webhook Integrator

Procedures

Step 1: Detect the Enonic XP project

  1. Execute node scripts/find-enonic-targets.mjs. to locate Enonic XP project roots in the workspace.
  2. If the script returns an empty array, stop and explain that no Enonic XP project was found.
  3. If multiple projects are found, ask which project should receive the integration.
  4. Identify the application key from gradle.properties (appName) or build.gradle.

Step 2: Determine integration direction

  1. 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).
  2. Read references/event-reference.md to identify the correct event types, listener patterns, and filtering strategies.
  3. Read references/webhook-reference.md when the task involves outbound webhook configuration or inbound HTTP service endpoints.

Step 3: Implement outbound event listener (if applicable)

  1. Read assets/event-listener.template.ts as a starting scaffold.
  2. Register the event listener in the application's main.ts (or main.js) controller using lib-event's listener() function.
  3. Use the type parameter with a pattern matching the target node events (e.g., node.pushed, node.created, node.updated, node.deleted).
  4. Filter events by path within the callback by checking event.data.nodes[].path to restrict processing to the intended content tree.
  5. When the listener must call an external HTTP endpoint, use lib-httpClient's request() function inside the callback or delegate to a background task.
  6. 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.
  7. Read references/examples.md for complete integration patterns including CDN invalidation, search reindexing, and notification dispatch.

Step 4: Configure outbound webhooks (if applicable)

  1. Read references/webhook-reference.md for the com.enonic.xp.webhooks.cfg configuration format.
  2. Create or update the file at XP_HOME/config/com.enonic.xp.webhooks.cfg with webhook entries specifying the target URL and event types.
  3. Validate that the configured event types match the intended content lifecycle events.
  4. Use HTTPS URLs for webhook targets.
  5. 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)

  1. Read assets/http-service.template.ts as a starting scaffold.
  2. Create an HTTP service controller at src/main/resources/services/<serviceName>/<serviceName>.ts.
  3. Export a post(req) function that parses the incoming JSON payload from req.body.
  4. Reject payloads exceeding a reasonable size limit (e.g., 1 MB) before parsing.
  5. Validate the inbound payload by checking required fields, authentication headers, or HMAC signatures before processing.
  6. 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 (.., /, \).
  7. Use an allowlist of expected field names rather than passing the raw payload object to content APIs.
  8. Return appropriate HTTP status codes: 200 for success, 400 for malformed payloads, 401 for authentication failures, 413 for oversized payloads, 500 for unexpected errors.
  9. 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)

  1. When event handling or webhook processing requires heavy or time-consuming work, wrap it in executeFunction() from lib-task.
  2. Report progress from long-running tasks using progress() to allow monitoring.
  3. Read references/event-reference.md for the task event lifecycle (task.submitted, task.updated, task.finished, task.failed).

Step 7: Validate the integration

  1. Execute node scripts/find-enonic-targets.mjs. to confirm the project still resolves correctly.
  2. Verify that the event listener registration is in the application's main.ts or main.js file, which runs at application startup.
  3. Confirm that outbound HTTP calls use HTTPS and include error handling for network failures and non-2xx responses.
  4. Confirm that no actual secret values, API keys, or credentials appear in generated source code or configuration files—only placeholder tokens.
  5. Confirm that inbound webhook endpoints sanitize and allowlist all fields from external payloads before passing them to content APIs.
  6. If a webhook config file was created, confirm the event type patterns match the intended triggers.
  7. Run the workspace build to verify no compilation errors.
  8. Read references/troubleshooting.md when 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 that build.gradle references com.enonic.xp plugins or that a src/main/resources/site/ directory exists.
  • If events do not fire after registering a listener, read references/troubleshooting.md to 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>.ts and the application is deployed.
  • If background tasks fail silently, check task state using taskLib.list() and inspect logs for errors within the task function.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.75%
按下载量换算224

Claude

30.93%
按下载量换算194

Cursor

17.48%
按下载量换算109

Gemini CLI

8.8%
按下载量换算55

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills