Xrk Project Overview
Researchxrk-project-overviewXrk Project Overview is an Agent Skill for research published in the sunflowermm/XRK-AGT repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
当需要从整体理解 XRK-AGT 的架构、目录、运行流程和技术栈时使用。
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/sunflowermm/XRK-AGT/blob/HEAD/.cursor/skills/xrk-project-overview/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/xrk-project-overview, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
文档
- 定位与分层:
docs/底层架构设计.md(架构单一事实源) - 启动链:
docs/startup.md - 目录树:
PROJECT_OVERVIEW.md、docs/README.md - Node 26:
docs/node-26-runtime.md、skillxrk-node-runtime(写 Core 必读)
要点
- 定位:融合智能体业务逻辑的通用后端 — Runtime 在
src/,业务在core/。 - 分层:Bot(Runtime)→ 基础设施(Loader/基类)→ Tasker / 事件 → Core 业务。
- 业务在
core/<名>/(plugin|http|stream|tasker|events|commonconfig|www/<app>);src/仅基础设施与工厂。 - 启动:见
docs/startup.md(app.js→ bootstrap →start.js→bot.js)。 - Node ≥ 26.0(
package.jsonengines);包管理仅 pnpm。
Node 26
编码约定见 skill xrk-node-runtime 与 docs/node-26-runtime.md(本 skill 不重复禁止项表)。
放码速查
| 类型 | 路径 |
|---|---|
| 业务 | core/<core>/ 各子目录 |
| 基类/加载器 | src/infrastructure/ |
| 工具 | src/utils/(bootstrap.js、process-signals.js、exec-async.js 等) |
| 工厂 | src/factory/ |
| 前端 | core/<core>/www/<app>/ |