Lukasz Boryn ded5759973 feat(skills): rename skills to verb-first names; adopt blueprint vocabulary
feat(skills): rename scribe-OKF>write-OKF, implement>weave,
domain-modeling>model-domain, codebase-design>design-codebase,
caveman>talk-caveman, background-work>harden-background-work,
dev-python>develop-python, dev-r>develop-r, r-style>style-r,
handoff>write-handoff, cavecrew-octobot>spawn-cavecrew,
jj-atomic>commit-atomic-jj; bdd stays as the single grandfathered name
docs(skills): sweep spec>blueprint across skill prose; spec-format.md
becomes blueprint-format.md; internal Spec section becomes Contract;
commit citations now read implements blueprint NNN
docs(blueprint): numbering starts at 001 when OKF/blueprints/ is empty
docs(conjure): 110-line cap applies to SKILL.md only; siblings uncapped
fix(containerize): read an existing build-dev recipe and surface
semantic mismatch instead of trusting the name
2026-07-20 00:41:24 +02:00

4.1 KiB

name: winnow description: After-the-fact debloat audit; only removes; ends with a net: -N lines scoreboard. disable-model-invocation: true

winnow

When to use

  • User says "winnow", "/winnow", "debloat", "what can we delete", "is this over-engineered", "find what to cut", "simplify review".
  • A diff or file is written and working; you want a separate pass that hunts only for removable mass.
  • Not a judgment gate — that is ../sieve/SKILL.md. Winnow runs after the fact and argues only for deletion. It blows the chaff off the grain; it never adds.

Core principle

Only removes, and proves it with a number. Every finding names something to cut and its replacement; the audit ends with a line-count delta. A pass that can't show a negative number found nothing — it's just talk. The scoreboard is what makes minimalism rationalization-proof.

Tags

One finding per line:

<file>:<line>: <tag> <what>. <replacement>.
tag finds
delete dead code, unused flexibility — no replacement needed
stdlib hand-rolled logic the standard library already provides
native code/dependency duplicating a platform-native feature
yagni abstraction with one implementation, single-caller layer
shrink logic reducible to fewer lines with a cleaner pattern

Close with: net: -<N> lines possible.

Over-engineering signals

  • A 27-line validator class where a guard clause suffices.
  • A framework dependency solving one trivial problem.
  • An ABC / Protocol / interface with exactly one concrete implementation.
  • A configuration layer nobody configures.
  • A retry wrapper around an idempotent local operation.
  • A manual loop where a built-in (map, sum, comprehension) applies.

The brake — prove redundant before you cut

A "redundant" idiom may be load-bearing. Every delete/shrink is the claim "this is redundant" — refute it before you act (../review-angles/refute.md); the type-checker is one skeptic. A real review flagged a repeated tuple(r) for r in conn.execute(...) wrapper and a cast(int | None, line) as noise. Both were genuine no-ops at runtime — but deleting the wrapper broke the type-checker: the raw cursor row isn't positionally subscriptable, and the wrapper was normalising it.

So, before emitting any delete/shrink:

  • Run the type-checker, not just the tests. Tests stay green when you remove a type-only crutch; the checker is the one that bites.
  • When an idiom turns out load-bearing, centralise it (one helper that normalises once) — don't scatter it back, and don't just revert. The cut becomes a consolidation, still net-negative, still honest.
  • A finding whose only payoff is "fewer lines" but which a reader needs for clarity, or the checker needs for soundness, fails the audit — it was never chaff.

Scope

Winnow ignores correctness bugs, security, and performance — those are ../review-angles/SKILL.md and /code-review. This pass is only structural complexity. Staying single-axis is what keeps it sharp.

See also

  • ../sieve/SKILL.md — the judgment gate. Sieve decides what earns its place; winnow mechanically clears what doesn't.
  • ../nuke-review/SKILL.md — structural-quality review (code-judo). Pairs naturally — nuke-review judges shape; winnow clears chaff.
  • ../design-codebase/SKILL.md — the deletion test formalised: if removing a module makes complexity vanish, it was a pass-through; if it reappears across N callers, it earned its keep. The delete and yagni tags are this test mechanised.
  • ../bdd/refactoring-r.md — file the architectural follow-ups a winnow surfaces; don't auto-cut them mid-pass.
  • ../review-angles/SKILL.md — the correctness axis winnow deliberately does not touch.
  • ../review-blueprint/SKILL.md — the blueprint-fidelity axis winnow also does not touch.