Agent skill

Kimi Code Delegation

by CherryHQ in CherryHQ/cherry-studio

Delegates one bounded repository task to Kimi Code in non-interactive prompt mode and reads back the final result from its JSON event stream.

AGPL-3.0Auto-check passedAgent Workflows

Install Kimi Code Delegation

skills CLI
$ npx skills add CherryHQ/cherry-studio --skill code-mate-kimi-code -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install CherryHQ/cherry-studio code-mate-kimi-code --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/CherryHQ/cherry-studio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/resources/code-cli-skills/code-mate-kimi-code .claude/skills/code-mate-kimi-code && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-mate-kimi-code
GitHub stars
52k
Used in
1 other repo
Token cost
~504 tokens
SKILL.md length
272 words
Files
1
Skills in repo
30
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Delegates one bounded repository task to Kimi Code in non-interactive prompt mode and reads back the final result from its JSON event stream.

  • Works in 3 steps: Set the Bash working directory to the… → Check availability with command -v kimi.… → Run one prompt and exit
  • Handing a self-contained coding task to Kimi Code
  • SKILL.md covers Run and Authentication And Permissions
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

The agent runs a single prompt through the `kimi` command with `-p` and `--output-format stream-json`, in the smallest directory you authorized and with a finite timeout, normally ten minutes. It first checks that `kimi` is installed and, if not, stops and asks you to install Kimi Code in Code Mate. Output is parsed as JSONL in event order, the final assistant result is extracted, and an error event or nonzero exit counts as failure.

Prompt mode approves tool calls automatically and rejects `--yolo`, `--auto` and `--plan`, so the skill advises against running it on a writable project for a read-only task and suggests a disposable or read-only copy. It never starts the interactive UI or `kimi login` and never requests or prints credentials. For an approved write task, the agent names the files Kimi may change and inspects the diff afterward. Kimi keeps session state under `KIMI_CODE_HOME`, which may need one narrowly escalated retry inside a sandbox.

When your agent uses it

  • Handing a self-contained coding task to Kimi Code
  • Getting a read-only second look at a repository from Kimi Code
  • Running Kimi Code on a disposable copy of a project

Example prompts

  • “Ask Kimi Code to summarize how authentication works in this repo, using a read-only copy.”
  • “Delegate renaming the config loader to Kimi, limited to the files in src/config, then show me the diff.”
  • “Run Kimi Code on this bug report and give me its final answer.”

Requirements

  • Kimi Code installed in Code Mate, with the `kimi` command on the PATH
  • A Kimi Code login, model and provider already configured

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit c97c23c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kimi Code Delegation loads about 504 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 272 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~504

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from CherryHQ/cherry-studio at commit c97c23c, republished under its AGPL-3.0 licence (© CherryHQ). 272 words, ~504 tokens.

Download SKILL.mdSave it as .claude/skills/code-mate-kimi-code/SKILL.md (or your agent's skills folder).
name
code-mate-kimi-code
description
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.

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:
bash
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.

© CherryHQ, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in resources/code-cli-skills/code-mate-kimi-code of CherryHQ/cherry-studio.

Open the folder on GitHubat commit c97c23c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in CherryHQ/cherry-studio, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Kimi Code Delegation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kimi Code Delegation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kimi Code Delegation this skillCherryHQ/cherry-studio52k1 repos~504Automated safety check: PassAGPL-3.0
Subagentethanhq/cc-fleet215—~4.3kAutomated safety check: PassApache-2.0
Claw Multi AgentLeoYeAI/openclaw-master-skills2.2k—~5.5kAutomated safety check: PassMIT
O2 Review Loopopenobserve/openobserve22k—~3.7kAutomated safety check: PassAGPL-3.0
Swarm Orchestrationruvnet/ruflo74k2 repos~779Automated safety check: PassMIT
Sub-Agent DelegationTokenRhythm/opensquilla7.1k—~3kAutomated safety check: PassApache-2.0

Similar skills

  • Subagent

    ethanhq/cc-fleet

    Run a one-shot or flat parallel batch of provider LLM subagents (headless cc-fleet subagent) that return a result.

    215 GitHub stars~4.3k tokensUpdated 8 days ago
    Agent WorkflowsAuto-check passed
  • Claw Multi Agent

    LeoYeAI/openclaw-master-skills

    Multi-agent parallel orchestration for OpenClaw. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~5.5k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • O2 Review Loop

    openobserve/openobserve

    Splits a change into planner, coder and independent reviewer roles: you confirm a spec, a subagent implements it, and a separate reviewer checks each round's local WIP commit.

    22k GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Agent WorkflowsAuto-check passed
  • Sub-Agent Delegation

    TokenRhythm/opensquilla

    Hands a self-contained coding task to Codex, Claude Code, OpenCode or Pi as a non-interactive background process, using OpenSquilla's exec_command and process tools.

    7.1k GitHub stars~3k tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed
  • Subagent-Driven Development

    HoangNguyen0403/agent-skills-standard

    Runs a multi-task implementation plan by sending each task to a fresh implementer subagent, reviewing it independently, then reviewing the whole branch.

    571 GitHub stars~1.3k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from CherryHQ/cherry-studio

All 30 skills in this repo
  • Office File Transform

    CherryHQ/cherry-studio

    Derives new files from a selected part of a spreadsheet, Word document, PDF or slide deck, such as a cell range, paragraph, page or slide, without ever modifying the source file.

    52k GitHub stars~4.7k tokensUpdated today
    Auto-check passed
  • GitHub Issue Creator

    CherryHQ/cherry-studio

    Creates GitHub issues for the current repository by choosing the matching issue template and following its format, with a permission check for engineering tasks.

    52k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Cherry Studio PR Review

    CherryHQ/cherry-studio

    Reviews Cherry Studio branches, pull requests, commits, files and docs against the project's own architecture, naming, API-boundary and UI rules, report-only by default.

    52k GitHub stars~3.9k tokensUpdated today
    Auto-check passed
  • Cherry Studio Regression Tests

    CherryHQ/cherry-studio

    Runs Cherry Studio's critical-path regression suite as deterministic Playwright E2E tests through a GitHub workflow on macOS and Windows runners.

    52k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Antigravity CLI Runner

    CherryHQ/cherry-studio

    Runs the Antigravity CLI headlessly with the agy command to analyze a repository or carry out a coding task, then checks its JSON result and the diff.

    52k GitHub stars~531 tokensUpdated today
    Auto-check passed
  • GitHub PR Creation

    CherryHQ/cherry-studio

    Creates or updates GitHub pull requests by reading the repository's PR template, filling every section and picking the right base branch under its release rules.

    52k GitHub stars~1.8k tokensUpdated today
    Auto-check passed

Works with

Questions about Kimi Code Delegation

What does Kimi Code Delegation do?

Delegates one bounded repository task to Kimi Code in non-interactive prompt mode and reads back the final result from its JSON event stream. The agent runs a single prompt through the `kimi` command with `-p` and `--output-format stream-json`, in the smallest directory you authorized and with a finite timeout, normally ten minutes. It first checks that `kimi` is installed and, if not, stops and asks you to install Kimi Code in Code Mate.

When should I use Kimi Code Delegation?

Kimi Code Delegation fits situations like: handing a self-contained coding task to Kimi Code; getting a read-only second look at a repository from Kimi Code; running Kimi Code on a disposable copy of a project.

How do I install Kimi Code Delegation in Claude Code?

Run `npx skills add CherryHQ/cherry-studio --skill code-mate-kimi-code -a claude-code`. Or copy the skill folder (resources/code-cli-skills/code-mate-kimi-code in CherryHQ/cherry-studio) into .claude/skills/code-mate-kimi-code in your project. Claude Code loads it when a task matches its description.

How do I install Kimi Code Delegation in Codex?

Run `npx skills add CherryHQ/cherry-studio --skill code-mate-kimi-code -a codex`. Or copy the skill folder (resources/code-cli-skills/code-mate-kimi-code in CherryHQ/cherry-studio) into .agents/skills/code-mate-kimi-code in your project. Codex loads it when a task matches its description.

Can I use Kimi Code Delegation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add CherryHQ/cherry-studio --skill code-mate-kimi-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-mate-kimi-code, .gemini/skills/code-mate-kimi-code, .github/skills/code-mate-kimi-code and .opencode/skills/code-mate-kimi-code in your project.

What does Kimi Code Delegation need to run?

SKILL.md names no scripts, command-line tools or credentials: Kimi Code Delegation is instructions for the agent only. Our summary lists: Kimi Code installed in Code Mate, with the `kimi` command on the PATH; A Kimi Code login, model and provider already configured.

Does Kimi Code Delegation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Kimi Code Delegation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Kimi Code Delegation use?

Kimi Code Delegation is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kimi Code Delegation use?

About 504 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Kimi Code Delegation?

Skills that share tags, products or a category with Kimi Code Delegation: Subagent (ethanhq/cc-fleet, 215 stars), Claw Multi Agent (LeoYeAI/openclaw-master-skills, 2.2k stars), O2 Review Loop (openobserve/openobserve, 22k stars) and Swarm Orchestration (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kimi Code Delegation?

CherryHQ (a GitHub organization) maintains it in CherryHQ/cherry-studio, which has 52,431 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 8, 2026.

Source: CherryHQ/cherry-studio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.