code-mate-kimi-code
What it does
This agent runs Kimi Code to perform specific tasks within a code repository. It takes a command, executes it with Kimi Code, and returns the result.
When to use it
- ✓When you want the AI to execute a specific command in your code.
- ✓To automate repetitive tasks within a project.
- ✓To get the output of a code tool without running it manually.
Skill link
https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-kimi-code/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Run the following command in my repository: 'npm install'”
5 new skills a week. 1 minute to read.
How it works
The agent sets up a secure environment, runs Kimi Code with your command, and analyzes the output to give you the final result. It ensures Kimi Code doesn't access more than necessary and doesn't save your credentials.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Kimi Code
Run
- Set the Bash working directory to the smallest directory the user authorized and set a finite timeout, normally 10 minutes.
- Check availability with
command -v kimi. If it is missing, stop and ask the user to install Kimi Code in Code Mate. - 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.
FAQ
What happens if Kimi Code is not installed?
The agent will stop and ask you to install Kimi Code.
Can the agent make changes to my code?
Yes, but only if you explicitly ask, and it will do so in a safe copy or with restricted permissions, inspecting the changes afterward.
Does the agent save my login information?
No, the agent never requests, reads, prints, or copies your credentials.
Details
Original description by the author
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
Popularity
- GitHub stars
- 53k
- Ranking position
- #3380
- License
- AGPL-3.0
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
code-mate-antigravity
53kLets your agent analyze code and perform programming tasks. It's useful for reviewing or improving existing code.
code-mate-claude-code
53kHelps your agent analyze and implement code. It's useful for software development tasks and code reviews.
code-mate-codex
53kLets your agent analyze and implement code. It's useful for getting coding results or comparing with other tools.
code-mate-deepseek-harness
53kHelps your agent analyze and implement code in repositories. It's useful for bounded development tasks and code analysis.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.