Install any skill in seconds. Free to start, no credit card required.
Get Started Free →zzafergok/kaizen-engineering-principles
Engineering excellence through continuous improvement, error-proofing by design, standardized work, and just-in-time development.
Passed 22 of 22 test cases with the skill, and 19 of 22 without it.
3 fixed19 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am setting up an API handler file in TypeScript that handles incoming request payloads and includes multiple module imports. Can you refactor this file according to robust software design practices, outputting the updated code along with an explanatory list of the improvements applied?
| Checked | Without skill | With skill |
|---|---|---|
| The implementation avoids introducing speculative abstract classes or interface layers for single concrete implementations. | Passed | Passed |
| Module imports are ordered with external packages first, relative or internal path imports second, and type-only imports last. | Missed | Passed |
The instructions your model reads when the skill loads.
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')
test cases passed, vs 19 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.