code-smells-expert

code-smells-expert is a skill for Claude Code, Codex from jggomez/expert-ai-developer-skills. It costs 92 tokens per session (1,060 once invoked), scanned A, original, Apache-2.0.

Analyzes source code to identify, classify, and diagnose architectural design flaws known as "Code Smells" and technical debt. Use this skill when requested to perform a technical audit, evaluate code quality, look for SOLID violations (especially SRP and OCP), or identify reasons why code is difficult to maintain or…

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Install with agentmods
npx agentmods add skills/jggomez/expert-ai-developer-skills/code-smells-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jggomez/expert-ai-developer-skills --skill code-smells-expert
Clone the repo
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-smells-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/code-smells-expert/github.svg)](https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/code-smells-expert)
Your own site
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/code-smells-expert"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/code-smells-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-smells-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/code-smells-expert"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/code-smells-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.01060
Opus 5.5 $0.00037 $0.00424
Sonnet 5.5 $0.00018 $0.00212
Haiku 4.5 $0.00009 $0.00106

Measured today against content hash a7fa79ed1116, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-smells-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/detect_smells.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/antigravity/python-backend/skills/code-smells-expert/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Smells Expert Skill

Overview

This skill performs structured technical debt audits to identify, classify, and diagnose design flaws known as "Code Smells". It acts as a Senior Software Architect and Technical Debt Diagnostician, grounding assessments in the Fowler/Beck taxonomy. Its primary mission is pure diagnosis and impact analysis, explaining why structural flaws impede maintainability, extensibility, and testability before any refactoring begins.

When to Use

Trigger Scenarios

  • Conducting architectural code reviews and technical audits.
  • Identifying violations of SOLID principles (especially Single Responsibility and Open/Closed).
  • Preparing for refactoring by cataloging structural friction points and antipatterns.
  • Explaining why a component is difficult to test, understand, or extend.

When NOT to Use

  • Applying code changes or executing refactoring: Route to refactoring-code-expert.
  • Security and vulnerability scanning: Route to security-audit.
  • CPU and memory performance profiling: Route to performance-scalability.
  • Writing new unit or integration tests: Route to test-driven-development.

Process

Phase 1: Automated Static Analysis

Execute the AST-based smell detection script on specific files or target directories:

python3 ./skills/code-smells-expert/scripts/detect_smells.py [optional_path_to_file_or_directory]

The tool flags threshold violations for method length (>30 lines), class size (>300 lines), parameter count (>4), and nested conditional depth.

Phase 2: Structural Review via Fowler/Beck Taxonomy

Review classes, methods, and dependencies against the five major smell categories:

  1. Bloaters: Long Method, Large Class, Primitive Obsession, Long Parameter List, Data Clumps.
  2. Object-Oriented Abusers: Switch Statements / Type checks violating OCP, Refused Bequest, Alternative Classes with Different Interfaces.
  3. Change Preventers: Divergent Change (one class modified for multiple unrelated reasons), Shotgun Surgery (single change requires modifying many classes).
  4. Dispensables: Comments explaining what rather than why, Duplicate Code, Dead Code, Speculative Generality.
  5. Couplers: Feature Envy (method accesses another class's data more than its own), Inappropriate Intimacy, Message Chains.

Read the full file on GitHub · 81 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 81 lines · 92 tokens per session scan A a7fa79ed1116

Subscribe to this mod's changes

code-smells-expert is a skill published in the GitHub repository jggomez/expert-ai-developer-skills (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 92 tokens to every session and 1,060 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

code-smells-expert compared with skills from other repositories

code-smells-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-smells-expertjggomez/expert-ai-developer-skillsSkill30yesterdayApache-2.0A92Claude Code, Codex
ring:using-assertLerianStudio/ringSkill2186d agoApache-2.0A99Cursor
evjsafx-team/evjsSkill274d agoMITA45Claude Code, Codex
Async Correctness 非同期処理の正しさ検証s977043/river-reviewSkill7yesterdayMITA95Claude Code
End-to-End Wiring 末端到達・貫通の検証s977043/river-reviewSkill7yesterdayMITA83Claude Code
Failure Modes & Observability in Designs977043/river-reviewSkill7yesterdayMITA27Claude Code
project-aware-codingZhangs-11/zs-skillsSkill28d agoMITA31Codex