What problem does it solve?
This Skill solves the problem of hidden design issues in code that are not functional bugs but make codebases harder to maintain, extend, and debug, including new 2026-specific smells for ML pipelines and LLM-integrated applications that standard static analysis tools often miss.
Core Features & Use Cases
- Comprehensive Smell Detection: Covers the classic Fowler code smell catalog plus 2026 additions for ML pipelines (data leakage, magic hyperparameters, randomness without seed) and LLM apps (god prompts, generic roles, hallucination feedback loops).
- Multi-Language Support: Provides BAD/SAFE code examples and detection rules for 7 programming languages (C#, Java, Python, C, C++, JS/TS, SQL).
- Prioritized Refactoring Guidance: Outputs severity-rated findings with concrete refactor suggestions, cross-links to related quality skills, and integration guidance for tools like SonarQube, MLScent, and jscpd.
- Use Case: A development team can run this skill during code review to identify long methods, data clumps, and ML data leakage issues before they become expensive to fix in production.
Quick Start
Use the code-smell-detector skill to analyze the attached Python ML training script for data leakage, magic hyperparameters, and other ML-specific code smells.