How we tested react-best-practices

Measured: a benefit was seen but not confirmed. Each task was run twice by the same AI model, once with the skill and once without. A second model graded both outputs without knowing which was which.

The setup

Date
2026-11-22
Procedure
measured-v2; 12 tasks (12 held out: written before the skill was tuned), 1 run per side
Executor
claude-haiku-5-5
Blind grader
claude-sonnet-5-5, with claude-opus-5-5 as a second grader
Result
Pass rate 88% with the skill, 84% without; difference +3.9 points (95% interval -4.8 to +12.7, clustered by task). Assertions passed: 72 of 81 with, 69 of 81 without. Efficacy earned 12.1 of 35 points in the Platform Score.

How the verdict is decided is in the method. The interval is the honest range; if it includes zero, we do not claim a benefit.

Run table

TaskWith skillWithoutBlind grader
v2-t1-review-cart (held out)7/88/8tie (order-inconsistent)
Reason

Both catch all five planted bugs with valid fixes and sensible ordering. X avoids flagging the correct document.title effect, whereas Y adds it as item 8, though X pads with low-value extras (price hardcoding, currency formatting).

v2-t2-fix-searchbox (held out)6/76/7tie (order-inconsistent)
Reason

Both fix the race and the stuck loading correctly and keep markup and testids; both overshoot the notes length (X 100, Y 94 words, vs 'two or three sentences'). X also handles non-OK responses and cancels the real request; Y is slightly shorter and simpler.

v2-t3-write-taginput (held out)7/77/7preferred the skill
Reason

Both meet the spec with form-safe Enter, a disabled input at the limit, labelled remove buttons and a live region. Y also moves focus to the list when the input disables and ignores IME composition, fixing the focus-loss gap X admits, at the cost of an effect and an index-based key.

v2-t4-infinite-requests (held out)7/77/7tie (order-inconsistent)
Reason

Both apply the identical core fix (serialised key, AbortController, error reset) and both explain the loop correctly. Y additionally surfaces non-2xx responses as errors and spells out the loop step by step, a small but real gain, though it slightly exceeds the asked scope.

v2-t5-vue-prop-near-miss (held out)6/66/6tie
Reason

The fixed components are byte-for-byte equivalent in behaviour and both replies explain the read-only prop and emit correctly. Y is a bit shorter; X is slightly more precise about the zero bound.

v2-t6-ambiguous-form (held out)2/52/5tie (order-inconsistent)
Reason

Both are ~600-word tutorials with no question marks, failing the brevity brief. X puts its asks first as a compact numbered list, while Y leads with nine causes before asking for anything.

v2-t7-review-chatpanel (held out)6/76/7preferred the skill
Reason

Both put hooks and listener leak first with correct fixes and both miss the index-key problem. X's items 4 and 5 are in-file and actionable (a11y div, derive unread), while Y's item 5 about server-side sender trust is speculative and outside the file.

v2-t8-input-loses-focus (held out)6/66/6tie
Reason

Both hoist Field to module scope, keep testid and names, and use a functional updater. Y is slightly more minimal by keeping the onChange prop shape.

v2-t9-write-uselocalstorage (held out)7/87/8tie (order-inconsistent)
Reason

Both hooks are near-identical in design (post-mount read, ref-based updater, guarded read/write) and both fail the literal lazy-initialiser check for the same deliberate hydration reason. Y's toggle is a simpler change using an updater, while X adds an unrequested clamp.

v2-t10-stopwatch-stuck (held out)7/77/7tie (order-inconsistent)
Reason

The two fixed files are functionally identical; only the replies differ. Y's reply explains the overlapping-interval risk and lists what was not verified, while X is shorter and also correct, so Y is only marginally better.

v2-t11-express-near-miss (held out)6/73/7preferred the skill
Reason

Both fixes are correct (placeholders, await, 400 validation, try/catch); Y also makes the status filter optional. X honored the explicit two-line reply request while Y overran it at 81 words, so X wins on following instructions.

v2-t12-ambiguous-slow-grid (held out)5/64/6preferred the skill
Reason

Both are honest about not having measured and ask good clarifying questions (Y's 'what does slow mean' is the better one). X's code change is modest and verified for identical output, while Y adds memo and useDeferredValue that alter timing or are ineffective as written, so X wins narrowly.

Known weaknesses of these tasks

Noted by the reviewer who checked the tasks and rubric.

  • v2-t1-review-cart: The five script assertions are keyword checks that both sides pass trivially; they do not check that the fix is correct.
  • v2-t1-review-cart: The judge assertion bundles ordering, fix validity and the title point; it should be split.
  • v2-t1-review-cart: No assertion penalises padding with speculative low-value findings (X #8, #9) or checks the countdown going negative, which both found.
  • v2-t1-review-cart: Index-key severity is not checked; Y downgrades it to Style, X rates it medium.
  • v2-t2-fix-searchbox: Both sides pass most script assertions trivially, since AbortController/ignore and catch/finally are the obvious fixes.
  • v2-t2-fix-searchbox: The 80-word cap on notes.md is not stated in the task text ('two or three sentences'); both fail it, so it does not discriminate.
  • v2-t2-fix-searchbox: No assertion checks the non-OK HTTP response case (X handles it, Y does not) or that the empty-query branch clears loading.
  • v2-t2-fix-searchbox: The dependency assertion 'query and endpoint' is not derivable from the task text, only from lint knowledge.
  • v2-t3-write-taginput: Script assertions are met by both sides trivially (React-only import, no push, onChange twice, aria-label, type=button).
  • v2-t3-write-taginput: The index-key regex only matches key={i|idx|index}; Y's template key with index passes while still using the index, so the check is easily evaded.
  • v2-t3-write-taginput: The no-unnecessary-effects judge point conflicts with a legitimate focus-management effect.
  • v2-t3-write-taginput: No assertion checks focus management after the input becomes disabled, live-region announcements, or behaviour when value already exceeds maxTags.
  • v2-t4-infinite-requests: Assertions 2-4 are passed by almost any competent fix; both sides pass all script checks, so they do not discriminate.
  • v2-t4-infinite-requests: No assertion checks that the Authorization/token change still triggers a refetch beyond the judge item, nor that Profile's exports/props are unchanged.
  • v2-t4-infinite-requests: Nothing checks handling of non-2xx responses or unmount safety beyond the abort check; no assertion penalises unrequested behaviour changes.
  • v2-t4-infinite-requests: The regex in assertion 2 is brittle (depends on the '}, [' formatting).
  • v2-t5-vue-prop-near-miss: All script assertions are passed trivially by both sides because the fix is nearly forced.
  • v2-t5-vue-prop-near-miss: Nothing checks that the original component's template and other behaviour are preserved, or that the reply states it was not run.
  • v2-t5-vue-prop-near-miss: The word-limit and forbidden-words checks guard against React bleed-through but both pass.
  • v2-t6-ambiguous-form: Assertions 1 and 2 are mechanical and both sides fail them identically, so they do not separate the sides; the 220-word cap and question-mark count are strict proxies for 'ask, don't lecture'.
  • v2-t6-ambiguous-form: The question-mark check misses asks phrased as imperatives ('Tell me...'), which fairly satisfy the intent.
  • v2-t6-ambiguous-form: The code-request assertion is trivially passed by both.
  • v2-t6-ambiguous-form: The task says nothing about input files; both agents noted none were provided, and no assertion checks whether the reply correctly reports the missing code rather than stating it as a limitation of the folder.
  • v2-t7-review-chatpanel: Index-key assertion is failed by both; it is checkable but both agents ranked other issues higher, so it is arguably a poor 'top five' requirement.
  • v2-t7-review-chatpanel: The 'one of' assertion is passed trivially by both (unread derive appears in both).
  • v2-t7-review-chatpanel: The exactly-5 assertion passes trivially.
  • v2-t7-review-chatpanel: Nothing checks that items are one or two sentences, or that fixes are not overreaching (e.g. suggesting server changes).
  • v2-t8-input-loses-focus: All four script assertions are passed trivially by both.
  • v2-t8-input-loses-focus: Nothing checks the submit preventDefault problem or that labels/button remain intact, though both preserved them.
  • v2-t8-input-loses-focus: The 'no component declared inside' regex would not catch an inline arrow component assigned in a lowercase name.
  • v2-t9-write-uselocalstorage: The 'useState(()' assertion contradicts a defensible hydration-safe design (both fail it); it should test 'no storage access during render' instead.
  • v2-t9-write-uselocalstorage: The script assertions on try/catch, typeof window and 'function' are passed trivially by both.
  • v2-t9-write-uselocalstorage: Nothing checks the flash-of-default-theme tradeoff or hydration match, which both documented.
  • v2-t9-write-uselocalstorage: Nothing checks the setter against stale closure with two calls in a row beyond the judge.
  • v2-t10-stopwatch-stuck: Every assertion is passed by both sides; the task does not separate them on code.
  • v2-t10-stopwatch-stuck: The [script] checks are purely lexical; none runs the component, so Start-Stop-Start behaviour is judged only by reading.
  • v2-t10-stopwatch-stuck: Not checked: lap value correctness (laps store elapsed at click time), unmount behaviour, and that Start does not reset the counter.
  • v2-t11-express-near-miss: Assertions 2 and 4 are over-literal: they fail functionally correct fixes (params variable, MAX_SIZE constant) and measure style, not correctness; both sides fail the cap assertion.
  • v2-t11-express-near-miss: The 'SELECT line contains ?' check penalises building SQL in pieces, a legitimate pattern.
  • v2-t11-express-near-miss: The 60-word limit is not in the task (it says two lines), so it cannot be decided from the task text.
  • v2-t11-express-near-miss: Not checked: behaviour when status is absent (X returns 400, a change from the original; Y omits the filter), or non-numeric page handling beyond 400.
  • v2-t12-ambiguous-slow-grid: The 300-word limit is not in the task text, so it cannot be decided from the request; both sides fail it.
  • v2-t12-ambiguous-slow-grid: The sort-in-place assertion is trivially passed by both (each copies via .map) and its 'same statement' clause is ambiguous.
  • v2-t12-ambiguous-slow-grid: The file/props/imports and question-mark assertions are passed trivially by both.
  • v2-t12-ambiguous-slow-grid: Not checked: output equivalence of the fast version (X tested it, no assertion requires it), and whether the reply flags that memoisation depends on stable products/onSelect from the parent.

What this cannot tell you

  • Both models are AI models from one family. No human graded the outputs.
  • 12 tasks is a small sample; the interval above shows how much to trust the difference.
  • It was not independently reproduced.

Download the run records (JSON) · Back to react-best-practices