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.

referencescomprehension-and-intentnames-are-domain-specific-and-precise.md

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

Names are domain-specific and precise

Names use the language of the domain and distinguish meaning clearly enough that readers do not have to infer intent from surrounding context.

Good naming carries both familiarity and precision. The best names use the vocabulary that the surrounding domain, tests, and documentation already use, while also being specific enough to distinguish one idea, responsibility, or state from another. Review is not only about whether a name sounds reasonable in isolation, but whether it reduces interpretation work for the next reader.

Strong signs include names that map cleanly to business concepts, technical concepts, or established system terms; names that make different responsibilities visibly different; and identifiers that remain clear even when read away from the call site. Weak signs include generic placeholders such as manager, data, process, handle, util, or thing-like labels that hide what the code actually represents; names that depend heavily on comments to become understandable; and parallel terms that appear to mean the same thing or the same term reused for different meanings.

This symptom matters because names are part of the interface of every unit, even when the code is private. Imprecise or non-domain naming increases review friction, makes change risk harder to see, and encourages incorrect assumptions to spread. Maintainable code tends to let a reader predict behavior from names before reading the implementation. When this symptom is weak, the code becomes harder to search, harder to discuss, and easier to misuse.

Examples

Bad

function process(data):
  result = gateway.handle(data)
  if result.ok: ledger.save(result)

Good

function renewSubscription(expiredSubscription):
  renewalReceipt = paymentGateway.chargeRenewal(expiredSubscription)
  if renewalReceipt.approved: subscriptionLedger.recordRenewal(renewalReceipt)

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