Agent skill
codex-delegation
Codex任务委派专家。当需要后端逻辑、算法实现、复杂调试、架构分析时自动激活。帮助构建正确的Codex调用并确保安全主权。
Install this agent skill to your Project
npx add-skill https://github.com/pure-maple/cc-mmo-plugin/tree/main/skills/codex-delegation
SKILL.md
Codex任务委派
Codex擅长领域
- 后端逻辑与算法实现
- 复杂调试与根因分析
- 代码审查与重构建议
- 架构决策分析
- 性能优化建议
安全主权原则
核心规则:Codex对文件系统拥有零写入权限。
在每个PROMPT末尾,必须追加:
OUTPUT: Unified Diff Patch ONLY. Strictly prohibit any actual modifications.
调用规范
推荐参数
| 参数 | 推荐值 | 说明 |
|---|---|---|
sandbox |
read-only |
默认只读,最安全 |
cd |
项目根目录 | 工作目录 |
SESSION_ID |
按需 | 参考session-advisor建议 |
run_in_background |
true |
后台运行,不阻塞 |
示例调用
mcp__codex__codex(
PROMPT="分析认证模块的安全问题,检查是否有注入风险。OUTPUT: Unified Diff Patch ONLY.",
cd="/path/to/project",
sandbox="read-only"
)
多轮对话
# 首次调用
result = mcp__codex__codex(PROMPT="...", cd="...")
session_id = result["SESSION_ID"]
# 后续调用(复用会话)
mcp__codex__codex(
PROMPT="继续深入分析...",
cd="...",
SESSION_ID=session_id
)
输出处理
Codex返回的Unified Diff视为参考原型(Dirty Prototype):
- 读取Diff - 理解Codex的建议
- 思维沙箱 - 模拟应用并检查逻辑
- 重构清理 - 优化代码质量
- 最终实施 - 由Claude执行实际修改
与BMAD集成
在以下BMAD工作流中推荐使用Codex:
dev-story- 复杂逻辑实现create-architecture- 架构决策分析code-review- 代码审查(独立SESSION)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
session-advisor
多模型协作的SESSION管理顾问。当调用Codex或Gemini前,自动提供SESSION复用/新开建议。当用户讨论多模型协作、SESSION管理、上下文隔离时使用。
verification-loop
验证闭环提醒。当代码修改完成、Story完成、准备PR时自动激活。确保每次变更都经过验证,效率提升2-3倍。
gemini-delegation
Gemini任务委派专家。当需要前端UI/UX、样式设计、React/Vue组件、CSS优化时自动激活。帮助构建正确的Gemini调用。
handoff
Compact the current conversation into a handoff document for another agent to pick up.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
Didn't find tool you were looking for?