Clean Code Guard
Clean Code Guard is an agent skill (a SKILL.md file) from amElnagdy/guard-skills. Review generated or changed production code before it ships, using Clean Code, SOLID, DRY, KISS, YAGNI, and LLM-specific failure-mode checks in any programming language. It works with Claude Code, Codex, Cursor and OpenCode and has 1,284 GitHub stars across a repository of 2 listed skills.
github.com/amElnagdy/guard-skills/skills/clean-code-guard (opens in a new tab)
Data as of from the GitHub API; description from the skill's SKILL.md. Report an error
- Multi-skill repo
- Testing & QA
- Maintained
Add this skill
Claude
Claude Code loads skills from ~/.claude/skills/ (all projects) or .claude/skills/ (one project):
git clone --depth 1 https://github.com/amElnagdy/guard-skills.git
cp -r guard-skills/skills/clean-code-guard ~/.claude/skills/clean-code-guard # personal, or .claude/skills in a projectIn the Claude apps, zip the clean-code-guard folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).
ChatGPT / Codex
Codex reads skills from .agents/skills/ in a repo or ~/.agents/skills/ for every project:
git clone --depth 1 https://github.com/amElnagdy/guard-skills.git
cp -r guard-skills/skills/clean-code-guard .agents/skills/clean-code-guard # repo; ~/.agents/skills for all projectsStandalone skills also load in the ChatGPT desktop app.
Cursor
Cursor loads skills from .cursor/skills/ (or ~/.cursor/skills/) and also reads .claude/skills/:
git clone --depth 1 https://github.com/amElnagdy/guard-skills.git
cp -r guard-skills/skills/clean-code-guard .cursor/skills/clean-code-guard # project; ~/.cursor/skills for all projectsSource (checked Oct 7, 2026): code.claude.com/docs/en/skills (opens in a new tab), support.claude.com/en/articles/12512180-using-skills-in-claude (opens in a new tab), learn.chatgpt.com/docs/build-skills (opens in a new tab), cursor.com/docs/context/skills (opens in a new tab)
What this skill does
Review generated or changed production code before it ships, using Clean Code, SOLID, DRY, KISS, YAGNI, and LLM-specific failure-mode checks in any programming language. Best used reactively after an agent writes, edits, refactors, or fixes code, before presenting, committing, or merging the result. Use when the user asks "review this PR", "is this safe to merge?", "make this cleaner", "audit this code", "refactor this", "fix this bug", or after a coding agent produced implementation code.
When it triggers
- Use when the user asks "review this PR", "is this safe to merge?", "make this cleaner", "audit this code", "refactor this", "fix this bug", or after a coding agent produced implementation code.
- Invoke it on your own initiative the moment you finish writing, editing, or refactoring non-trivial production code, before presenting or committing — don't wait to be asked.
- USE for factual/conceptual questions, CI/tooling config, git workflow, running/debugging tests, pure architecture discussion, prose writing, data analysis, or test-code review (use test-guard).
- "review this PR"
- "is this safe to merge?"
- "make this cleaner"
- "audit this code"
- "refactor this"
More skills in amElnagdy/guard-skills
2 skills are listed from this repository.
Similar skills
More testing & qa skills
Closed Loop
huytieu/COG-second-brain
Run one task through the V-model verification loop: CP-2 plan → CP-3 build → CP-3v component verify → CP-4 integration verify (full lane) → CP-5 acceptance.
Active · last commit Oct 23, 2026
Testing & QAPythonTest Error States
reticlehq/reticle
Force the states a happy-path run never reaches (a failing API, an empty list, a slow request, a timeout, an expired session, a toast that auto-dismisses) and check the UI actually handles them.
Active · last commit Oct 26, 2026
Testing & QATypeScriptShower
LilMGenius/paperthin
Cold-read the artifact you're focused on from a fresh, zero-context sub-session to confirm it stands on its own — a shower-thought reset for accumulated session bias.
Active · last commit Sep 30, 2026
Testing & QAJavaScriptUI Regression
fcakyon/claude-codex-settings
This skill should be used when the user asks to "verify UI changes", "test every screen and action", "run regression QA", "check a deployed UI", or "validate an extension release".
Active · last commit Oct 25, 2026
Testing & QAPythonFile Organizer
alibaba/skill-up
Triggered when the user needs to organize project files, analyze directory structure, or generate a project report.
Active · last commit Oct 26, 2026
Testing & QAGoSpec
JuliusBrussee/cavekit
Create, amend, or backprop bugs into SPEC.md at repo root.
Maintained · last commit Aug 14, 2026
Testing & QA
How do I install the Clean Code Guard skill?
Copy the clean-code-guard folder (the one containing SKILL.md) into ~/.claude/skills/ for Claude Code, .agents/skills/ for Codex or .cursor/skills/ for Cursor. The agent picks it up automatically when a task matches its description.
Is the Clean Code Guard skill free?
Yes. The repository is open source under the MIT license.
Is Clean Code Guard maintained?
The repository's most recent commit was on Jul 4, 2026. appsgit only lists skills from repositories with a commit in the last six months.