agentleFS
sunflowermmsunflowermm/XRK-AGT/.cursor/skills/xrk-config/SKILL.md

xrk-config

Skill140 starsChanged 8 months agoMITView on GitHub

当你需要新增/调整配置字段、确保 YAML 与 commonconfig schema 与代码消费一致、或解释配置路径规则时使用。

The file

Files
SKILL.md

文档

docs/config-base.md、core/system-Core/commonconfig/*.js、src/infrastructure/config/config-constants.js

路径

类型路径示例
全局data/server_bots/<name>.yamlagt、redis
随端口data/server_bots/{port}/<name>.yamlserver、ai-workflow、chatbot
工厂 LLMdata/server_bots/{port}/<name>.yamlopenai_llm、*_compat_llm
底层模板config/default_config/<name>.yaml仅 AGT/工厂/system-Core;禁止产品 Core
产品 Core 模板core/<core名>/default/<name>.yamlcore/lsy-Core/default/lsy.yaml
产品运行时data/<产品>/data/lsy/lsy.yaml

改动须同步

system-Core / 工厂 / 全局服务

  1. config/default_config/<name>.yaml
  2. core/system-Core/commonconfig/<name>.js 或 system.js 内 schema
  3. 消费该字段的代码

独立产品 Core(如 lsy-Core)

  1. core/<core名>/default/<name>.yaml
  2. core/<core名>/commonconfig/<name>.js schema;read() 从 Core 内 default/ 复制,不要在 config/default_config/ 加同名文件
  3. 消费该字段的代码(均在 core/<core名>/ 内)
  4. system-Core .gitignore 白名单(若新增 system-Core commonconfig 文件)

勿混淆:core/<core>/AGENTS.md 给产品 Agent(工作区/工具),不含 LLM 工厂与 default_config 约定;上述路径与模板规则仅写在 本 skill / xrk-project / core/<core>/README.md。

ai-workflow.yaml:embedding、mcp、agentWorkspace、tools 等见 docs/ai-workflow.md。

Node 26

  • 消费配置的 Core 代码须遵守 skill xrk-node-runtime(fetch/exec/判错/二进制)。
  • 新增 YAML 字段时,若涉及 HTTP 超时或 shell,文档与示例勿写 node-fetch、promisify(exec)。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.