跳到正文
Skillpedia
通用编程53k · #3380

code-mate-kimi-code

它能做什么

这个智能体会运行 Kimi Code,在代码仓库中执行特定任务。它接收一条命令,用 Kimi Code 执行,然后返回结果。

适用场景

  • ✓当你希望 AI 在你的代码中执行某条特定命令时。
  • ✓用于自动化项目中重复性的任务。
  • ✓想获取某个代码工具的输出,但不想手动运行它时。

技能链接

https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-kimi-code/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-kimi-code/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在我的仓库中运行以下命令:'npm install'”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先搭建一个安全的运行环境,然后用你的命令运行 Kimi Code,再分析输出结果,最终告诉你答案。它会确保 Kimi Code 不访问超出所需的内容,也不会保存你的凭据。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Kimi Code

Run

  1. Set the Bash working directory to the smallest directory the user authorized and set a finite timeout, normally 10 minutes.
  2. Check availability with command -v kimi. If it is missing, stop and ask the user to install Kimi Code in Code Mate.
  3. Run one prompt and exit:
kimi -p "<prompt>" --output-format stream-json

Pass the prompt as one quoted argument. Parse stdout as JSONL, preserve event order, and extract the final assistant result. Treat an error event or nonzero exit as failure. Never start the interactive UI or kimi login.

Authentication And Permissions

If Kimi reports missing login, model, or provider configuration, stop and ask the user to configure Kimi Code in Code Mate. Never request, read, print, or copy credentials.

Prompt mode automatically approves tool calls and rejects --yolo, --auto, and --plan; those flags cannot make it safer. Do not run it against a writable project for a read-only task. Use a disposable or read-only copy instead. Run against the real project only when the user explicitly requests workspace changes, constrain the directory, and inspect the diff afterward.

Kimi writes session state under KIMI_CODE_HOME (normally ~/.kimi-code) before running workspace tools. If the host Bash reports a sandbox denial there for an explicitly approved write task, retry the exact command once with the narrowest host escalation. In DSH, request sandbox_permissions: danger-full-access with a justification naming Kimi's session storage, then wait for approval. Keep the working directory constrained; leave Kimi's config and credential files in place.

Example: for an approved implementation, ask Kimi to change only named files, run it in that project, parse the final JSONL event, and inspect the resulting diff.

常见问题

如果没有安装 Kimi Code 会怎样?

智能体会停止运行,并提示你先安装 Kimi Code。

智能体可以修改我的代码吗?

可以,但只有在你明确提出要求时才会。它会在安全的副本中或在受限权限下进行修改,之后再检查这些改动。

智能体会保存我的登录信息吗?

不会。智能体从不索取、读取、打印或复制你的凭据。

详情

作者的原始描述

Runs Kimi Code in non-interactive prompt mode and parses its event stream. Use when the user asks to delegate a bounded repository task to Kimi Code.

repo: CherryHQ/cherry-studio

热度

GitHub 星标
53k
排名
#3380
许可证
AGPL-3.0
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能