/ken:ken-reviewfrom ken
Reviews code diffs for Thompson-mode method violations: rot, unnecessary layers, unvouched dependencies, overly clever code, and ceremony. Outputs one-line findings with location, issue, and fix suggestion.
Ships in ken. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Review diffs for Thompson-mode violations. One line per finding: location, what's wrong, the move. The diff's best outcome is fewer layers and a smaller trusted base.
L<line>: <tag> <what>. <the move>., or <file>:L<line>: ... for
multi-file diffs.
Tags:
rot: unit on repeated patches; the next fix is a rewrite, not patch N+1. Name the rewrite's shape.layer: wrapper, adapter, or manager that adds no decision of its own. Delete it, move callers down a level.unvouched: dependency or pasted code nobody present can explain. Vouch for it (read it) or replace with a few lines you own.fancy: clever algorithm where the plain loop wins at this scale. Name the brute-force form; demand the measurement that justifies fancy.ceremony: process, abstraction, or config that serves the process itself. Remove it.❌ "This caching layer might benefit from reconsidering its abstraction boundaries and perhaps simplifying the invalidation strategy."
✅ L12-60: rot: third patch on this cache's invalidation. Rewrite on a plain dict + mtime check, ~25 lines.
✅ L4: unvouched: left-pad-like microdep imported unread. 3 lines inline, trusted base shrinks by one.
✅ svc.py:L88: layer: OrderManager delegates every call to OrderRepo. Delete, callers hit OrderRepo.
✅ L30-52: fancy: hand-rolled B-tree for 40 entries. Flat array + linear scan; ken: revisit when n > 10k measured.
✅ L71: ceremony: config flag nobody sets gates one constant. Inline the constant.
End with the metrics that matter: net: -<N> lines, -<M> layers, trusted base -<K> deps possible.
If there is nothing to flag, say Sound. Ship it. and stop.
Scope: Thompson-mode method violations only. Correctness bugs, security
holes, and performance are out of scope. Route them to a normal
review pass, not this one. A single smoke test or assert-based self-check
is the ken minimum, not ceremony, never flag it for removal.
Does not apply the fixes, only lists them.
"stop ken-review" or "normal mode": revert to verbose review style.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rajnandan1/ken --plugin ken6 skills in this plugin
/kenThompson-mode systems discipline: think first, steal proven ideas, build bottom-up from primitives you can explain line by line, brute force until scale is proven, throw away what fights back and rewrite it. Supports intensity levels: lite, full (default), ultra. Use on ANY coding task: writing, adding, refactoring, fixing, reviewing, or designing code, and choosing libraries or dependencies. Also use whenever the user says "ken", "ken mode", "thompson mode", "brute force it", "rewrite it", or "throw it out and redo it". Do NOT use for non-coding requests (general knowledge, prose, translation, summaries, recipes).
/ken-auditWhole-repo audit for Thompson-mode violations. Like ken-review, but scans the entire codebase instead of a diff: a ranked list of what to rewrite, delete, or take back into the trusted base. Use when the user says "audit this codebase", "audit for rot", "what should be rewritten in this repo", "find the rot", "ken-audit", or "/ken-audit". One-shot report, does not apply fixes.
/ken-debtHarvest every `ken:` comment in the codebase into a ceilings ledger, so the deliberate brute-force ceilings ken leaves behind get tracked instead of rotting into "later means never". Use when the user says "ken debt", "/ken-debt", "what did ken defer", "list the ceilings", "ken ledger", or "what brute force did we mark". One-shot report, changes nothing.
/ken-gainShow ken's measured impact as a compact scoreboard, from ken's own benchmark results in benchmarks/results/. One-shot display, not a persistent mode, and not a per-repo number. Trigger: /ken-gain, "ken gain", "what does ken save", "show ken impact", "ken scoreboard".
/ken-helpQuick-reference card for all ken modes, skills, and commands. One-shot display, not a persistent mode. Trigger: /ken-help, "ken help", "what ken commands", "how do I use ken".
Other plugins' skills for the same job