# xiunox-plugin-dev-skill **Repository Path**: poisonkid/xiunox-plugin-dev-skill ## Basic Information - **Project Name**: xiunox-plugin-dev-skill - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-07-15 - **Last Updated**: 2026-07-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # XIUNOX 插件开发文档 XIUNOX(XIUNO BBS X 重构版)插件开发规范与速查文档。文档面向 AI(Trae Skill)和人类开发者双重读者。 ## 文档结构 ### 本目录(Skill 精简版) | 文件 | 内容 | 何时读 | |---|---|---| | [SKILL.md](SKILL.md) | **主文档**:核心架构 + 硬规则 + 工作流 + 进阶用法 | 完整理解插件机制时通读 | | [references/ai-rules.md](references/ai-rules.md) | AI 代码生成对照流程(7 阶段检查清单) | 写完一段代码后对照检查 | | [references/api-cheatsheet.md](references/api-cheatsheet.md) | 基础 API 速查(DB / 输入输出 / 安全 / 缓存 / 全局变量) | 忘记函数签名时查 | | [references/hooks-catalog.md](references/hooks-catalog.md) | Hook 点全量目录(按页面分类) | 找注入点时查 | ### 配套完整手册(plugindev/,深入细节时查) > **下载地址**:https://github.com/domidesign/xiunox/tree/main/docs/plugindev > 本项目 `docs/plugindev/` 目录不存在时,从该 GitHub 仓库下载后放到 `docs/plugindev/` 即可使用全部交叉引用。未下载时,本目录 `references/` 下 3 个速查文档仍可独立使用,覆盖 80% 日常开发需求。 | 文件 | 内容 | |---|---| | [plugindev/README.md](../plugindev/README.md) | 完整手册入口(含核心硬规则速查表 + 分册导航) | | [plugindev/01-architecture.md](../plugindev/01-architecture.md) | 插件架构原理(编译时合并 / `_include()` / 生命周期 / 依赖) | | [plugindev/02-plugin-structure.md](../plugindev/02-plugin-structure.md) | **conf.json 完整字段表 + zip 打包规范 + upgrade.php 机制** | | [plugindev/03-hooks-catalog.md](../plugindev/03-hooks-catalog.md) | Hook 点全量目录(完整版) | | [plugindev/04-api-cheatsheet.md](../plugindev/04-api-cheatsheet.md) | API 速查(完整版) | | [plugindev/05-frontend-security.md](../plugindev/05-frontend-security.md) | 前端 / htmx 4 / 安全 | | [plugindev/06-ai-collaboration.md](../plugindev/06-ai-collaboration.md) | AI 协作规范(规则详情) | | [plugindev/07-runtime-safety.md](../plugindev/07-runtime-safety.md) | 运行时安全 / 崩溃自动禁用 | | [plugindev/08-login-security.md](../plugindev/08-login-security.md) | 登录安全 / 账号锁定 | ### 何时读哪个 - **写代码时对照检查** → 本目录 [references/ai-rules.md](references/ai-rules.md) - **查 API 签名** → 本目录 [references/api-cheatsheet.md](references/api-cheatsheet.md) 或 plugindev/04(完整版) - **查 hook 注入点** → 本目录 [references/hooks-catalog.md](references/hooks-catalog.md) 或 plugindev/03(完整版) - **理解架构原理** → plugindev/01 - **查 conf.json 字段** → plugindev/02 - **不确定某条规则** → plugindev/06(规则详情) - **前端/htmx/安全** → plugindev/05 ## 5 分钟快速上手 XIUNOX 插件 = `plugin/