一键导入
system-coding-standards
Use when creating or modifying code in Zolinga modules, especially for following established coding standards and best practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating or modifying code in Zolinga modules, especially for following established coding standards and best practices.
用 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-coding-standards |
| description | Use when creating or modifying code in Zolinga modules, especially for following established coding standards and best practices. |
| argument-hint | <module-name> [code-change-description] |
./tmp/ai-*.* with the ai- prefix. For other folders: ./data/system/tmp/, ./public/data/system/tmp/, ./public/dist/system/tmp/, or ./public/tmp/ (for public URL access). Create tmp/ dirs if needed. Clean up after use.public private(set) for read-only public properties instead of private + getFoo().public function getFoo(): array { return $this->foo; } — just make the property public or public private(set) and access it directly.get hooks. Instead of getContext(): ?string, use public ?string $context { get { ... } }.string|array, validate which one is correct for the current object state and throw \InvalidArgumentException on mismatch rather than silently coercing.