Index of every page on this site: llms.txt
All skills
meza avatar

/clean-code

@982e21e
by mezameza/skills2 stars
Run it yourself

Use when designing, writing, refactoring, reviewing, or explaining code, tests, APIs, modules, or architecture. Provides a progressive catalog of clean-code qualities covering comprehension, domain modeling, state and failure behavior, boundaries, evolvability, operability, safety, and test design.

Use this Skill: https://skilld.dev/gh/meza/skills/clean-code

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesevolvability-and-consistencyblast-radius-is-predictable.md

≈491 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Blast radius is predictable

The likely impact of changing a rule, dependency, schema, or interface is limited and understandable.

Predictable blast radius means contributors can estimate what else may break when a rule, schema, or dependency changes. This supports safer review, testing, and rollout planning. In review, this is about changeability at module, boundary, and architectural level rather than only about local cleanliness. Strong signals are explicit dependencies, narrow interfaces, coherent module ownership, and boundaries that reflect real responsibilities in the system. Weak signals are reach-through access, policy mixed with mechanism, accidental framework-driven structure, and changes that would force broad unrelated edits. The educational point is that design quality shows up most clearly when requirements evolve or when one part of the system fails. For this specific symptom, the reviewer should ask whether the change makes 'Blast radius is predictable' easier to see and rely on, or whether it makes the surrounding code more ambiguous. A good detail line here should help a future reviewer explain not only what this symptom means, but also why its absence raises maintenance cost, defect risk, or review uncertainty.

Examples

Bad

Rule: Gold customers receive a 10% discount
Checkout: if tier is GOLD, discount subtotal by 10%
Invoice: if tier is GOLD, show "10% loyalty discount"
Refund: if tier is GOLD, reverse the 10% discount
Change request: increase the Gold discount to 12%
Required edits: Checkout, Invoice, Refund, and their tests

Good

LoyaltyPolicy.goldRate = 10%
LoyaltyPolicy.discountFor(customer, subtotal) returns { rate, amount }
Checkout records the returned discount decision
Invoice renders decision.rate and decision.amount
Refund reverses decision.amount
Change request: increase the Gold discount to 12%
Required edit: LoyaltyPolicy.goldRate and its contract test

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts28d3 checks · Risk SAFE
  • Gen Agent Trust Hub28d

    The skill 'clean-code' is a comprehensive educational catalog of software engineering principles and clean-code qualities. It provides structured guidance and pseudocode examples to help AI agents reason about code quality, security, and maintainability. No malicious code, hidden instructions, or security risks were identified during the analysis.

  • Socket28d

    No alerts

  • Snyk28d

    Risk: LOW · No issues

Signed by skilld at 982e21e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 3 months ago

README badge

README badge for meza/skills/clean-code