🛡️
Quality

Clean Code Guard

by amElnagdy

Clean Code Guard is a Quality skill for Claude Code, published by amElnagdy in guard-skills.

1.2K stars140 forkson amElnagdy/guard-skillsAdded 2026/08/20Repository updated 2026/07/04
agent-skillsaiclaudeclaude-codecode-reviewcodexskills-shwoocommercewordpress
Install in seconds
Install Clean Code Guard
Copy Clean Code Guard into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/amElnagdy/guard-skills/tree/master/skills/clean-code-guard ~/.claude/skills/clean-code-guard

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/amElnagdy/guard-skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/clean-code-guard/SKILL.md in amElnagdy/guard-skills
Installs to
~/.claude/skills/clean-code-guard
Collection
One of 5 skills cataloged from this repository
Category
Quality1354 skills

What Clean Code Guard does

Clean Code Guard reviews generated or changed production code before it ships, applying Clean Code, SOLID, DRY, KISS, YAGNI, and LLM-specific failure-mode checks. Use it after an agent writes, edits, refactors, or fixes code and before presenting, committing, or merging.

Clean Code Guard is cataloged under Quality on DirSkills. Clean Code Guard comes from a repository tagged agent-skills, ai, claude, claude-code and code-review.

Documentation

README

clean-code-guard

You are reviewing generated or changed code before it ships. Apply the rules below as a guard pass after the first implementation pass — and once this skill is active, keep applying it to every later code change in the same session, re-running the self-check before delivery after each edit rather than reverting to unguarded output because the skill loaded earlier. If the user explicitly invokes this skill before writing code, use the same rules while writing and still run the self-check before delivery.

Compatibility

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Clean Code Guard

  • What else does amElnagdy publish alongside Clean Code Guard?

    Clean Code Guard is one of 5 skills that DirSkills catalogs from amElnagdy/guard-skills, the repository it ships in. Its siblings there include Docs Guard, Test Guard and WP Guard. Each one is a separate skill with its own page in this directory, installs the same way Clean Code Guard does, and is maintained by amElnagdy in that same repository. The rest of the collection is listed on the amElnagdy/guard-skills page.

  • How does Clean Code Guard compare to other Quality skills?

    Clean Code Guard ranks #741 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Clean Code Guard against them. Open each page to compare what they document and how they install.