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 Remove console statements in production. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.
.claude/skills/thedaviddias-console-cleanup/SKILL.md| Model | Eval pass | Runs |
|---|---|---|
| gemini-3.6-flash | 100% | 22 |
| gemini-3.1-pro-preview | 100% | 1 |
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-16 | ✗→✓ | ▲ Improved | -25% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 2% | 0% |
| case-09 | ✓→✗ | ▼ Worse | -17% | 0% |
Console statements leak sensitive information, impact performance, and create unprofessional user experiences when visible in production.
Scan this JavaScript code for console.log, console.debug, console.warn, console.error, and other console statements that should be removed before production deployment.
Remove or conditionally disable console statements for production, or replace them with a proper logging service.
Explain why console statements should be removed from production code and alternatives for logging.
Review scripts, client components, and browser execution paths related to Remove console statements in production. 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/console-cleanup
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 10,346 | 9,705 | -6% | 1 | 1 | 0% | 2,193 | 2,224 | +1% | 0 | 0 | — |
case-02 | fail→fail | 11,298 | 11,077 | -2% | 1 | 1 | 0% | 1,853 | 1,708 | -8% | 0 | 0 | — |
case-03 | pass→pass | 15,747 | 12,107 | -23% | 1 | 1 | 0% | 3,185 | 2,663 | -16% | 0 | 0 | — |
case-04 | pass→pass | 14,078 | 12,473 | -11% | 1 | 1 | 0% | 2,450 | 2,493 | +2% | 0 | 0 | — |
case-05 | pass→pass | 12,473 | 6,652 | -47% | 1 | 1 | 0% | 2,525 | 1,493 | -41% | 0 | 0 | — |
case-06 | pass→pass | 9,911 | 9,120 | -8% | 1 | 1 | 0% | 2,014 | 2,420 | +20% | 0 | 0 | — |
case-07 | pass→pass | 8,847 | 6,464 | -27% | 1 | 1 | 0% | 2,001 | 1,732 | -13% | 0 | 0 | — |
case-08 | pass→pass | 6,832 | 5,279 | -23% | 1 | 1 | 0% | 1,302 | 1,422 | +9% | 0 | 0 | — |
case-09 | pass→fail | 13,771 | 9,897 | -28% | 1 | 1 | 0% | 2,627 | 2,174 | -17% | 0 | 0 | — |
case-10 | fail→pass | 13,095 | 10,829 | -17% | 1 | 1 | 0% | 2,668 | 2,214 | -17% | 0 | 0 | — |
case-11 | pass→pass | 10,279 | 8,440 | -18% | 1 | 1 | 0% | 1,894 | 1,824 | -4% | 0 | 0 | — |
case-16 | fail→pass | 10,310 | 6,815 | -34% | 1 | 1 | 0% | 2,054 | 1,545 | -25% | 0 | 0 | — |
case-12 | pass→pass | 9,232 | 7,577 | -18% | 1 | 1 | 0% | 1,725 | 1,674 | -3% | 0 | 0 | — |
case-13 | pass→pass | 15,598 | 12,157 | -22% | 1 | 1 | 0% | 3,040 | 2,696 | -11% | 0 | 0 | — |
case-14 | fail→pass | 5,745 | 4,556 | -21% | 1 | 1 | 0% | 1,162 | 1,187 | +2% | 0 | 0 | — |
case-15 | pass→pass | 6,411 | 4,813 | -25% | 1 | 1 | 0% | 1,249 | 1,216 | -3% | 0 | 0 | — |
case-17 | pass→pass | 11,753 | 9,922 | -16% | 1 | 1 | 0% | 2,063 | 2,025 | -2% | 0 | 0 | — |
case-18 | pass→pass | 9,126 | 7,313 | -20% | 1 | 1 | 0% | 1,766 | 1,766 | 0% | 0 | 0 | — |
case-19 | pass→pass | 11,195 | 7,005 | -37% | 1 | 1 | 0% | 1,795 | 1,627 | -9% | 0 | 0 | — |
case-20 | pass→pass | 11,453 | 11,255 | -2% | 1 | 1 | 0% | 1,759 | 2,281 | +30% | 0 | 0 | — |
case-21 | pass→pass | 4,847 | 4,800 | -1% | 1 | 1 | 0% | 991 | 1,274 | +29% | 0 | 0 | — |
case-22 | pass→pass | 6,148 | 5,054 | -18% | 1 | 1 | 0% | 1,208 | 1,219 | +1% | 0 | 0 | — |
case-23 | pass→pass | 6,088 | 6,533 | +7% | 1 | 1 | 0% | 1,400 | 1,605 | +15% | 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 +13 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.