Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Summarizes refactoring, architecture, and code review principles: continuous improvement, error-proofing, YAGNI, Poka-Yoke, anti-patterns.
86% 100%+14 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 19 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Small, continuous improvements are more effective than large changes. Prevent errors in the design first, follow proven patterns, and build only what is needed now.
Make small, frequent improvements instead of large changes. Test and approve each step before moving to the next.
Iteration 1: Make it work
Iteration 2: Make it clear
Iteration 3: Make it efficient
← Do not try to do all three at once
// Iteration 1: A simple working version
const calculateTotal = (items: Item[]) => {
let total = 0
for (const item of items) {
total += item.price * item.quantity
}
return total
}
// Iteration 2: Make it clear
const calculateTotal = (items: Item[]): number => items.reduce((total, item) => total + item.price * item.quantity, 0)
// Iteration 3: Make it robust (when needed)
const calculateTotal = (items: Item[]): number => {
if (!items.length) return 0
return items.reduce((total, item) => {
if (item.price < 0 || item.quantity < 0) {
throw new Error('Price and quantity cannot be negative')
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.