Loading...
Loading...
Compare original and translation side by side
| Need to find... | Use agent | Search boundary | Default Backend |
|---|---|---|---|
| Game function implementation | | | claude |
| SMODS API usage/hooks | | | claude |
| How other mods do X | | | claude |
| Lovely patch syntax | | lovely files only | claude |
| Project architecture/exploration | | Current project only | codex |
| Run temp script for data | | N/A (execution) | codex |
| Plan implementation strategy | | Current project only | opus |
| Review code for correctness | | Current project only | opus |
| Synthesize research findings | | Current project only | opus |
⚠️ MANDATORY: Sub-Agent InvocationALWAYS useto spawn sub-agents. This adapter resolves backend config fromscripts/run_subagent.shand routes through codeagent.mod.config.jsonDO NOT use built-in agent spawning, direct shell commands, or any other method.bash# CORRECT - always use this ./scripts/run_subagent.sh game-source-researcher <<'EOF' [task content] EOF # WRONG - never do this # spawn_agent(...), create_subagent(...), direct codeagent calls, etc.
references/sub-agents.md| 需要查找... | 使用Agent | 搜索范围 | 默认后端 |
|---|---|---|---|
| 游戏功能实现 | | 仅 | claude |
| SMODS API用法/钩子 | | 仅 | claude |
| 其他模组实现X的方式 | | 仅 | claude |
| Lovely补丁语法 | | 仅Lovely相关文件 | claude |
| 项目架构/探索 | | 仅当前项目 | codex |
| 运行临时脚本获取数据 | | N/A(执行) | codex |
| 规划实现策略 | | 仅当前项目 | opus |
| 代码正确性审查 | | 仅当前项目 | opus |
| 研究成果整合 | | 仅当前项目 | opus |
⚠️ 强制要求:子Agent调用方式**必须使用**来启动子Agent。该适配器会从scripts/run_subagent.sh读取后端配置,并通过codeagent进行路由。mod.config.json禁止使用内置Agent启动、直接shell命令或其他任何方式。bash# 正确方式 - 请始终使用此命令 ./scripts/run_subagent.sh game-source-researcher <<'EOF' [任务内容] EOF # 错误方式 - 请勿使用 # spawn_agent(...), create_subagent(...), 直接调用codeagent等
references/sub-agents.mdauthorundefinedauthorundefined
| Type | Detection | Implications |
|------|-----------|--------------|
| `new` | Empty repo (no files) | Full docs, Logger.lua, localization |
| `own` | Author matches git user | Full docs, standardize structure |
| `fork` | Author differs from git user | Minimal changes, temp logs only |
See `templates/project-rules-template.md` for detailed rules per type.
| 类型 | 检测方式 | 影响 |
|------|-----------|--------------|
| `new` | 空仓库(无文件) | 完整文档、Logger.lua、本地化支持 |
| `own` | 作者与Git用户匹配 | 完整文档、标准化结构 |
| `fork` | 作者与Git用户不匹配 | 最小化修改、仅使用临时日志 |
不同类型仓库的详细规则请查看`templates/project-rules-template.md`。| File | Purpose | Git |
|---|---|---|
| Project rules, constraints for AI agents | ignored |
| Mod structure, functions, dependencies, dev status (for handover) | ignored |
| File lists for sync/release scripts | ignored |
| Issues & lessons learned | ignored |
| 文件 | 用途 | Git状态 |
|---|---|---|
| AI Agent的项目规则与约束 | 忽略 |
| 模组结构、功能、依赖项、开发状态(用于交接) | 忽略 |
| 同步/发布脚本的文件列表 | 忽略 |
| 问题与经验总结 | 忽略 |
.mdREADME.mdREADME_zh.mdCHANGELOG.mdCHANGELOG_zh.mdAGENT.mdINIT.mdLICENSE.md.mddocs/.mdREADME.mdREADME_zh.mdCHANGELOG.mdCHANGELOG_zh.mdAGENT.mdINIT.mdLICENSE.md.mddocs/| Resource | Path |
|---|---|
| Game Source (desktop) | |
| Game Source (mobile) | |
| Steamodded Source | |
| Steamodded Lovely | |
| Lovely Docs | |
| Installed Mods | |
| Lovely Logs | |
| 资源 | 路径 |
|---|---|
| 游戏源码(桌面端) | |
| 游戏源码(移动端) | |
| Steamodded源码 | |
| Steamodded Lovely | |
| Lovely文档 | |
| 已安装模组 | |
| Lovely日志 | |
| Resource | Path |
|---|---|
| Game Source | Varies by setup |
| Installed Mods | |
| Lovely Logs | |
| 资源 | 路径 |
|---|---|
| 游戏源码 | 因设置而异 |
| 已安装模组 | |
| Lovely日志 | |
| What to Find | Where to Search | Command |
|---|---|---|
| Game functions | Balatro_src/desktop/ | |
| SMODS API usage | smods/src/ | |
| Lovely patch examples | smods/lovely/ | |
| Other mods' implementations | Installed Mods | |
| Mobile differences | Balatro_src/ios_plus/ | Compare with desktop version |
| 查找内容 | 搜索位置 | 命令 |
|---|---|---|
| 游戏函数 | Balatro_src/desktop/ | |
| SMODS API用法 | smods/src/ | |
| Lovely补丁示例 | smods/lovely/ | |
| 其他模组的实现方式 | 已安装模组 | |
| 移动端差异 | Balatro_src/ios_plus/ | 与桌面端版本对比 |
| Dependency | Purpose |
|---|---|
| Steamodded | Core mod loader, SMODS API |
| Lovely | Lua injection framework |
| Malverk | Texture pack API (AltTexture, TexturePack) |
| 依赖项 | 用途 |
|---|---|
| Steamodded | 核心模组加载器、SMODS API |
| Lovely | Lua注入框架 |
| Malverk | 纹理包API(AltTexture、TexturePack) |
| Topic | Reference File |
|---|---|
| Lovely.toml syntax | |
| SMODS hooks, config, localization | |
| Desktop vs mobile differences | |
| UIBox, CardArea, draw order | |
| Game source file map + search tips | |
| G.GAME, G.STATES, G.P_* globals | |
| Lua/LuaJIT pitfalls, common mod bugs | |
| 主题 | 参考文件 |
|---|---|
| Lovely.toml语法 | |
| SMODS钩子、配置、本地化 | |
| 桌面端与移动端差异 | |
| UIBox、CardArea、绘制顺序 | |
| 游戏源码文件映射 + 搜索技巧 | |
| G.GAME、G.STATES、G.P_*全局变量 | |
| Lua/LuaJIT陷阱、常见模组BUG | |
templates/templates/| File | Purpose |
|---|---|
| INIT.md template (rules) |
| AGENT.md template (repo docs) |
| AGENT.md for Malverk texture packs |
| Script configuration |
| Standard .gitignore |
| Centralized logging utility |
| 文件 | 用途 |
|---|---|
| INIT.md模板(规则) |
| AGENT.md模板(仓库文档) |
| Malverk纹理包的AGENT.md模板 |
| 脚本配置 |
| 标准.gitignore |
| 集中式日志工具 |
| File | Purpose |
|---|---|
| SMODS mod manifest ({ModName}.json) |
| Thunderstore manifest |
| 文件 | 用途 |
|---|---|
| SMODS模组清单({ModName}.json) |
| Thunderstore清单 |
templates/docs/templates/docs/| File | Purpose |
|---|---|
| Concise README for docs/ |
| BBCode for NexusMods |
| Issues & lessons learned |
| 文件 | 用途 |
|---|---|
| docs目录下的精简README |
| NexusMods的BBCode格式文档 |
| 问题与经验总结 |
Root:
├── README.md, README_zh.md # Main docs (EN/ZH)
├── CHANGELOG.md, CHANGELOG_zh.md # Version history (EN/ZH)
└── {ModName}.json, manifest.json # Meta files
docs/:
├── description.md # Concise README
├── NEXUSMODS_DESCRIPTION.txt # BBCode format
└── knowledge-base.md # Issues & lessons根目录:
├── README.md, README_zh.md # 主文档(英文/中文)
├── CHANGELOG.md, CHANGELOG_zh.md # 版本历史(英文/中文)
└── {ModName}.json, manifest.json # 元文件
docs/:
├── description.md # 精简版README
├── NEXUSMODS_DESCRIPTION.txt # BBCode格式文档
└── knowledge-base.md # 问题与经验总结{ModName}/
├── main.lua # Entry point, mod registration
├── config.lua # Config defaults (optional)
├── lovely.toml # Lovely patches (if needed)
├── {ModName}.json # SMODS mod manifest
├── manifest.json # Thunderstore manifest
├── mod.config.json # Script configuration
├── Utils/
│ └── Logger.lua # Centralized logging
├── localization/
│ ├── en-us.lua # English (required)
│ └── zh_CN.lua # Chinese
├── assets/ # Sprites, shaders
├── scripts/ # Utility scripts
└── docs/ # Documentation{ModName}/
├── main.lua # 入口文件,模组注册
├── config.lua # 配置默认值(可选)
├── lovely.toml # Lovely补丁(如需)
├── {ModName}.json # SMODS模组清单
├── manifest.json # Thunderstore清单
├── mod.config.json # 脚本配置
├── Utils/
│ └── Logger.lua # 集中式日志工具
├── localization/
│ ├── en-us.lua # 英文(必需)
│ └── zh_CN.lua # 中文
├── assets/ # 精灵图、着色器
├── scripts/ # 实用脚本
└── docs/ # 文档| Folder | Contents |
|---|---|
| Claude hooks.json, init command |
| Codex-specific templates (if needed) |
| 文件夹 | 内容 |
|---|---|
| Claude的hooks.json、初始化命令 |
| Codex专属模板(如需) |
Utils/Logger.luatemplates/logger-template.lualocal Logger = require("Utils.Logger")
local log = Logger.create("ModuleName")
log("info", "Initialized")
log("error", "Failed: " .. err)Utils/Logger.luatemplates/logger-template.lualocal Logger = require("Utils.Logger")
local log = Logger.create("ModuleName")
log("info", "Initialized")
log("error", "Failed: " .. err)pcall(print, "[Debug] checkpoint: " .. tostring(var))pcall(print, "[Debug] checkpoint: " .. tostring(var))| Script | Purpose |
|---|---|
| Sync mod files to game's Mods folder |
| Create release packages |
| Fix grey borders on sprites |
| Detailed script usage |
| 脚本 | 用途 |
|---|---|
| 将模组文件同步至游戏的Mods目录 |
| 创建发布包 |
| 修复精灵图的灰色边框 |
| 脚本详细使用指南 |
References/.mddocs/.claude/commands/.claude/hooks/.claude/agents/.claude/hookify.no-opus-subagents.local.md.claude/hookify.subagent-routing.local.mdReferences/.mddocs/.claude/commands/.claude/hooks/.claude/agents/.claude/hookify.no-opus-subagents.local.md.claude/hookify.subagent-routing.local.mdreferences/lua-gotchas.mddocs/knowledge-base.mdreferences/lua-gotchas.mddocs/knowledge-base.md/draft-pr/draft-prscripts/run_subagent.sh.tmp/[taskname]/task.mdreferences/sub-agents.md| Situation | Use | Default Backend |
|---|---|---|
| Research (game, SMODS, mods, lovely) | Research agent | |
| Running temp scripts for data | | |
| Planning, reviewing, synthesizing | Reasoning agent | |
| Writing/editing code | Main agent | — |
| User interaction needed | Main agent | — |
mod.config.jsonagent_backends.researchagent_backends.executionagent_backends.reasoningagent_backends.overrides.{agent-name}{backend, workdir}source_pathshookify.no-opus-subagents.local.mdhookify.subagent-routing.local.md~/.codeagent/config.yaml~/.codeagent/models.jsonrun_subagent.shcodeagent-wrapperreferences/sub-agents.mdscripts/run_subagent.sh.tmp/[taskname]/task.mdreferences/sub-agents.md| 场景 | 使用方式 | 默认后端 |
|---|---|---|
| 研究(游戏、SMODS、模组、Lovely) | 研究Agent | |
| 运行临时脚本获取数据 | | |
| 规划、审查、整合 | 推理Agent | |
| 编写/编辑代码 | 主Agent | — |
| 需要用户交互 | 主Agent | — |
mod.config.jsonagent_backends.researchagent_backends.executionagent_backends.reasoningagent_backends.overrides.{agent-name}{backend, workdir}source_pathshookify.no-opus-subagents.local.mdhookify.subagent-routing.local.md~/.codeagent/config.yaml~/.codeagent/models.jsonrun_subagent.shcodeagent-wrapperreferences/sub-agents.md/familiar/init-balatro-mod/sync-mod/bump-version [patch|minor|major]/release/fix-sprites <directory> [--preview]/refactor [focus-area]/debug/draft-pr/update/update-docs/update-skill [file|instruction]/knowledgegame-source-researchersmods-api-researchermod-pattern-researcherlovely-patch-researcherproject-explorerscript-runnerstrategic-plannercode-reviewerresearch-analyst/familiar/init-balatro-mod/sync-mod/bump-version [patch|minor|major]/release/fix-sprites <directory> [--preview]/refactor [focus-area]/debug/draft-pr/update/update-docs/update-skill [file|instruction]/knowledgegame-source-researchersmods-api-researchermod-pattern-researcherlovely-patch-researcherproject-explorerscript-runnerstrategic-plannercode-reviewerresearch-analyst