Skip to content
Back to skills

Coding

ASecurity

Review code for Clean Code smells and SOLID violations and suggest refactorings with evidence. Use when the user asks for a code quality check, a smell review or a SOLID review before code merges.

  • 24 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 14, 2026
ai-agentsgorefactoringsecurity

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add andreibesleaga/GABBE --skill coding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andreibesleaga-coding-426f9ad7/badge)](https://www.skillsdirectory.com/skills/andreibesleaga-coding-426f9ad7)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clean-coder
description: "Review code for Clean Code smells and SOLID violations and suggest refactorings with evidence. Use when the user asks for a code quality check, a smell review or a SOLID review before code merges."
triggers: [clean code, code smell, SOLID, refactor, quality check]
tags: [coding]
core: true
context_cost: medium
---
# Clean Coder Skill

## Goal
To ensure code is readable, maintainable, and free of technical debt "smells" before it merges.

## Core Principles (2025 Standards)
1.  **SOLID**:
    -   **S**ingle Responsibility: One reason to change.
    -   **O**pen/Closed: Open for extension, closed for modification.
    -   **L**iskov Substitution: Subtypes must be substitutable.
    -   **I**nterface Segregation: Tiny, focused interfaces.
    -   **D**ependency Inversion: Depend on abstractions, not concretions.
2.  **DRY (Don't Repeat Yourself)**: Abstract logic, not just code.
3.  **KISS (Keep It Simple, Stupid)**: Simplest solution that works.
4.  **YAGNI (You Ain't Gonna Need It)**: Don't implement future features now.

## Common Code Smells
-   **Long Method**: over 30 lines (the limit in Constitution Article III). Extract Method.
-   **Large Class**: Too many responsibilities. Extract Class.
-   **Primitive Obsession**: Using strings/ints instead of Value Objects.
-   **Feature Envy**: Using data from another object more than its own.
-   **Shotgun Surgery**: One change requires edits in many classes.

## Steps
When reviewing or writing code:
1.  **Scan for Smells**: Check against the `agents/guides/principles/clean-code-standards.md` guide.
2.  **Suggest Refactoring**: "Split this huge function into 3 smaller ones: `validateInput`, `processData`, `saveResult`."
3.  **Verify Naming**: Variables should be descriptive (`userAssumingRole` vs `u`).
4.  **Check Comments**: Code should be self-documenting. Comments explain *why*, not *what*.

## Checklist
-   [ ] Descriptive naming?
-   [ ] Functions do one thing?
-   [ ] No duplicated logic?
-   [ ] No magic numbers/strings?
-   [ ] Dependencies injected?

## Constraints
- Report a smell only with file and line evidence.
- This skill reviews and suggests; it does not change behaviour (use `refactor.skill` for the change).

## Output Format
A list of smells found, each with file, line and the suggested refactoring, and the checklist above marked pass or fail.

## Limits and safety
- Refactoring of authentication, authorisation or encryption code needs the human's review; keep constant-time comparisons and input checks as they are.
- Do not remove audit logging or security telemetry as a simplification.
- Name the evidence for a smell (the files and lines) before proposing a wide change; reject a refactor that is harder to read than the original.
- Use explicit bindings for dependency injection, not class names loaded from configuration strings at runtime.

Files in this skill

  • agent-trajectory-eval.skill.md5.7 KB
  • artisan-commands.skill.md3.7 KB
  • browser-tdd.skill.md7 KB
  • chaos-fault-injection.skill.md8.1 KB
  • ci-autofix.skill.md4.2 KB
  • clean-coder.skill.md4.5 KB
  • code-review.skill.md6.1 KB
  • debug.skill.md6.5 KB
  • documentation.skill.md7.3 KB
  • eval-driven-development.skill.md6.9 KB
  • evals/code-review.eval.yaml1 KB
  • excalidraw.skill.md3.7 KB
  • file-processing.skill.md4.3 KB
  • git-workflow.skill.md7.2 KB
  • metamorphic-testing.skill.md7.8 KB
  • mobile-dev.skill.md4.2 KB
  • nodejs-expert.skill.md1.6 KB
  • output-validation.skill.md5.4 KB
  • pbt-strategy.skill.md8 KB
  • performant-ai.skill.md3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.