Skip to content
Skillpedia
General coding53k · #1809

code-mate-kimi-code

Helps your agent analyze and implement code in repositories. It's useful for delegating specific coding tasks.

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.

Example of what to ask your AI

“Run the following command in my repository: 'npm install'”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

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

Ready-to-paste message

Use this skill to help me: https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-kimi-code/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
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.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add CherryHQ/cherry-studio --skill code-mate-kimi-code

Or download just the file:

curl -L https://raw.githubusercontent.com/CherryHQ/cherry-studio/main/resources/code-cli-skills/code-mate-kimi-code/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from 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.

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
#1809
License
AGPL-3.0
Updated
10/16/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills