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-intentassumptions-intent-and-structural-decisions-are-explicit.md

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

Assumptions, intent, and structural decisions are explicit

The code and its surrounding artifacts make assumptions, change intent, and important architectural decisions visible enough that reviewers and future maintainers do not have to reconstruct them from guesswork.

Software becomes expensive to maintain when key reasoning is trapped in someone's head or in an old conversation. Labeling assumptions, making change intent reviewable, and surfacing architectural decisions belong together because they all reduce invisible policy. They help a reviewer answer three basic questions: what does this change assume, what is it trying to accomplish, and what larger structural choice does it depend on or introduce.

Strong signs include explicit notes where assumptions materially affect correctness, commit or change context that explains why a shape was chosen, and discoverable records or code-level signals for decisions that constrain later design. Weak signs include code that only makes sense if the reader already knows unstated operational facts, structural changes with no visible rationale, and diffs that provide no clue which behavior is being protected or traded away.

This symptom matters because clarity of reasoning is part of maintainability. Future reviewers should not be forced to infer every hidden premise from implementation details alone. Review this lens by asking whether the change teaches the next engineer how to reason about it, or whether it hides assumptions and design intent behind local code that only appears obvious right now.

Examples

Bad

function importOrders(orders):
    transaction:
        for order in orders:
            save(order)
        markBatchComplete()

Good

# Assumption: one worker owns a batch; save preserves input order.
# Intent: downstream readers must never observe a partial batch.
# Decision: commit the orders and completion marker atomically.
function importOrders(orders):
    transaction:
        for order in orders:
            save(order)
        markBatchComplete()

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