Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ciembor/code-complete
Apply Steve McConnell-inspired construction rules when implementing routines, variables, classes, control flow, defensive code, or tests.
Passed 23 of 24 test cases with the skill, and 22 of 24 without it.
2 fixed21 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
In a Java internal service, a private routine `calculateBonus(BigDecimal salary, int years)` is called exclusively by internal system logic. A developer suggests throwing a checked `IllegalArgumentException` if `salary` is negative. Show the defensive code statement for verifying this internal precondition.
| Checked | Without skill | With skill |
|---|---|---|
| Uses an assertion statement rather than throwing an exception to check the internal invariant. | Missed | Passed |
The instructions your model reads when the skill loads.
Use this skill when a task involves disciplined software construction: routine design, variable use, class design, control flow, defensive programming, coding standards, or implementation testing.
Before making design or code decisions, read and apply code-complete.mini.md. Use code-complete.md only as a deeper reference when the mini rules are not enough for the current construction tradeoff.
test cases passed, vs 22 / 24 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.