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-consistencylocal-conventions-are-consistent-across-the-codebase.md

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

Local conventions are consistent across the codebase

Similar problems are solved with the same naming, structure, documentation, and cross-cutting conventions so that a reviewer sees one coherent local style instead of competing patterns.

A healthy codebase develops a recognizable local grammar. Similar modules, APIs, and features should tend to use the same naming style, the same documentation habits, the same broad structural patterns, and the same conventions for repeated concerns such as validation, logging, tracing, auth, or typing. This does not mean every line must look identical. It means contributors should not repeatedly encounter multiple equally valid local dialects for the same kind of problem.

Strong signs include stable naming conventions, repeated solutions to repeated problems, alignment between code, tests, and documentation, and cross-cutting concerns handled through familiar patterns. Weak signs include several competing local styles for the same task, docs that teach one behavior while code implements another, inconsistent naming for the same concept, and ad hoc handling of recurring concerns depending on who last touched the file.

This symptom matters because consistency reduces cognitive load and improves review accuracy. When the codebase has one local grammar, readers can transfer understanding from one area to another. When it has many, every new file becomes a relearning exercise and defects hide in the gaps between styles. This row is about local coherence across repeated practices. Whole-system product coherence remains a separate concern.

Examples

Bad

function createOrder(command):
  validate(command)
  audit.record("order_created")
function cancelOrder(command):
  ensureValid(command)
  logger.info("cancelled")

Good

function createOrder(command):
  validate(command)
  audit.record("order_created")
function cancelOrder(command):
  validate(command)
  audit.record("order_cancelled")

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