Dignified Python Standards
docling-project/docling
Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.
Reviews generated or changed production code against Clean Code, SOLID, DRY, KISS, YAGNI and LLM-specific failure modes before it ships, in any language.
$ npx skills add amElnagdy/guard-skills --skill clean-code-guard -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install amElnagdy/guard-skills clean-code-guard --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/clean-code-guard .claude/skills/clean-code-guard && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "clean-code-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/clean-code-guard into .claude/skills/clean-code-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-code-guard", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/amElnagdy/guard-skills/tree/master/skills/clean-code-guardType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add amElnagdy/guard-skills --skill clean-code-guard -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install amElnagdy/guard-skills clean-code-guard --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/clean-code-guard .agents/skills/clean-code-guard && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "clean-code-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/clean-code-guard into .agents/skills/clean-code-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-code-guard", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add amElnagdy/guard-skills --skill clean-code-guard -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install amElnagdy/guard-skills clean-code-guard --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/clean-code-guard .cursor/skills/clean-code-guard && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "clean-code-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/clean-code-guard into .cursor/skills/clean-code-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-code-guard", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/amElnagdy/guard-skills.git --path skills/clean-code-guard--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add amElnagdy/guard-skills --skill clean-code-guard -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install amElnagdy/guard-skills clean-code-guard --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/clean-code-guard .gemini/skills/clean-code-guard && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "clean-code-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/clean-code-guard into .gemini/skills/clean-code-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-code-guard", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install amElnagdy/guard-skills clean-code-guardInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add amElnagdy/guard-skills --skill clean-code-guard -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/clean-code-guard .github/skills/clean-code-guard && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "clean-code-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/clean-code-guard into .github/skills/clean-code-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-code-guard", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add amElnagdy/guard-skills --skill clean-code-guard -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install amElnagdy/guard-skills clean-code-guard --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/clean-code-guard .opencode/skills/clean-code-guard && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "clean-code-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/clean-code-guard into .opencode/skills/clean-code-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clean-code-guard", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
clean-code-guardReviews generated or changed production code against Clean Code, SOLID, DRY, KISS, YAGNI and LLM-specific failure modes before it ships, in any language.
The skill has three modes. Guard-pass mode, the recommended one, checks the diff after code is generated, edited or fixed and fixes violations before anything is presented, committed or merged. Live mode applies the same rules while writing when you invoke it before a risky edit, then runs a self-check list. Review mode, for requests to review, audit or rate code, walks `references/review-checklist.md` and returns a structured findings report without editing unless you ask. Once active, it keeps applying to every later change in the session.
It is a portable instruction skill that needs no MCP server, network access, API key, shell command or script, and it does not replace linters, formatters, type checkers or test runners. Reference files cover naming and functions, SOLID, DRY, KISS and YAGNI, comments and formatting, AI failure modes and sources. It is not meant for factual questions, CI config, git workflow, running tests, architecture discussion, prose, data analysis or test-code review, which belongs to `test-guard`.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ffa2603. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Clean Code Guard loads about 4.3k tokens when it runs, and up to ~19k if it reads all its reference files. Until then it costs about 239 tokens; SKILL.md has 2,351 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from amElnagdy/guard-skills at commit ffa2603, republished under its MIT licence (© amElnagdy). 2,351 words, ~4,339 tokens.
.claude/skills/clean-code-guard/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.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.
This is a portable instruction skill. It requires no MCP server, network access,
API key, shell command, local executable, or bundled script. It can be used in
any runtime that supports SKILL.md plus directly linked references/
files; agents/openai.yaml is lightweight display metadata.
This skill does not replace project linters, formatters, type checkers, or test runners. Use the project's own tools for mechanical verification; use this skill for the judgement layer around code quality and review.
This skill has three modes — pick based on the user's request.
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.
Live mode (explicit): when the user invokes this skill before a risky code edit, apply the same imperatives while writing, then run the Self-check before delivery checklist. If you violate any rule, fix it before showing the user.
Review mode (triggered when the user asks you to review, audit, critique, or rate code): walk references/review-checklist.md against the target file(s) and produce a structured findings report. Do not edit code in review mode unless asked.
Across all three modes, the rule bodies live in references/. Read the relevant reference file when:
The reference files are:
This skill is working when code-writing tasks avoid the listed failure modes, code-review tasks produce prioritized findings with concrete evidence, and refactors preserve behavior unless the user explicitly asks for a behavior change. It should stay silent for conceptual, CI, git workflow, prose, data analysis, and test-running tasks covered by the frontmatter exclusions.
LLM-generated code has measurable, systematic failure modes that generic "follow clean code" instructions do not catch. Examples backed by published research:
The classic principles (Clean Code, SOLID, DRY/KISS/YAGNI) are still the foundation — but this skill adds the AI-specific layer most rule packs miss.
These are the rules to follow on every code change. They are imperative, not suggestions.
data, data2, result, result_final, item, temp, value, obj, info, helper, manager, utils, or handle_*/process_*/do_* without a qualifier. A name must answer why it exists and what it does. (Clean Code Ch. 2)enable_*, use_*_v2, or *_mode, delete it and ship the concrete behavior. (Fowler, "Yagni"){"status": "ok", ...} or canned data from a function whose spec says it does real work. If you cannot implement, fail explicitly with the language's unimplemented or unsupported-operation mechanism and say so. Never disable, skip, or weaken a test to make it pass. (Fowler, Claude Code issue #6984)Rule 16 trusts the contract inside the boundary; the items below stay even while you strip speculation (14), defensive guards (16), and dead code (21). Removing one of these is a behavior change, not a cleanup — keep it, or flag it and ask.
Before you show the user the code you wrote or edited:
If you cannot answer yes to every check, fix before shipping.
After the guard pass, surface it so the user can see it ran (guard-pass and live modes — review mode reports through its own findings format). List each fix as <file>[:<line>] — <what changed>, omitting the line number if it is unstable, then close with one line: clean-code-guard: <N> fixed, <M> flagged for author — or clean-code-guard: clean if nothing triggered. Report only changes you actually made; never estimate a quality score or percentage — no baseline exists, so such a number would be invented. This reports the pass; it does not block presenting or committing.
Refer them to the source name in the relevant references/ file and use references/sources.md only when the URL is needed. The rules are defensible — they come from primary sources (Uncle Bob, Fowler, Hunt & Thomas, McCabe, Metz) and from published 2024–2026 research on LLM code generation. If the user has a context-specific reason to override (e.g., a constructor genuinely needs 8 params for a config DTO), document the exception in a code comment that names the principle being overridden, the reason, and a revisit trigger — the condition under which it should be reconsidered. An exception comment with no revisit trigger is itself a finding on the next pass: a tradeoff with no exit is just deferred debt.
© amElnagdy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 8 other files (references) in skills/clean-code-guard of amElnagdy/guard-skills.
Open the folder on GitHubat commit ffa2603
We found 6 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in amElnagdy/guard-skills, which our catalogue first saw on October 7, 2026.
Clean Code Guard next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Clean Code Guard this skillamElnagdy/guard-skills | 1.3k | 2 repos | ~4.3k | Automated safety check: Pass | MIT | |
| Dignified Python Standardsdocling-project/docling | 68k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Maintainable Code for iPolloWorkDevin-AXIS/iPolloWork | 6.7k | — | ~2.7k | Automated safety check: Pass | Custom licence | |
| Cyclomatic Complexitysaurabhkumar8112/cyclomatic-complexity-skill | 405 | — | ~761 | Automated safety check: Pass | Apache-2.0 | |
| Code ReviewerYikai-Liao/symusic | 189 | 1 repos | ~1.3k | Automated safety check: Pass | MIT | |
| QML Coding Best Practicesx-tools-author/x-tools | 1.1k | 1 repos | ~3.4k | Automated safety check: Pass | BSD-3-Clause |
docling-project/docling
Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.
Devin-AXIS/iPolloWork
A code-change gate for the iPolloWork repository: search and reuse first, keep one source of truth, justify every new file or dependency, and audit the change.
saurabhkumar8112/cyclomatic-complexity-skill
Refactor code to reduce cyclomatic complexity so it stays readable, maintainable, and aligned with the long-term vision of the codebase, not just optimized for AI comprehension.
Yikai-Liao/symusic
Analyzes code diffs and files to identify bugs, security vulnerabilities (SQL injection, XSS, insecure deserialization), code smells, N+1 queries, naming issues, and architectural concerns, then…
x-tools-author/x-tools
Applies QML best practices when writing, reviewing, refactoring or debugging QML code, with Qt 5 and Qt 6 import rules and concise, rule-silent output.
hyhmrright/brooks-lint
PR code review that surfaces decay risks, design smells, and maintainability issues with concrete Symptom → Source → Consequence → Remedy findings, drawing on twelve classic engineering books.
amElnagdy/guard-skills
Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.
amElnagdy/guard-skills
Checks generated or edited documentation against the source code, flagging invented symbols, outdated samples and unverifiable claims before publishing.
amElnagdy/guard-skills
Reviews generated or changed WooCommerce code for HPOS safety, CRUD use, checkout validation and money handling before it ships.
amElnagdy/guard-skills
Reviews WordPress plugin, theme and block code after an agent writes or edits it, catching missing escaping, nonces, capability checks and unprepared queries.
Categories
Reviews generated or changed production code against Clean Code, SOLID, DRY, KISS, YAGNI and LLM-specific failure modes before it ships, in any language. The skill has three modes. Guard-pass mode, the recommended one, checks the diff after code is generated, edited or fixed and fixes violations before anything is presented, committed or merged.
Clean Code Guard fits situations like: checking code an agent just wrote before presenting or committing it; reviewing a pull request for readability and design problems; auditing a file against SOLID, DRY, KISS and YAGNI; applying the guard rules while making a risky refactor.
Run `npx skills add amElnagdy/guard-skills --skill clean-code-guard -a claude-code`. Or copy the skill folder (skills/clean-code-guard in amElnagdy/guard-skills) into .claude/skills/clean-code-guard in your project. Claude Code loads it when a task matches its description.
Run `npx skills add amElnagdy/guard-skills --skill clean-code-guard -a codex`. Or copy the skill folder (skills/clean-code-guard in amElnagdy/guard-skills) into .agents/skills/clean-code-guard in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add amElnagdy/guard-skills --skill clean-code-guard -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clean-code-guard, .gemini/skills/clean-code-guard, .github/skills/clean-code-guard and .opencode/skills/clean-code-guard in your project.
SKILL.md names no scripts, command-line tools or credentials: Clean Code Guard is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Clean Code Guard is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.3k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 15k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Clean Code Guard: Dignified Python Standards (docling-project/docling, 68k stars), Maintainable Code for iPolloWork (Devin-AXIS/iPolloWork, 6.7k stars), Cyclomatic Complexity (saurabhkumar8112/cyclomatic-complexity-skill, 405 stars) and Code Reviewer (Yikai-Liao/symusic, 189 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
amElnagdy (a GitHub user) maintains it in amElnagdy/guard-skills, which has 1,260 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on July 4, 2026.
Source: amElnagdy/guard-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.