Code smell detector

From a5c-ai/babysitter · View interactive version

Code smell detector is an AI agent skill from the GitHub repository a5c-ai/babysitter. Automated detection of code smells and anti-patterns to identify refactoring opportunities

How to use this skill

Skill file

Code Smell Detector Skill

Automated detection of code smells, anti-patterns, and design issues that indicate deeper problems in the codebase. This skill identifies refactoring opportunities and prioritizes them by impact.

Purpose

Enable systematic detection of code smells for:

Capabilities

1. Long Method Detection

2. Large Class Identification

3. Feature Envy Analysis

4. Primitive Obsession Detection

5. Parallel Inheritance Hierarchy

6. Shotgun Surgery Detection

7. God Class Identification

Tool Integrations

| Tool | Purpose | Integration Method |

|------|---------|-------------------|

| SonarQube | Code smell detection | MCP Server / API |

| PMD | Java smell detection | CLI |

| IntelliJ IDEA | IDE-based analysis | CLI / Export |

| Designite | Design smell detection | CLI |

| ast-grep | Pattern-based detection | MCP Server / CLI |

| ESLint | JavaScript smell rules | CLI |

Output Schema

{
  "analysisId": "string",
  "timestamp": "ISO8601",
  "target": {
    "path": "string",
    "filesAnalyzed": "number"
  },
  "smells": [
    {
      "type": "string",
      "severity": "high|medium|low",
      "file": "string",
      "line": "number",
      "element": "string",
      "description": "string",
      "metrics": {},
      "refactoringSuggestion": "string",
      "estimatedEffort": "string"
    }
  ],
  "summary": {
    "totalSmells": "number",
    "byType": {},
    "bySeverity": {},
    "hotspots": []
  }
}

Integration with Migration Processes

Related Skills

Related Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.