kim-code

kim-code is a command for Claude Code from KimYx0207/Claudecode-Codex-Gemini. It costs 25 tokens per session (1,143 once invoked), scanned A, original, MIT.

A command that coordinates several AI tools to turn a UI screenshot or design into working frontend code. Gemini analyzes the image, Claude prepares the technical plan, Codex generates code, and Gemini reviews it.

In plain words
What is it for?
Use it when you have a website or app screenshot, mockup, or other UI design that needs to become runnable frontend code.
Why use it?
It helps bridge the gap between a visual design and an implementation by separating visual analysis, planning, coding, and review.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/kimyx0207/claudecode-codex-gemini/kim-code
Clone the repo
git clone --depth 1 https://github.com/KimYx0207/Claudecode-Codex-Gemini

Made for: Claude Code.

Wrote 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.

agentmods badge for kim-code

README.md
[![agentmods](https://agentmods.dev/badge/commands/kimyx0207/claudecode-codex-gemini/kim-code.svg)](https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-code)
Your own site
<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="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,143 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.01143
Opus 5 $0.00013 $0.00571
Sonnet 5 $0.00005 $0.00229
Haiku 4.5 $0.00003 $0.00114

Measured 4d ago against content hash 7cf12509a49f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 4d 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.

.claude/commands/kim-code.md · 159 lines

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 "写一个日志轮转脚本"

Read the full file on GitHub · 159 lines

Changes

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.

  1. 4d ago First seen · 159 lines · 25 tokens per session scan A 7cf12509a49f

Subscribe to this mod's changes

kim-code is a command published in the GitHub repository KimYx0207/Claudecode-Codex-Gemini (119 stars, last pushed 22d ago), licensed MIT. It adds 25 tokens to every session and 1,143 once invoked, about $0.0001 per session on Opus 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.