# Clean Code Guard (agent skill)

> 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,260 GitHub stars across a repository of 2 listed 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. 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.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/amElnagdy/guard-skills |
| Skill path | skills/clean-code-guard/SKILL.md |
| Skill name | clean-code-guard |
| GitHub stars | 1,260 |
| Installs on skills.sh | not listed |
| License | MIT |
| Skills in repo | 2 |
| Plugin marketplace | no |
| Official | no |
| Works with | Claude Code, Codex, Cursor, OpenCode |
| Category | Testing & QA |
| Last commit | Jul 4, 2026 |

## 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"

## Add this skill

### Claude Code

```sh
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 project
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
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 projects
```

### Cursor

```sh
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 projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/amelnagdy-clean-code-guard
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
