Claudecode-Codex-Gemini: Command for Claude Code

.claude/commands/kim-form.md

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

A command that generates React or Vue form components from field descriptions and validation rules. It can include the form's validation, styling, submission logic, and type definitions.

In plain words
What is it for?
Use it for forms such as registration, login, or user profiles, including field validation, an API submission address, and a success action.
Why use it?
It reduces the manual work of turning a list of fields and rules into a working frontend form.

Command for Claude Code

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

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/kimyx0207/claudecode-codex-gemini/kim-form/github.svg)](https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-form)
Your own site
<a href="https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-form"><img src="https://agentmods.dev/badge/commands/kimyx0207/claudecode-codex-gemini/kim-form/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.

agentmods 80×15 button for kim-form

Your own site · 80×15
<a href="https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-form"><img src="https://agentmods.dev/badge/commands/kimyx0207/claudecode-codex-gemini/kim-form.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 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,155 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.00024 $0.01155
Opus 5 $0.00012 $0.00577
Sonnet 5 $0.00005 $0.00231
Haiku 4.5 $0.00002 $0.00115

Measured 9d ago against content hash a3f75fda0f27, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

kim-form 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 9d 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-form.md · 162 lines

How it starts

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

Kim表单生成命令

输入字段和校验规则,生成完整的表单组件(React/Vue + 校验 + 样式)

你现在要生成表单组件:$ARGUMENTS

模式说明:专门生成前端表单组件,自动处理校验、样式、提交逻辑。

执行流程

阶段1:分析表单需求

解析用户输入,提取:

  • 表单名称:如 LoginFormUserProfile
  • 字段列表:字段名、类型、校验规则
  • 提交地址:API端点
  • 框架选择:React/Vue(检测项目)

如果信息不完整,询问用户:

📝 请补充表单信息:

1. 表单名称:用户注册表单
2. 字段列表:
   - username: 文本, 必填, 4-20字符, 字母数字下划线
   - email: 邮箱, 必填, 邮箱格式
   - password: 密码, 必填, 8位以上, 含字母数字
   - confirmPassword: 密码, 必填, 与password一致
   - agreeTerms: 复选框, 必填
3. 提交地址:/api/register
4. 成功后:跳转登录页

请确认或修改:

阶段2:检测前端框架

使用Glob检测项目使用的前端框架:

# 检测React
ls package.json 2>/dev/null | xargs grep -l "react"

# 检测Vue
ls package.json 2>/dev/null | xargs grep -l "vue"

# 检测UI库
grep -E "antd|@mui|element-plus|naive-ui" package.json 2>/dev/null

阶段3:调用Codex生成组件

使用MCP工具调用Codex生成表单组件:

React模板

生成内容:
1. 表单组件(React Hook Form / Formik)
2. 校验Schema(Zod / Yup)
3. 样式文件(Tailwind / CSS Modules)
4. 类型定义(TypeScript)

Vue模板

生成内容:
1. 表单组件(Vue 3 Composition API)
2. 校验规则(VeeValidate / Element Plus rules)
3. 样式文件
4. 类型定义

阶段4:输出结果

# 表单生成结果:{表单名称}

## 表单预览

| 字段 | 类型 | 校验规则 |
|------|------|----------|
| username | 文本输入 | 必填, 4-20字符 |
| email | 邮箱输入 | 必填, 邮箱格式 |
| password | 密码输入 | 必填, 8位以上 |
| confirmPassword | 密码输入 | 必填, 密码一致 |
| agreeTerms | 复选框 | 必须勾选 |

## 生成的文件

1. `components/RegisterForm.tsx` - 表单组件
2. `schemas/register.ts` - 校验Schema
3. `types/register.ts` - 类型定义

## 使用方法

```tsx
import RegisterForm from '@/components/RegisterForm';

function RegisterPage() {
  return <RegisterForm onSuccess={() => router.push('/login')} />;
}

生成的代码

[代码内容...]


---

## 使用示例

```bash
# 基础用法
/kim-form "登录表单:用户名、密码、记住我"

# 详细描述
/kim-form "用户资料编辑表单:昵称必填、头像上传、性别单选、生日日期选择、个人简介文本域"

# 复杂表单
/kim-form "订单表单:收货人、手机号(11位)、省市区级联、详细地址、发票信息可选"

支持的字段类型

类型 对应组件 校验支持
文本 Input 长度、正则、必填
邮箱 Input 邮箱格式
密码 Password 强度、一致性
手机号 Input 11位数字
数字 InputNumber 范围、精度
单选 Radio 必选
多选 Checkbox 最少/最多
下拉 Select 必选
日期 DatePicker 范围
上传 Upload 大小、格式
文本域 Textarea 长度

Read the full file on GitHub · 162 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. 9d ago First seen · 162 lines · 24 tokens per session scan A a3f75fda0f27

Subscribe to this mod's changes

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