Skip to content
rysweet avatar

Code Smell Detector

A detector for amplihack anti-patterns that flags over-abstraction, deep inheritance, oversized functions, and tight coupling, with fixes.

CCM score
47 of 100
skills.sh installs
257
GitHub stars
77
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers code review and refactoring against amplihack's simplicity and modular-design principles, with one section per smell
  • Includes detection checklists, red-flag lists, and before-and-after examples for over-abstraction, complex inheritance, large functions, and tight coupling
  • Flags functions over 50 lines, inheritance deeper than two levels, and abstractions with only one implementation
  • Designed for reviewing new modules and refactoring existing code before merge

Install

$ npx -y skills add rysweet/amplihack --skill code-smell-detector -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Code Smell Detector Skill

Purpose

This skill identifies anti-patterns that violate amplihack's development philosophy and provides constructive, specific fixes. It ensures code maintains ruthless simplicity, modular design, and zero-BS implementations.

When to Use This Skill

  • Code review: Identify violations before merging
  • Refactoring: Find opportunities to simplify and improve code quality
  • New module creation: Catch issues early in development
  • Philosophy compliance: Ensure code aligns with amplihack principles
  • Learning: Understand why patterns are problematic and how to fix them
  • Mentoring: Educate team members on philosophy-aligned code patterns

Core Philosophy Reference

Amplihack Development Philosophy focuses on:

  • Ruthless Simplicity: Every abstraction must justify its existence
  • Modular Design (Bricks & Studs): Self-contained modules with clear connection points
  • Zero-BS Implementation: No stubs, no placeholders, only working code
  • Single Responsibility: Each module/function has ONE clear job

Code Smells Detected

1. Over-Abstraction

Details

Repository
github.com/rysweet/amplihack
Category
Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the code-smell-detector skill check for?

The code-smell-detector skill identifies anti-patterns that violate amplihack's development philosophy, including over-abstraction, complex inheritance, functions longer than 50 lines, tight coupling, and missing __all__ exports. For each smell it provides a specific fix and an explanation of why the pattern is a problem.

When should I use the code-smell-detector skill?

Use it when reviewing code for quality issues, when refactoring, or when creating a new module so problems are caught early. It also helps teams learn why certain patterns are problematic and how to fix them.

How do I install the code-smell-detector skill?

Run npx -y skills add rysweet/amplihack --skill code-smell-detector -y in your project. Once installed, the agent can review your code and point out smells along with suggested fixes.

Which other skills are in the Code Review & Quality category?

Other skills in the Code Review & Quality category include improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. This skill focuses on amplihack-specific smells such as over-abstraction and large functions.

More from rysweet/amplihack

All 55

Similar to Code Smell Detector

More Code Review & Quality