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.

referencesstructure-boundaries-and-dependenciesarchitectural-integrity-is-preserved-across-domains-and-interfaces.md

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

Architectural integrity is preserved across domains and interfaces

The architecture keeps a clear organizing principle, respects domain boundaries, preserves intent across APIs and integrations, resists drift, enforces system-wide rules structurally, and remains organized around domain meaning rather than utility sprawl.

Architectural integrity is the property that lets a large system still feel like one designed thing instead of a pile of locally reasonable edits. A clear center of gravity, respected bounded contexts, intent-preserving APIs, stable integration contracts, resistance to drift, structural enforcement of system-wide rules, and organization around domain rules all belong to one lens because they determine whether the architecture keeps teaching the same story as the codebase grows.

Strong signs include an obvious organizing principle for where behavior belongs; domain concepts that stay within their own context unless explicitly translated; APIs and service boundaries that expose business meaning instead of database or transport leakage; integrations that remain stable unless a real contract change has occurred; conventions enforced through types, tests, generators, templates, or architecture rather than mere style guidance; and code organization dominated by capabilities and domain rules rather than a sprawling helper layer. Weak signs include context leakage, adapters that expose storage detail as public contract, recurring structural exceptions, silent erosion of intended layering, and utility modules that become the real center of gravity of the system.

This symptom matters because architecture usually fails gradually. A single change rarely destroys it, but many small changes can make the structure stop reflecting the domain. Review this lens by asking whether the change strengthens or weakens the long-running integrity of the system's organizing principles and interface boundaries. A poor score here suggests that local convenience is winning over architectural coherence.

Examples

Bad

Billing.renew(subscriptionId):
  subscription = Subscriptions.database.find(subscriptionId)
  discount = 0
  if subscription.planCode == "ANNUAL" and subscription.failedPayments == 0:
    discount = subscription.monthlyPrice * 0.10
  return charge(subscription.accountId, subscription.monthlyPrice - discount)

Good

interface SubscriptionRenewals:
  quote(subscriptionId) -> RenewalQuote
Subscriptions.quoteRenewal(subscriptionId):
  subscription = repository.get(subscriptionId)
  return renewalPolicy.quote(subscription)
RenewalCheckout.renew(subscriptionId):
  quote = subscriptionRenewals.quote(subscriptionId)
  return billing.charge(quote.accountId, quote.amount)

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