Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when reviewing scripts, client components, bundles, or runtime behavior related to Prefer immutable data patterns. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.
.claude/skills/thedaviddias-immutable-patterns/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-16 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-21 | ✗→✓ | ▲ Improved | 16% | 0% |
| case-09 | ✓→✗ | ▼ Worse | -19% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 9% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 64% | 0% |
Mutating shared objects makes it impossible to track where a value changed. When you update state immutably, each version of the data is a separate object — you can compare references to detect changes, time-travel debug, and know exactly which part of your code changed the data.
Find all places in this code where objects or arrays are mutated in place. Flag direct property assignments on function parameters and push/splice on arrays.
Replace in-place mutations with immutable patterns using spread operators and non-mutating array methods.
Explain immutable data patterns, why mutation causes bugs in shared state, and how spread and array methods enable immutability.
Review scripts, client components, and browser execution paths related to Prefer immutable data patterns. Flag exact imports, event handlers, runtime side effects, or blocking operations that violate the rule, and state how the change should be verified in the browser.
For full implementation details, code examples, and framework-specific guidance, see references/rule.md.
Rule page: https://frontendchecklist.io/en/rules/javascript/immutable-patterns
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 9,246 | 7,529 | -19% | 1 | 1 | 0% | 1,599 | 1,741 | +9% | 0 | 0 | — |
case-02 | pass→pass | 2,887 | 2,683 | -7% | 1 | 1 | 0% | 526 | 862 | +64% | 0 | 0 | — |
case-03 | pass→pass | 9,570 | 5,610 | -41% | 1 | 1 | 0% | 1,842 | 1,458 | -21% | 0 | 0 | — |
case-04 | pass→pass | 3,672 | 6,716 | +83% | 1 | 1 | 0% | 754 | 1,500 | +99% | 0 | 0 | — |
case-05 | pass→pass | 5,468 | 5,863 | +7% | 1 | 1 | 0% | 1,090 | 1,389 | +27% | 0 | 0 | — |
case-16 | fail→pass | 9,817 | 6,831 | -30% | 1 | 1 | 0% | 1,993 | 1,663 | -17% | 0 | 0 | — |
case-06 | pass→pass | 3,882 | 5,661 | +46% | 1 | 1 | 0% | 920 | 1,378 | +50% | 0 | 0 | — |
case-07 | pass→pass | 6,923 | 5,183 | -25% | 1 | 1 | 0% | 1,339 | 1,249 | -7% | 0 | 0 | — |
case-08 | pass→pass | 6,111 | 7,941 | +30% | 1 | 1 | 0% | 1,130 | 1,948 | +72% | 0 | 0 | — |
case-09 | pass→fail | 14,725 | 9,407 | -36% | 1 | 1 | 0% | 2,406 | 1,940 | -19% | 0 | 0 | — |
case-10 | pass→pass | 2,780 | 4,651 | +67% | 1 | 1 | 0% | 618 | 1,307 | +111% | 0 | 0 | — |
case-11 | pass→pass | 3,527 | 3,955 | +12% | 1 | 1 | 0% | 676 | 1,023 | +51% | 0 | 0 | — |
case-12 | pass→pass | 5,563 | 7,103 | +28% | 1 | 1 | 0% | 1,286 | 1,822 | +42% | 0 | 0 | — |
case-13 | pass→pass | 6,798 | 7,933 | +17% | 1 | 1 | 0% | 1,308 | 1,920 | +47% | 0 | 0 | — |
case-14 | pass→pass | 3,308 | 4,401 | +33% | 1 | 1 | 0% | 803 | 1,213 | +51% | 0 | 0 | — |
case-15 | pass→pass | 3,886 | 5,711 | +47% | 1 | 1 | 0% | 858 | 1,484 | +73% | 0 | 0 | — |
case-17 | pass→pass | 12,187 | 10,838 | -11% | 1 | 1 | 0% | 2,382 | 2,343 | -2% | 0 | 0 | — |
case-18 | pass→pass | 6,157 | 7,272 | +18% | 1 | 1 | 0% | 1,165 | 1,729 | +48% | 0 | 0 | — |
case-19 | pass→pass | 8,498 | 6,525 | -23% | 1 | 1 | 0% | 1,393 | 1,573 | +13% | 0 | 0 | — |
case-20 | pass→pass | 18,785 | 17,382 | -7% | 1 | 1 | 0% | 3,435 | 3,845 | +12% | 0 | 0 | — |
case-21 | fail→pass | 15,467 | 16,305 | +5% | 1 | 1 | 0% | 2,207 | 2,554 | +16% | 0 | 0 | — |
case-22 | pass→pass | 15,291 | 19,103 | +25% | 1 | 1 | 0% | 2,030 | 2,903 | +43% | 0 | 0 | — |
case-23 | pass→pass | 4,600 | 11,339 | +147% | 1 | 1 | 0% | 980 | 1,242 | +27% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +4 percentage points is the difference between those two pass rates over the 23 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.