Token导航 LogoToken导航

Agent Skill · 研究检索

enonic-nextxp-integration(enonic nextxp 集成)

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

enonic-nextxp-integration 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 37,406。

总安装 1,740周安装 74GitHub Stars 公开资料未说明下载 610核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/webmaxru/enonic-agent-skills --skill enonic-nextxp-integration

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

实现 Next.js 与 Enonic XP 的无头集成,支持内容映射与数据桥接。自动识别 Next.js 入口、环境变量及适配器引用,生成 _mappings.ts 等配置文件。适用于 Headless CMS 前端部署场景,提升内容交付效率与系统解耦能力。

需确保 workspace 中存在有效项目标记,否则可能无法正确识别集成点。enonic-nextxp-integration 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/enonic-nextxp-integration

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/webmaxru/enonic-agent-skills --skill enonic-ne…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

enonic-nextxp-integration 怎么安装?

在终端执行 npx skills add https://github.com/webmaxru/enonic-agent-skills --skill enonic-nextxp-integ…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

enonic-nextxp-integration 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

enonic-nextxp-integration 需要什么权限?

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

enonic-nextxp-integration 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

enonic-nextxp-integration 用的人多吗?

公开数据是累计安装 1,740 次,近一周安装 74 次,下载 610 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

enonic-nextxp-integration 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
enonic-nextxp-integration

enonic nextxp 集成 · 本页

1,740—接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Next.js + Enonic XP Headless Integration (Next.XP)

Procedures

Step 1: Identify the workspace integration surface

  1. Inspect the workspace for Next.js entry points (next.config.*, package.json with next dependency), Enonic XP app markers (build.gradle with com.enonic.xp), or existing Next.XP adapter references (@enonic/nextjs-adapter).
  2. Execute node scripts/find-nextxp-targets.mjs. to inventory Next.js projects, .env files with ENONIC_* variables, component mapping files (_mappings.ts), and Guillotine query files when a Node runtime is available.
  3. If a Node runtime is unavailable, inspect package.json, .env, and src/components/_mappings.ts manually to identify the integration surface.
  4. If the workspace contains both an Enonic XP app and a Next.js frontend, confirm which side the task targets before proceeding.
  5. If the workspace is not a Next.js + Enonic XP project, stop and explain that this skill does not apply.

Step 2: Configure the Enonic adapter

  1. Read references/nextxp-reference.md before writing or modifying configuration.
  2. Verify or create the .env (or .env.local for local development) file in the Next.js project root with the required variables:

- ENONIC_API_TOKEN — shared secret for preview mode authentication. - ENONIC_APP_NAME — fully qualified Enonic application name (e.g., com.example.myproject). - ENONIC_MAPPINGS — locale-to-project/site mapping (e.g., en:intro/hmdb). - ENONIC_API — base URL for the Guillotine API endpoint (e.g., http://127.0.0.1:8080/site).

  1. Install the @enonic/nextjs-adapter package if not already present: npm install @enonic/nextjs-adapter.
  2. Import @enonic/nextjs-adapter/baseMappings at the top of src/components/_mappings.ts to register built-in component renderers.
  3. Verify the Next.js project was scaffolded from the nextxp-template or contains the expected file structure: src/components/_mappings.ts, src/app/[locale]/[[...contentPath]]/page.tsx, and API routes under src/app/api/.
  4. Read references/compatibility.md to confirm version requirements between @enonic/nextjs-adapter (v4.x), Next.js (16+), React (19), and Enonic XP.

Step 3: Map content types to React components

  1. Read references/nextxp-reference.md for the component registry API and mapping patterns.
  2. Read references/examples.md for complete content type mapping examples including queries, views, and processors.
  3. For each Enonic content type that needs a custom rendering: a. Create a Guillotine GraphQL query function in src/components/queries/ that fetches the fields specific to that content type using type introspection (... on AppName_ContentTypeName). b. For content types with HTML area (rich text) fields, use richTextQuery(fieldName) from @enonic/nextjs-adapter to generate the query fragment. See references/nextxp-reference.md for the rich text rendering section. c. Create a React view component in src/components/views/ that accepts FetchContentResult props and renders the fetched data. Use RichTextView from @enonic/nextjs-adapter/views/RichTextView for HTML area fields. d. Register both in src/components/_mappings.ts using ComponentRegistry.addContentType().
  4. For page components (pages, parts, layouts): a. Define the component XML in the Enonic app under src/main/resources/site/pages/, parts/, or layouts/. b. Create a corresponding React component in src/components/pages/, parts/, or layouts/. Use LayoutProps for layouts and the named RegionView export for individual region rendering. c. Register using ComponentRegistry.addPage(), ComponentRegistry.addPart(), or ComponentRegistry.addLayout().
  5. For layouts, use LayoutProps type and RegionView (singular, named export) for individual regions instead of RegionsView.
  6. Use APP_NAME and APP_NAME_UNDERSCORED imports from @enonic/nextjs-adapter to keep content type references dynamic.

Step 4: Configure Guillotine data fetching

  1. Read references/nextxp-reference.md for the Guillotine query structure and variable passing.
  2. Write GraphQL queries that use $path:ID! as the primary variable for content retrieval via guillotine {get(key:$path) {...}}.
  3. Use type introspection to access content-type-specific fields: ... on AppName_ContentTypeName {data {...}}.
  4. For rich text fields (HtmlArea), use richTextQuery(fieldName) from the adapter instead of querying the field directly. Render with RichTextView from @enonic/nextjs-adapter/views/RichTextView.
  5. For parts and configurable components, export a query object with query(path, context, config) and variables(path, context, config) functions.
  6. Use processors (optional async functions) to post-process query results before passing to the view.
  7. Use ComponentRegistry.setCommonQuery() for data shared across all page components. Remove the common query if not needed to optimize performance.
  8. Use getUrl() and getAsset() helper functions from the adapter for URL handling that works in both standalone and Content Studio preview modes.
  9. For macros in rich text, register them with ComponentRegistry.addMacro() before other components that use RichTextView. See references/nextxp-reference.md for the macro registration API.

Step 5: Enable Content Studio preview mode

  1. Read references/nextxp-reference.md for full preview architecture details.
  2. Install the Next.XP app in Enonic XP: XP Menu → Applications → Install → search "Next.XP".
  3. Add the Next.XP app to the target site in Content Studio via the "Applications" combobox on the site edit view.
  4. Verify default preview configuration: URL http://127.0.0.1:3000 and secret matching ENONIC_API_TOKEN.
  5. For production, configure the Next.XP app with the deployed Next.js URL and shared secret via app config: nextjs.default.url = <Next.js app URL> nextjs.default.secret = <shared secret>
  6. Preview mode automatically switches the Guillotine API to the draft branch, while the public Next.js frontend uses the master (published) branch.
  7. Use getUrl() in all component links to ensure URLs resolve correctly across preview, inline, and edit modes in Content Studio.
  8. If preview shows a blank page, read references/troubleshooting.md for diagnostic steps.

Step 6: Deploy to production

  1. Read references/nextxp-reference.md for the deployment checklist.
  2. Deploy the Enonic app to Enonic Cloud using enonic cloud app install.
  3. Create an ingress in Enonic Cloud to expose the Guillotine API (target path /site, public path /api).
  4. Deploy the Next.js app to Vercel or another hosting platform.
  5. Set production environment variables: ENONIC_API, ENONIC_APP_NAME, ENONIC_API_TOKEN, ENONIC_MAPPINGS.
  6. Configure the Next.XP app in Enonic Cloud to point to the production Next.js URL.
  7. Publish content in Content Studio to make it visible on the live frontend.

Step 7: Validate the integration

  1. Execute node scripts/find-nextxp-targets.mjs. to confirm the adapter, mappings, and env configuration still resolve correctly.
  2. Verify that standalone Next.js rendering works at http://localhost:3000 with published content.
  3. Verify Content Studio preview renders correctly for both draft and published content.
  4. Test content type mappings by visiting content URLs and confirming custom views render.
  5. Use validateData() from @enonic/nextjs-adapter in the page handler to catch invalid content responses. See references/nextxp-reference.md for the SSG page handler pattern.
  6. Run the workspace build (npm run build) to catch TypeScript or build errors.

Error Handling

  • If Content Studio preview shows a blank page, read references/troubleshooting.md for preview proxy diagnostics, token mismatch detection, and CORS issues.
  • If Guillotine queries return empty or unexpected data, verify the content type name matches the introspection pattern and test the query in GraphQL Playground at http://localhost:8080/site/<project>.
  • If @enonic/nextjs-adapter imports fail, check references/compatibility.md for version requirements and confirm the package is installed.
  • If content renders in preview but not on the public site, verify the content is published (moved from draft to master branch).
  • If component mappings are not applied, verify registrations in _mappings.ts use the correct fully-qualified content type or component name with APP_NAME.

平台分布

Codex

39.91%
按下载量换算243

Claude

28.77%
按下载量换算175

Cursor

19.01%
按下载量换算116

Gemini CLI

8.93%
按下载量换算54

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills