Skills for Real Engineers. Straight from my .agents directory.
clean-code-guard
Agent skill fromamElnagdy/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. 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. Can also guide writing when explicitly invoked before a risky edit. 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. DO NOT 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).
How to install clean-code-guard
npx skills add amElnagdy/guard-skills# or add only this skill to Claude Code: copy the folder
skills/clean-code-guard/
# into
~/.claude/skills/clean-code-guard/ (all projects)
.claude/skills/clean-code-guard/ (one project)
1# clean-code-guard23You 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.45## Compatibility67This is a portable instruction skill. It requires no MCP server, network access,8API key, shell command, local executable, or bundled script. It can be used in9any runtime that supports `SKILL.md` plus directly linked [references/](references/)10files; `agents/openai.yaml` is lightweight display metadata.1112This skill does not replace project linters, formatters, type checkers, or test13runners. Use the project's own tools for mechanical verification; use this skill14for the judgement layer around code quality and review.1516## How to use this skill1718This skill has three modes — pick based on the user's request.1920**Guard-pass mode** (recommended): after code has been generated, edited, refactored, or fixed, check the diff or target files against the *Always-applied imperatives* below. Fix violations before presenting, committing, or merging the work.21…
Excerpt shown under the repository's MIT license.
More skills in guard-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
