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.

referencestest-meaning-and-evidencetest-failures-are-diagnosable.md

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

Test failures are diagnosable

When tests fail, the output gives enough context to understand the broken behavior without guesswork or habitual reruns.

A good test failure should point toward the violated behavior and the scenario that produced it. The more moving parts a test has, the more important its failure evidence becomes. Strong signs include clear test names, specific assertions, useful assertion messages, captured logs or traces where appropriate, visible request and response details at boundaries, and artifacts for end-to-end failures. Weak signs include vague failures such as expected true to be false, swallowed setup errors, enormous undifferentiated logs, missing screenshots or traces for UI failures, and failure messages that force the reviewer to reproduce locally before understanding anything. This symptom matters because undiagnosable failures turn automated tests into delay rather than evidence. Review should ask whether a failing test would help the next engineer find the likely cause.

Examples

Bad

assertTrue(discountedTotal(memberOrder) == 80)
Failure: expected true, got false

Good

expectedTotal = 80
actualTotal = discountedTotal(memberOrder)
assertEqual(actualTotal, expectedTotal, "member order total after discount")
Failure: member order total after discount: expected 80, got 100

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