Borrowing it
Nothing to install: this file belongs to KimYx0207/Claudecode-Codex-Gemini. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/KimYx0207/Claudecode-Codex-Gemini/main/.claude/commands/kim-code.mdgit clone --depth 1 https://github.com/KimYx0207/Claudecode-Codex-GeminiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-code)<a href="https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-code"><img src="https://agentmods.dev/badge/commands/kimyx0207/claudecode-codex-gemini/kim-code/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-code"><img src="https://agentmods.dev/badge/commands/kimyx0207/claudecode-codex-gemini/kim-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00025 | $0.01143 |
| Opus 5.5 | $0.00010 | $0.00457 |
| Sonnet 5.5 | $0.00005 | $0.00229 |
| Haiku 4.5 | $0.00003 | $0.00114 |
Grade A, and why
kim-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Kim代码生成命令(Claude + Codex)
快速开发模式:需求分析 → 代码生成,跳过审查环节
你现在要协调2个AI工具完成任务:$ARGUMENTS
模式说明:这是精简版的双引擎模式,适合快速开发、原型验证,不需要代码审查。
⚠️ 文件写入规则(必须遵守)
Claude Code的Write工具要求:写入文件前必须先读取它。对于新文件:
# 创建新文件的标准流程:
1. 用 Bash 创建目录和空文件:mkdir -p 目录 && echo "" > 文件路径
2. 用 Read 读取该文件
3. 用 Write 写入实际内容
执行流程
阶段0.1:健康检查
参考 .claude/skills/kim-orchestrator/prompts/health-check.md 执行MCP健康检查。
在开始前检测 mcp__codex__codex 工具是否可用:
- ✅ 可用 → 继续执行
- ❌ 不可用 → 显示修复指南,询问是否用Claude降级执行
阶段0.2:初始化工作目录
mkdir -p .kim-orchestrator && echo "" > .kim-orchestrator/phase1_requirements.json && echo "" > .kim-orchestrator/phase2_code.md && echo "" > .kim-orchestrator/result.md
然后读取这些文件:
- Read .kim-orchestrator/phase1_requirements.json
- Read .kim-orchestrator/phase2_code.md
- Read .kim-orchestrator/result.md
阶段1:需求分析(你自己完成)
详细分析用户需求,输出JSON格式的技术方案:
{
"task_description": "任务描述",
"features": ["功能1", "功能2"],
"tech_stack": {
"language": "编程语言",
"framework": "框架",
"libraries": ["依赖库"]
},
"file_structure": {
"files": [{"path": "路径", "purpose": "用途"}]
},
"key_points": ["关键实现要点"],
"risks": ["潜在风险"]
}
保存到 .kim-orchestrator/phase1_requirements.json
阶段2:代码生成(调用Codex MCP Server)
检查工具:确认 mcp__codex__codex 可用。如果不可用,提示用户配置MCP Server。
调用Codex生成代码:
- prompt: 根据phase1_requirements.json生成完整代码
- conversationId: "kim_code_" + 当前时间戳
将响应保存到 .kim-orchestrator/phase2_code.md
阶段3:生成最终报告
# Kim双引擎开发结果(Claude + Codex)
**任务描述**: $ARGUMENTS
**完成时间**: [当前时间]
**模式**: 快速开发(无审查)
---
## 阶段1: 需求分析(Claude Sonnet 4.5)
\`\`\`json
[phase1_requirements.json的内容]
\`\`\`
---
## 阶段2: 代码生成(GPT-5.1 Codex Max)
[phase2_code.md的内容]
---
## 总结
本次编排完成以下工作:
1. ✅ Claude完成需求分析和技术方案设计
2. ✅ Codex生成完整的可执行代码
3. ⏭️ 跳过代码审查(快速开发模式)
💡 **提示**:如需代码审查,请使用 `/kim-team` 命令(完整三引擎模式)
保存到 .kim-orchestrator/result.md 并展示给用户。
使用示例
# 快速原型
/kim-code "实现一个简单的计算器类"
# 功能开发
/kim-code "实现用户注册功能,包含邮箱验证"
# 工具开发
/kim-code "写一个日志轮转脚本"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 25d ago Changed fb849277e364
- 1mo ago First seen · 159 lines · 25 tokens per session scan A 7cf12509a49f
kim-code is a command published in the GitHub repository KimYx0207/Claudecode-Codex-Gemini (119 stars, last pushed 12d ago), licensed MIT. It adds 25 tokens to every session and 1,143 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
profile
Save, load, inspect, update, reset, or delete diagram-design client profiles.
erne-animate
ERNE — Implement animations using the ui-designer agent with Reanimated and Gesture Handler.
ui-flow-review
Review menus, HUD, navigation, and player flow from a UX perspective.
responsive-design-specialist
Use when a layout breaks between sizes. Arbitrary breakpoints, type that does not scale, images that blow out the grid, or a desktop design retrofitted onto mobile.
design-audit
Audit the rendered design of live sites. Evidence capture first, then one critique per site. Argument is a URL, a repo name, or all.
ppt-image2-editable-rebuild
Rebuild image2 or imagegen reference slides as editable PowerPoint decks.