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.
git clone --depth 1 https://github.com/KimYx0207/Kim_ServiceWrote 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/kim_service/kim-api)<a href="https://agentmods.dev/commands/kimyx0207/kim_service/kim-api"><img src="https://agentmods.dev/badge/commands/kimyx0207/kim_service/kim-api/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/kim_service/kim-api"><img src="https://agentmods.dev/badge/commands/kimyx0207/kim_service/kim-api.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.00024 | $0.01212 |
| Opus 5.5 | $0.00010 | $0.00485 |
| Sonnet 5.5 | $0.00005 | $0.00242 |
| Haiku 4.5 | $0.00002 | $0.00121 |
Grade A, and why
kim-api 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 1mo 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- kim-api — 91% identical, 9 lines differ
How it starts
The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Kim Service 执行门(必须先执行)
- 先复述原始用户意图,并列出本次计划调用的 MCP 工具、目标目录和拟新增或修改的文件;不要把本命令扩展成 Router 或自动验收流程。
- 任何项目写入、依赖安装、外部访问或环境变更都必须先获得对应的人类批准。未批准时只分析并展示计划。
- 写入前读取现有目标;目标已存在时不得用重定向、空文件或整文件覆盖。只做受管更新,遇到冲突停止并展示差异。
- 新文件只能在已批准的项目根目录内安全创建;不得写用户级配置。MCP 仅使用本 Tool 的 cli.mjs mcp codex 或 cli.mjs mcp gemini 运行时及其已注册工具。
Kim API生成命令
输入接口需求,生成完整API端点:路由、参数校验、错误处理、文档注释
你现在要生成API端点:$ARGUMENTS
模式说明:专门生成单个API端点,比CRUD更灵活,适合非标准接口。
执行流程
阶段1:分析接口需求
解析用户输入,提取:
- 接口名称:如
sendVerificationCode、resetPassword - HTTP方法:GET/POST/PUT/DELETE
- 请求参数:Query/Body/Path参数
- 响应格式:返回数据结构
- 业务逻辑:核心处理逻辑
如果信息不完整,询问用户:
📝 请补充接口信息:
1. 接口名称:发送验证码
2. HTTP方法:POST(推荐)
3. 请求参数:
- email: string, 必填, 邮箱格式
- type: string, 可选, 验证码类型(register/reset)
4. 响应格式:
- success: boolean
- message: string
- expire_in: number (秒)
请确认或修改:
阶段2:检测项目结构
使用Glob检测项目现有的API结构:
# 查找现有路由文件
ls src/routers/ src/routes/ src/api/ routes/ 2>/dev/null
# 查找现有的Schema/Validator
ls src/schemas/ src/validators/ 2>/dev/null
遵循现有项目结构和命名规范。
阶段3:调用Codex生成代码
使用MCP工具调用Codex生成完整API:
生成内容:
1. 路由定义(含路径、方法、描述)
2. 请求参数Schema(含校验规则)
3. 响应模型Schema
4. Service层业务逻辑
5. 错误处理
6. API文档注释(OpenAPI格式)
阶段4:输出结果
# API生成结果:{接口名称}
## 接口信息
| 属性 | 值 |
|------|-----|
| 路径 | POST /api/verification/send |
| 描述 | 发送验证码到指定邮箱 |
| 认证 | 不需要 |
| 限流 | 60秒/次 |
## 请求参数
```json
{
"email": "[email protected]", // 必填,邮箱格式
"type": "register" // 可选,默认register
}
响应格式
成功 (200)
{
"data": {
"success": true,
"message": "验证码已发送",
"expire_in": 300
},
"error": null
}
失败 (400/429)
{
"data": null,
"error": {
"code": "RATE_LIMITED",
"message": "请求过于频繁,请60秒后重试"
}
}
生成的代码文件
[代码内容...]
---
## 使用示例
```bash
# 基础用法
/kim-api "发送验证码接口,参数email和type"
# 详细描述
/kim-api "用户头像上传接口,POST方法,接收multipart/form-data,限制5MB,返回图片URL"
# 复杂逻辑
/kim-api "订单支付回调接口,验证签名,更新订单状态,发送通知"
支持的接口类型
| 类型 | 示例 | 特点 |
|---|---|---|
| 查询接口 | 搜索、筛选、统计 | GET + Query参数 |
| 操作接口 | 发送、提交、触发 | POST + Body参数 |
| 上传接口 | 文件上传 | multipart/form-data |
| 回调接口 | 支付、Webhook | 签名验证 |
| 聚合接口 | 仪表盘数据 | 多数据源整合 |
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.
- 1mo ago First seen · 172 lines · 24 tokens per session scan A 54275702af1e
kim-api is a command published in the GitHub repository KimYx0207/Kim_Service (177 stars, last pushed 5d ago), licensed MIT. It adds 24 tokens to every session and 1,212 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-09-14.
Other commands, from other repositories
init
Initialize configurations for Supabase local development.
http-service
Build, review or debug a Bun HTTP service. Loads the http-service skill, then works the task through its workflow.
build
Discover an AI Gateway's models and MCP tools, retrieve a credential, and integrate them into your app — call a model, connect MCP tools, or scaffold a runnable agent.
api-contract-review
Review an API contract (shapes, errors, auth model) BEFORE implementation for naming, versioning, pagination, idempotency, and fit with existing endpoints. Use when designing or changing endpoints. Do not use when the API is already implemented (use review-hard or repo-consistency-sweep).
start-10-1
A guided lesson on setting up clasp, a command-line tool for managing Google Apps Script projects, and connecting it to Google’s Apps Script API.
fastapi
FastAPI application design and implementation conventions. Use this skill when building, updating, or reviewing FastAPI services, routers, dependencies, request/response schemas, streaming endpoints, or API tests. Trigger on FastAPI-specific work such as path operation design, dependency injection, response models…