over-engineering-review
Step simplify (9) of the pipeline (WORKFLOW.md), or a one-off mode on a diff before merge.
A single question asked of every line in scope: can this disappear without breaking
anything? No correctness judgement (that's the diff reviewer), no convention judgement (the
*-conventions blocks): only the hunt for what should never have been written.
When
- Alongside the diff reviewer/
gandalf on an MR, when a diff looks bigger than the need
justifies.
- As a one-off audit of a whole repo (not just a diff) when over-engineering debt is suspected.
- As raw material for the native
simplify skill, which then applies the deletions retained:
this block fixes nothing itself, it lists and scores.
Steps
Diff mode (a change in progress)
Go through only the added/modified lines of the diff. For each candidate found, one finding line
with a tag:
to-delete:, dead code, never called, or duplicated from an existing helper already present
in the repo (see also [[reuse-before-write]]). Three shapes that are easy to
walk past: a constructor dependency the class never reads, a condition re-tested inside itself or
twice in one chain, and the same guard written twice in one method with nothing reassigned between.
stdlib:, a function/utility reinvented when the language, the framework or an
already-installed lib does it natively.
over-abstraction:, an interface, wrapper or delegation layer with only one real caller: the
abstraction is useless until a second use case exists.
yagni:, a feature, option or parameter anticipated for a need nobody asked for today (flag,
pre-emptive chunking, cache, unused config).
to-shrink:, the same behaviour reachable with appreciably less code (dead branches, cases
never reached, pointless indirection).
Finding format: <tag> file:line, what, in one sentence. No paragraph, no expanded
justification (see [[short-review-checklist-items]]), the dev fixes it or asks.
Audit mode (whole repo): measure, rank, defend
An audit run on adjectives produces forty speculative findings. Run it in three passes, in this order.
- Count first, judge nothing yet. Record a raw number for each signal that applies, and let no
finding appear that is not traceable to one of them:
- an abstraction (interface, abstract class, contract type) with exactly one implementer;
- a function whose whole body is one call to another, adding no logic;
- indirection depth: files crossed from the entry point of each main flow to the code that does real work;
- an export nobody imports outside its own file;
- an option, config key, flag or enum member that nothing reads;
- two units doing the same job (formatting, money, fetch wrappers);
- a dependency with fewer than three import sites;
- a generic parameter, strategy or factory with a single registered member;
- defensive noise: a catch that hides the failure behind a default value, a null check the type already
excludes, the same validation at three layers.
- Rank, both ends. Order the files by structural lines (types, wrappers, re-exports,
boilerplate) against logic lines and report the top five and the bottom five, plus the depth of each
main flow. A ranking that shows only the bad end ranked nothing, and the bottom five are the model to
cite when a fix is proposed.
- Make each candidate defend itself. Take the ten worst. Each gets five fields or is dropped:
where, the measured number that flagged it, the concrete task it makes harder, the strongest honest
case for keeping it (a requirement that still exists, a genuinely volatile boundary, a test suite or
external contract that leans on it), and a verdict
REMOVE, SIMPLIFY or KEEP. Expect roughly a
third to end as KEEP: none means the defence was a formality, nearly all means the candidates were weak
and the next ten should be taken.
The correction has to cost less than the defect it removes. When taking an abstraction out is dearer than
putting up with it, the verdict is KEEP and there is no finding. Style, naming and "I would have written it differently" are out of scope.
Extra tags and guards
Two more tags (merge:, split:), the reuse: path rule, the whole-tree check before calling code unused,
the stated-shortcut rule, audit honesty and the net: estimate live in one reference. Read it when a finding
is about duplication or a function doing too many jobs, before calling code unused, before an audit report,
and before quoting net:.
| § |
Covers |
Read it when |
File |
| 1 |
merge:, split:, reuse: path, unused grep, stated shortcuts, audit honesty, net: as an estimate |
any of the situations above |
01-extra-tags-and-guards.md |
| 2 |
The deferral ledger: specs/<NNN>-<name>/debt.md, one row per deliberate shortcut (where, simplified, ceiling, trigger), the no-trigger tag, the report-only scan and its count |
a change takes a deliberate shortcut, a review meets a stated limit, or the operator asks what has been deferred |
02-debt-ledger.md |
Output / checkpoint
A list of tagged findings, ending with an overall score:
net: -N lines possible if concrete deletions are found, N = a low estimate of lines that can
be deleted without breaking anything.
already lean, nothing to report if the scope holds no candidate: an audit that finds nothing
is a valid result, not a failure of the review. Say a category is clean rather than padding it.
Audit mode adds the count table, the two-ended ranking, the REMOVE/SIMPLIFY entries, the KEEP
entries with their reason, and the single change that removes the most complexity for the least risk.
It also states what could not be checked (dynamic dispatch, reflection, anything only visible in production).
Guardrails
Never fix anything yourself: this block lists, simplify (native skill) or the dev applies.
Don't confuse it with a correctness review: a potential bug spotted along the way is reported
separately (to the diff reviewer/gandalf), not mixed into this list. An over-abstraction
candidate requires checking that there really is only one caller (grep before deciding), no
deletion on an assumption. A reviewer asked to find problems feels pressure to produce them: an invented
finding is itself the fault this block hunts.
Origin
Idea taken from a market deletion-oriented review tool (ponytail-review/ponytail-audit
skills, deletion angle only, per-category tags, net line score): mechanism and tags rewritten in
the vocabulary of the mentis blocks, no copied text.
Audit mode (count first, two-ended ranking, mandatory defence with a KEEP expected for about a third,
fix smaller than the problem) rewritten from the find-overengineering skill of
abdian/claude-toolkit-laravel (MIT), read 2026-10-02. The three to-delete shapes (unread constructor
dependency, redundant condition, doubled guard) come from the rule list of Heyosseus/sloppy (MIT),
same date. No text copied.
Section 2 of the references (the deferral ledger kept in the feature's debt.md) is stamped in
references/origin.md.
Section 1 of the references (merge:, split:, reuse: path, whole-tree grep before calling code unused,
stated shortcut as a decision, audit honesty, net: as an estimate) was added 2026-10-19 from the lean list
and the checks of the same ponytail-review and ponytail-audit skills and the honesty boundary of its
ponytail-gain skill (MIT, commit 09c434a, re-read in full). Two adaptations are ours: the stated limit is
recorded in the merge request or a decision record, not in a code comment, and the honesty line about
net: is stated for this block's own figure, not for the source's benchmark. Not carried: the bug, risk,
scale, test and speed groups, the four-part finding, the grouping into must, should and nice, and the
verdict line (the reviewers own those). Status of the section: 🟡, never dogfooded.
1---2name: over-engineering-review3description: "Use when re-reading a diff or a repo looking for one thing only, what can be deleted: dead code, reinvented stdlib, over-abstraction, unrequested anticipation. Measures first, forces a ranking, makes every candidate defend its right to stay. Scores and lists, never applies."4metadata:5 source: https://skillmd.com/skills/techmefr/over-engineering-review6---78# over-engineering-review910Step `simplify` (9) of the pipeline (`WORKFLOW.md`), or a one-off mode on a diff before merge.11A single question asked of every line in scope: **can this disappear without breaking12anything?** No correctness judgement (that's the diff reviewer), no convention judgement (the13`*-conventions` blocks): only the hunt for what should never have been written.1415## When16- Alongside the diff reviewer/`gandalf` on an MR, when a diff looks bigger than the need17 justifies.18- As a one-off audit of a whole repo (not just a diff) when over-engineering debt is suspected.19- As raw material for the native `simplify` skill, which then applies the deletions retained:20 this block fixes nothing itself, it lists and scores.2122## Steps2324### Diff mode (a change in progress)25Go through only the added/modified lines of the diff. For each candidate found, one finding line26with a tag:2728- `to-delete:`, dead code, never called, or duplicated from an existing helper already present29 in the repo (see also [[reuse-before-write]]). Three shapes that are easy to30 walk past: a constructor dependency the class never reads, a condition re-tested inside itself or31 twice in one chain, and the same guard written twice in one method with nothing reassigned between.32- `stdlib:`, a function/utility reinvented when the language, the framework or an33 already-installed lib does it natively.34- `over-abstraction:`, an interface, wrapper or delegation layer with only one real caller: the35 abstraction is useless until a second use case exists.36- `yagni:`, a feature, option or parameter anticipated for a need nobody asked for today (flag,37 pre-emptive chunking, cache, unused config).38- `to-shrink:`, the same behaviour reachable with appreciably less code (dead branches, cases39 never reached, pointless indirection).4041Finding format: `<tag> file:line, what, in one sentence`. No paragraph, no expanded42justification (see [[short-review-checklist-items]]), the dev fixes it or asks.4344### Audit mode (whole repo): measure, rank, defend45An audit run on adjectives produces forty speculative findings. Run it in three passes, in this order.46471. **Count first, judge nothing yet.** Record a raw number for each signal that applies, and let no48 finding appear that is not traceable to one of them:49 - an abstraction (interface, abstract class, contract type) with exactly one implementer;50 - a function whose whole body is one call to another, adding no logic;51 - indirection depth: files crossed from the entry point of each main flow to the code that does real work;52 - an export nobody imports outside its own file;53 - an option, config key, flag or enum member that nothing reads;54 - two units doing the same job (formatting, money, fetch wrappers);55 - a dependency with fewer than three import sites;56 - a generic parameter, strategy or factory with a single registered member;57 - defensive noise: a catch that hides the failure behind a default value, a null check the type already58 excludes, the same validation at three layers.592. **Rank, both ends.** Order the files by structural lines (types, wrappers, re-exports,60 boilerplate) against logic lines and report the top five and the bottom five, plus the depth of each61 main flow. A ranking that shows only the bad end ranked nothing, and the bottom five are the model to62 cite when a fix is proposed.633. **Make each candidate defend itself.** Take the ten worst. Each gets five fields or is dropped:64 where, the measured number that flagged it, the concrete task it makes harder, **the strongest honest65 case for keeping it** (a requirement that still exists, a genuinely volatile boundary, a test suite or66 external contract that leans on it), and a verdict `REMOVE`, `SIMPLIFY` or `KEEP`. Expect roughly a67 third to end as `KEEP`: none means the defence was a formality, nearly all means the candidates were weak68 and the next ten should be taken.6970The correction has to cost less than the defect it removes. When taking an abstraction out is dearer than71putting up with it, the verdict is `KEEP` and there is no finding. Style, naming and "I would have written it differently" are out of scope.7273### Extra tags and guards74Two more tags (`merge:`, `split:`), the `reuse:` path rule, the whole-tree check before calling code unused,75the stated-shortcut rule, audit honesty and the `net:` estimate live in one reference. Read it when a finding76is about duplication or a function doing too many jobs, before calling code unused, before an audit report,77and before quoting `net:`.7879| § | Covers | Read it when | File |80|---|---|---|---|81| 1 | `merge:`, `split:`, `reuse:` path, unused grep, stated shortcuts, audit honesty, `net:` as an estimate | any of the situations above | [`01-extra-tags-and-guards.md`](./references/01-extra-tags-and-guards.md) |82| 2 | The deferral ledger: `specs/<NNN>-<name>/debt.md`, one row per deliberate shortcut (where, simplified, ceiling, trigger), the `no-trigger` tag, the report-only scan and its count | a change takes a deliberate shortcut, a review meets a stated limit, or the operator asks what has been deferred | [`02-debt-ledger.md`](./references/02-debt-ledger.md) |8384## Output / checkpoint85A list of tagged findings, ending with an overall score:86- `net: -N lines possible` if concrete deletions are found, N = a low estimate of lines that can87 be deleted without breaking anything.88- `already lean, nothing to report` if the scope holds no candidate: an audit that finds nothing89 is a valid result, not a failure of the review. Say a category is clean rather than padding it.9091Audit mode adds the count table, the two-ended ranking, the `REMOVE`/`SIMPLIFY` entries, the `KEEP`92entries with their reason, and the single change that removes the most complexity for the least risk.93It also states what could not be checked (dynamic dispatch, reflection, anything only visible in production).9495## Guardrails96Never fix anything yourself: this block lists, `simplify` (native skill) or the dev applies.97Don't confuse it with a correctness review: a potential bug spotted along the way is reported98separately (to the diff reviewer/gandalf), not mixed into this list. An `over-abstraction`99candidate requires checking that there really is only one caller (grep before deciding), no100deletion on an assumption. A reviewer asked to find problems feels pressure to produce them: an invented101finding is itself the fault this block hunts.102103## Origin104Idea taken from a market deletion-oriented review tool (`ponytail-review`/`ponytail-audit`105skills, deletion angle only, per-category tags, net line score): mechanism and tags rewritten in106the vocabulary of the mentis blocks, no copied text.107108Audit mode (count first, two-ended ranking, mandatory defence with a `KEEP` expected for about a third,109fix smaller than the problem) rewritten from the `find-overengineering` skill of110`abdian/claude-toolkit-laravel` (MIT), read 2026-10-02. The three `to-delete` shapes (unread constructor111dependency, redundant condition, doubled guard) come from the rule list of `Heyosseus/sloppy` (MIT),112same date. No text copied.113114Section 2 of the references (the deferral ledger kept in the feature's `debt.md`) is stamped in115`references/origin.md`.116117Section 1 of the references (`merge:`, `split:`, `reuse:` path, whole-tree grep before calling code unused,118stated shortcut as a decision, audit honesty, `net:` as an estimate) was added 2026-10-19 from the lean list119and the checks of the same `ponytail-review` and `ponytail-audit` skills and the honesty boundary of its120`ponytail-gain` skill (MIT, commit 09c434a, re-read in full). Two adaptations are ours: the stated limit is121recorded in the merge request or a decision record, not in a code comment, and the honesty line about122`net:` is stated for this block's own figure, not for the source's benchmark. Not carried: the bug, risk,123scale, test and speed groups, the four-part finding, the grouping into must, should and nice, and the124verdict line (the reviewers own those). Status of the section: 🟡, never dogfooded.