Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use this skill when writing, modifying, or generating code of any kind. Activated when the user asks to build features, implement functions, create components, write endpoints, set up forms, wire things together, or produce any working implementation. Trigger phrases: "build this", "implement", "write the code for", "create a function that", "add this endpoint", "make it work", "update this code to", "wire this together". Do NOT use for: pure architectural decisions before implementation starts
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | -25% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 239% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 229% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 156% | 0% |
Run these before and during implementation:
| Lens | Question | | --- | --- | | Intent | Is business intent obvious from names alone — without reading the body? | | Scope | Does this function/module have exactly one job? | | Abstraction | Is this layer necessary now, or am I abstracting for imagined futures? | | Boundaries | Are inputs validated at entry points? Are outputs intentional? | | Error behavior | What happens on failure, timeout, malformed input? Handled or swallowed? | | State/side effects | Where exactly does state change? Is the order obvious? | | Testability | Can important behavior be verified without heroic setup? | | Consistency | Does this match the surrounding codebase's patterns? | | Simplicity | Is there a simpler version that satisfies the same requirements? | | Change safety | What will break when someone edits this? Are dependencies explicit? |
| Anti-Pattern | What It Is | Fix | | --- | --- | --- | | Cleverness trap | Nested ternaries, bitwise tricks, compressed chains | Write the obvious version. Lines are free. | | Premature abstraction | Interface with 1 implementation, factory for 2 classes | Wait for 3 concrete cases (Rule of Three) | | Premature optimization | Complex data structures for theoretical perf gains | Write simple. Profile. Optimize the measured bottleneck only. | | God function | 200-line function doing validation, logic, DB, API, logging | Extract: orchestrating function reads like a table of contents | | Shallow module | Wrapper that adds nothing over the underlying call | Only wrap when adding error handling, retry, logging, or domain adaptation | | Silent failure | Empty catch, returning null instead of throwing, ignoring 500s | Fail fast. Log with context. Force callers to handle failure cases. | | Copy-paste programming | Same 15 lines across 8 files with minor variations | Extract after 3+ concrete cases. Patch all copies immediately in the meantime. | | Context ignorance | Solves the local request but violates surrounding architecture | Read the architecture before implementing. Match layer, naming, responsibility. |
Before declaring done, follow data from origin → through every transformation → to final consumer.
Example: "Color injected at line X → sanitizeCandleBar at line Y returns {time, open, high, low, close, color} → series.update() at line Z receives all required fields. Confirmed."
If a parallel function exists (sanitizeTickPoint ↔ sanitizeCandleBar): verify BOTH.
data, flag, process, check)Simple implementation: Brief statement of what was built → Code → What to verify
Moderate implementation: Objective restatement → Approach and rationale → Code → Assumptions made → Edge cases and error handling → What to verify
Complex implementation: All of the above + Key design decisions explained + Testing recommendations + Security/performance considerations if relevant + Next steps
Other measured skills in the registry, with their headline benchmark lift.