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-consistencythe-codebase-is-easy-to-navigate-and-hard-to-misuse.md

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

The codebase is easy to navigate and hard to misuse

Repository shape, API design, and local structure help contributors find the right place to work, guide them toward correct usage, and make incorrect usage conspicuous or difficult.

A maintainable system should help engineers do the right thing by default. Cheap navigation, misuse-resistant design, and ease of correct use belong together because they describe whether the codebase teaches safe participation. A reader should be able to locate responsibility quickly, understand the intended path through an API or module, and notice when a usage pattern is likely wrong.

Strong signs include repository and module layouts that make likely locations easy to predict, interfaces whose shape guides callers toward valid combinations and sequences, defaults that are safe, and types or contracts that make misuse visible. Weak signs include sprawling structures where responsibility is hard to find, APIs that expose many invalid states or surprising combinations, and "correct" usage that requires oral tradition while the easy path does something risky or misleading.

This symptom matters because a large share of maintenance cost comes from accidental misuse and search friction, not just defects in core logic. Review this lens by asking whether the change helps the next contributor orient quickly and follow the intended path safely, or whether it adds more ways to get lost, call the wrong thing, or violate an assumption without noticing.

Examples

Bad

// shared/utils/money
function adjust(accountId, cents, reverse)
adjust(order.customerId, order.totalCents, true)

Good

// billing/refunds
function refund(order: PaidOrder): RefundReceipt
refunds.refund(order)

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