一键导入
system-custom-api-endpoints
Use when creating module-specific API endpoints in install/dist and wiring them to load the Zolinga system correctly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating module-specific API endpoints in install/dist and wiring them to load the Zolinga system correctly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when creating or updating MCP resources — static files exposed to MCP clients via `resources/list` and `resources/read`. Covers `.meta.json` descriptors, URI rewriting, dynamic resources via `mcp:resources/list` event hook, and the `mcp-system` scheme.
Use when exposing an existing `origin: ["remote"]` listener as an MCP tool without rewriting the handler. Covers the one-line manifest pattern that re-uses the same class+method, plus the minimal schema work needed to satisfy `McpToolsListHandler::collectTools()`. Complements system-create-mcp-tool (which covers the greenfield case).
Use when exposing a Zolinga event handler as an MCP (Model Context Protocol) tool — i.e. a method clients can invoke via JSON-RPC `tools/call`. Covers handler class, manifest binding, JSON Schemas, the `Tools\CallEvent` contract, and the `schema.response` requirement enforced by `McpToolsListHandler::collectTools()`.
Use when working with the JavaScript client-side event system in Zolinga. Covers the Event class, Api gateway, dispatching events from JS to PHP, receiving broadcastBack responses, inter-component communication via BroadcastChannel, and web component integration.
Use when adding localized strings in PHP or HTML, including gettext usage patterns and context-aware translation strings for Zolinga Intl.
Use when writing or reviewing PHP code in this repository to enforce strict typing, naming, file layout, and listener/service interface conventions.
| name | system-custom-api-endpoints |
| description | Use when creating module-specific API endpoints in install/dist and wiring them to load the Zolinga system correctly. |
| argument-hint | <module-name> <endpoint-path> |
modules/<module-name>/install/dist/..../dist/<module-name>/... URL path.system/install/dist/gate/index.php.system/wiki/Zolinga Core/Running the System/Page Request.mdsystem/wiki/Zolinga Core/Running the System/AJAX.mdsystem/wiki/Zolinga Core/Module Anatomy.mdsystem/wiki/Zolinga Core/Manifest File.mdsystem/wiki/Zolinga Core/Paths and Zolinga URI.mdsystem/wiki/Zolinga Core/Services.md