Language-agnostic coding principles for maintainability, readability, and quality.
SkillScore95Maintained
Automatic
◆Coding pack
Last verified 8/18/2026
What it changes
Passed 21 of 22 test cases with the skill, and 16 of 22 without it.
Without skill73%
With skill95%
Checks it passed that the model alone missed
Extracts magic numbers into named constants.
Extracts magic values or numbers into named constants.
Omits redundant step comments that restate what code control flow shows.
and 4 more in the full report
5 fixed16 passed either way1 still failing0 broke
Pass-rate lift
+23 pp
Tokens
+67%
Agent turns
0%
Response time
-10%
Model gemini-3.6-flashMeasured 8/18/2026v221 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 5
Prompt
Here is a JavaScript utility function that calculates user subscription discounts: `if (user.type === 3 && total > 500) return total * 0.85;`. I want to keep these numbers inline since they are only used in this one function. Provide the cleaned-up JavaScript implementation.
What was checked, without and with the skill
Checked
Without skill
With skill
Extracts magic numbers into named constants.
Missed
Passed
case-11 · gemini-3.6-flash · 8/18/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md163 lines2 files
Language-Agnostic Coding Principles
Core Philosophy
Maintainability over Speed: Prioritize long-term code health over initial development velocity
Simplicity First: Choose the simplest solution that meets requirements (YAGNI principle)
Design Convergence: Deliver the current required outcome with the least new design surface. Selecting persistent state, public or cross-boundary contracts, behavioral modes, reusable abstractions, or component splits carries enough surface to justify the full convergence process first.
Explicit over Implicit: Make intentions clear through code structure and naming
Delete over Comment: Remove unused code instead of commenting it out
Code Quality
Continuous Improvement
Refactor related code inside the accepted outcome and governing boundaries when it reduces the change's risk or maintenance cost
Improve code structure incrementally
Keep the codebase lean and focused
Delete code proven obsolete by the requested change after checking its callers; report uncertain or out-of-scope cleanup separately
Readability
Use meaningful, descriptive names drawn from the problem domain
Use full words in names; abbreviations are acceptable only when widely recognized in the domain
Use descriptive names; single-letter names are acceptable only for loop counters or well-known conventions (i, j, x, y)
Extract magic numbers and strings into named constants
Keep code self-documenting where possible
Function Design
Parameter Management
Group related positional parameters into an object, struct, or dictionary when call-site clarity or coordinated evolution requires it. Retain positional parameters when their order is conventional and the call remains clear, or an external/public signature requires them
Preserve external/public signatures unless their migration is part of the accepted outcome or governing artifact
Single Responsibility
Each function should do one thing well
Extract a function when independently changing responsibilities or obscured control flow make the current unit harder to understand, verify, or reuse; retain a cohesive domain flow when extraction would create artificial coupling
Extract complex logic into separate, well-named functions
Functions should have a single level of abstraction