Afk kimi review
Part of the afk pipeline. Runs Kimi (Kimi CLI) as an independent, read-only external review gate on the current PR/branch, then triages and fixes the findings. Interchangeable with afk-codex-review and afk-glm-review, subject to .afk/config.md gate priority and min-pass. Internal review first, external gate last. Triggers include "/afk-kimi-review", "run kimi review", "kimi gate".From its SKILL.md
npx -y skills add jimmy1992abc/afk --skill afk-kimi-reviewAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.2 KB, as published. Nobody here has run it
afk-kimi-review
An independent second-opinion review by Kimi (a different model), used as the
last check before a PR is handed back for approval. Interchangeable with
afk-codex-review and afk-glm-review: run the configured external gate set
from .afk/config.md, and never use a gate whose model matches the implementer's
model. Run afk-internal-review first and resolve it, then run this gate:
internal review first, external gate last. Kimi reviews the diff read-only; you
triage and fix. Same role and output contract as the other gate skills; only the
underlying model differs.
The helper kimi-gate.mjs ships with this skill and travels with the plugin.
Metering
Metered like any external gate — keep invocations to a minimum. Batch findings into one fix pass, self-review, then re-run once; defer minor items to a single final pass.
Run it
The bundled helper kimi-gate.mjs sits beside this SKILL.md. Locate its
directory as ${CLAUDE_PLUGIN_ROOT}/skills/afk-kimi-review if the env var is set,
else <pluginRoot>/skills/afk-kimi-review from .afk/config.md, else this
skill's own directory (the helper is its sibling). Resolve .afk/ from the
repository's main working tree — the first worktree line of
git worktree list --porcelain — never the current directory, or a run from a
linked worktree reads a different .afk/ than the one afk-init wrote. If
.afk/ is absent, the afk-init bootstrap runs automatically first:
node "<helper-dir>/kimi-gate.mjs"
Run it in the background with a generous timeout; redirect stdout to a file
and read it when it completes. Pass through any target flag (--base <branch> /
--commit <sha> / --uncommitted). Do not poll in a sleep loop.
Design mode (--design <path>) reviews a design document's reasoning instead
of a diff — the opt-in design-stage gate (see ../afk/SKILL.md, "Design-stage
external gate"). Kimi is pointed at the document on disk and reads it with its own
tools (keeping a large doc off the argv). A missing or unreadable --design path
fails loudly (ERROR, non-zero), never a skip.
Read the verdict between the ===== KIMI REVIEW (final message) ===== markers.
SKIPPED: … (Kimi absent, logged out, or disabled via KIMI_REVIEW_GATE=off)
is not a failure — report it and continue.
Handle findings (batch — minimise calls)
Identical discipline to afk-codex-review: sort structural vs minor; verify each
finding to the standard below before trusting it; fix confirmed structural
findings in one batch and sweep for the pattern; self-review once; re-run once;
resolve minor items in a single final pass.
A structural finding claims both that the code is as described and that it goes
wrong; reading the cited file:line settles only the first. Demonstrate the
consequence before fixing, and account for every consumer of what you change
that lives outside the diff — ../afk/SKILL.md ("External gate") holds both
rules.
Apply any invariant in .afk/config.md as an extra lens.
Stop rule
Stop when the loop-termination rule in ../afk/SKILL.md ("External gate")
holds: a round with no new structural finding and every prior structural
finding closed by a recorded disposition — a driver-verified fix, a
refutation, or an accepted risk.
Report CLEAN, or OUTSTANDING with what remains. A clean pass is not
authority to merge.
Selection
Same role, same contract as the other external gate skills. The operator's
explicit choice wins; otherwise the afk skill's selection rule applies (skip
the implementer's own model). The round-1 gate choice is locked for later rounds
of the same PR; a mid-loop switch resets the finding baseline and is recorded.
Setup (per machine, once)
Optional and self-skipping. Install the Kimi CLI and log in; needs Node + git on
PATH. Disable with KIMI_REVIEW_GATE=off.