Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

kimi-first

A Claude Code skill that routes implementation work-orders to Kimi Code CLI (Kimi k3) lanes — Kimi types, Claude thinks and verifies.

Claude keeps the judgment work: specs, architecture, orchestration, review, and the merge button. Kimi gets the hands-on volume: frozen-spec builds, mechanical migrations, test fills, bulk sweeps, CI fixes. Kimi's flat-rate membership makes it a cheap, high-throughput implementation lane while Claude spends its tokens on the parts that need judgment.

This is a port of @steipete's excellent codex-first skill (from agent-scripts) — same delegation doctrine, swapped from the Codex CLI to the Kimi Code CLI.

How it works

When a task reads as a work order (the spec is frozen, no design decisions left), Claude:

  1. Writes a full-context prompt to a temp file — goal, repo paths, constraints, non-goals, expected proof, output shape. Kimi starts with zero session context, so spec quality decides success.
  2. Runs kimi -p headless in the target repo (tool calls auto-approved, thinking to stderr, answer to stdout).
  3. Reviews the full diff like a hostile PR reviewer, runs the tests itself — Kimi's claims are advisory.
  4. Iterates via kimi --continue; after 2 failed rounds, takes over and does it directly.
  5. Ships through normal repo protocol — Claude's hands on the merge button, never Kimi's.

Design work, tiny edits, prod operations, and review are never delegated.

Install

1. Kimi Code CLI (skip if you have it — check with kimi --version):

curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
kimi login   # device-code flow, needs a Kimi membership

Docs: moonshotai.github.io/kimi-code

2. The skill, into Claude Code:

mkdir -p ~/.claude/skills/kimi-first
curl -fsSL https://raw.githubusercontent.com/boringmarketer/kimi-first/main/skills/kimi-first/SKILL.md \
  -o ~/.claude/skills/kimi-first/SKILL.md

Or clone and symlink:

git clone https://github.com/boringmarketer/kimi-first.git
ln -s "$(pwd)/kimi-first/skills/kimi-first" ~/.claude/skills/kimi-first

Claude Code picks it up automatically; invoke it explicitly with /kimi-first or just hand Claude a work-order-shaped task.

Verified behavior

The CLI mechanics in the skill were live-tested against Kimi Code CLI v0.26.0:

  • kimi -p runs headless with tool calls auto-approved — answer on stdout (-prefixed), thinking on stderr
  • --yolo refuses to combine with -p (and isn't needed)
  • kimi --continue -p resumes the latest session for that directory with full context
  • --continue is cwd-filtered — never run two concurrent sessions in the same directory
  • Headless mode auto-approves, so only delegate from repos without prod secrets in reach

Credits

License

MIT

About

Claude Code skill: Kimi types, Claude thinks & verifies — route implementation work-orders to the Kimi Code CLI (k3). A port of @steipete's codex-first (github.com/steipete/agent-scripts). By @boringmarketer · boringmarketing.com

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors