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.

README.md

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

Clean Code

This skill helps an agent reason about code quality while designing, writing, refactoring, reviewing, or explaining code, tests, APIs, modules, and architecture. It treats clean code as a set of interacting engineering qualities, not as a style checklist or a collection of universal prohibitions.

The skill requires the agent to:

  • start from the actual decision, code, or failure under consideration;
  • select only the concern areas that materially affect that context;
  • read the relevant quality references before settling on a judgment;
  • weigh correctness, safety, comprehension, operability, and change cost together;
  • distinguish concrete evidence from assumptions and aesthetic preference; and
  • recommend changes that fit the project's target architecture and established authority.

Progressive catalog

The catalog contains 84 individual quality references organized under 9 concern areas. SKILL.md provides enough context to choose a concern area without loading the whole catalog. Each concern-area document then provides enough context to choose the individual quality references that need deeper reading.

Every quality has one dedicated Markdown document inside its concern-area folder. Each document combines the quality explanation with a small paired pseudocode example showing what weak and strong practice look like. The installed skill is self-contained and does not require another review skill or an external catalog at runtime.

Install with npx skills

Install the skill into the current project:

npx skills add meza/skills --skill clean-code

Install it globally for Codex:

npx skills add meza/skills --skill clean-code --agent codex --global

Install it globally for Claude Code:

npx skills add meza/skills --skill clean-code --agent claude-code --global

After installation, ask your agent to design, review, refactor, or explain code with the relevant clean-code qualities in mind. For example:

Review [file or design description] for the clean-code qualities relevant to
[decision or change]. Explain the evidence, trade-offs, and recommended changes.

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