Claudecode-Codex-Gemini: Command for Claude Code

.claude/commands/kim-setup.md

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

A command for checking and configuring a development environment used by Claude Code, Codex, and Gemini, which are coding-agent command-line tools.

In plain words
What is it for?
Use its check mode to inspect the setup, fix mode to repair detected problems, or full mode as a first-time configuration guide.
Why use it?
It finds missing runtimes, command-line tools, or server configuration and can attempt common fixes.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

This is KimYx0207/Claudecode-Codex-Gemini's own configuration. It tells Claude Code how to work on Claudecode-Codex-Gemini itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Claudecode-Codex-Gemini configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/KimYx0207/Claudecode-Codex-Gemini/main/.claude/commands/kim-setup.md
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-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/kimyx0207/claudecode-codex-gemini/kim-setup.svg)](https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-setup)
Your own site
<a href="https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-setup"><img src="https://agentmods.dev/badge/commands/kimyx0207/claudecode-codex-gemini/kim-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 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,619 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00020 $0.01619
Opus 5 $0.00010 $0.00809
Sonnet 5 $0.00004 $0.00324
Haiku 4.5 $0.00002 $0.00162

Measured 7d ago against content hash 38a0afb0f065, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

kim-setup 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 7d 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-setup.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kim环境配置命令

一键检测Node.js、CLI工具、MCP Server配置,自动修复常见问题

运行模式:$ARGUMENTS(默认:check)

  • check: 仅检测环境状态,不做修改
  • fix: 检测并尝试自动修复问题
  • full: 完整配置向导(适合首次使用)

执行流程

1️⃣ 基础环境检测

执行以下检测(使用Bash工具):

# Node.js版本检测(需要18+)
node --version

# npm版本检测
npm --version

# Python版本检测(可选,用于部分功能)
python --version 2>/dev/null || python3 --version 2>/dev/null

输出格式

📦 基础环境检测
├─ Node.js: ✅ v20.10.0 (需要 >= 18)
├─ npm: ✅ v10.2.3
└─ Python: ✅ v3.11.5 (可选)

2️⃣ CLI工具检测

检测三个核心CLI工具:

# Claude Code CLI
claude --version 2>/dev/null || echo "NOT_INSTALLED"

# Codex CLI
codex --version 2>/dev/null || echo "NOT_INSTALLED"

# Gemini CLI
gemini --version 2>/dev/null || echo "NOT_INSTALLED"

输出格式

🔧 CLI工具检测
├─ Claude Code: ✅ v1.0.29
├─ Codex CLI: ✅ v0.1.2505011803
└─ Gemini CLI: ✅ v0.1.28

如果缺失,提示安装命令

❌ 检测到以下工具未安装:

# 安装Claude Code CLI
npm install -g @anthropic-ai/claude-code

# 安装Codex CLI
npm i -g @openai/codex

# 安装Gemini CLI
npm install -g @google/gemini-cli

3️⃣ MCP Server配置检测

检测本项目的MCP Server配置:

# 检查.mcp.json是否存在
ls -la .mcp.json 2>/dev/null

# 检查MCP Server文件是否存在
ls -la mcp-servers/codex-server/index.js 2>/dev/null
ls -la mcp-servers/gemini-server/index.js 2>/dev/null

输出格式

🔌 MCP Server配置
├─ .mcp.json: ✅ 已配置
├─ Codex Server: ✅ 存在
├─ Gemini Server: ✅ 存在
└─ MCP配置状态: ✅ 就绪

4️⃣ API认证状态检测

# 检查环境变量(不显示实际值)
echo "ANTHROPIC_API_KEY: $(if [ -n \"$ANTHROPIC_API_KEY\" ]; then echo '已设置'; else echo '未设置'; fi)"
echo "OPENAI_API_KEY: $(if [ -n \"$OPENAI_API_KEY\" ]; then echo '已设置'; else echo '未设置'; fi)"

# 检查Gemini认证状态
gemini auth status 2>/dev/null || echo "未认证"

输出格式

🔑 API认证状态
├─ ANTHROPIC_API_KEY: ✅ 已设置
├─ OPENAI_API_KEY: ✅ 已设置
└─ Gemini Auth: ✅ 已认证 (1000次/天免费)

如果未设置,提示配置方法

❌ 检测到以下认证未配置:

# Windows PowerShell (永久设置)
[Environment]::SetEnvironmentVariable("OPENAI_API_KEY", "你的API_KEY", "User")

# macOS/Linux (添加到 ~/.bashrc 或 ~/.zshrc)
export OPENAI_API_KEY="你的API_KEY"

# Gemini认证(网页授权)
gemini auth login

Read the full file on GitHub · 224 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. 7d ago First seen · 224 lines · 20 tokens per session scan A 38a0afb0f065

Subscribe to this mod's changes

kim-setup is a command published in the GitHub repository KimYx0207/Claudecode-Codex-Gemini (119 stars, last pushed 25d ago), licensed MIT. It adds 20 tokens to every session and 1,619 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.