detect-code-smells

Detect code smells and anti-patterns in source files using AST parsing and metrics-based scoring.

3|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/kjgarza/marketplace-claude --skill detect-code-smells-kjgarza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: detect-code-smells
Source: https://github.com/kjgarza/marketplace-claude/tree/main/plugins/senior-software-developer/skills/detect-code-smells
Command: npx skills add https://github.com/kjgarza/marketplace-claude --skill detect-code-smells-kjgarza

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps software teams automatically detect code smells and anti-patterns in code reviews, enabling early quality feedback and maintainability improvements.

Core Features & Use Cases

  • Smell detection: Analyzes code for common smells across languages, including Long Method, Duplication, and Complex Conditionals.
  • Metrics-backed insights: Reports LOC, complexity, and duplication to prioritize fixes.
  • Use Case: During a pull request, the skill analyzes touched files and returns a prioritized list of issues with actionable suggestions.

Quick Start

Review a target code file (for example, src/utils/data-transform.js) to generate a smells report and suggested refactors.

Frequently Asked Questions about detect-code-smells

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect code smells and anti-patterns during a code review?

To detect code smells during a code review, open the target source file for analysis. The tool uses AST parsing and metrics-based scoring to identify issues like Long Method and Complex Conditionals, returning a prioritized list with actionable refactoring suggestions.

What are common code smells analyzed using static analysis?

Common code smells analyzed using static analysis include Long Method, Duplication, and Complex Conditionals. The tool targets these anti-patterns by implementing pattern matching across multiple programming languages to improve overall code maintainability.

Can I use AST parsing to find complex conditionals across different programming languages?

Yes, you can use AST parsing to find complex conditionals across different programming languages. The tool analyzes opened files regardless of language, using AST parsing and pattern matching to spot anti-patterns and provide actionable feedback.

What metrics are used to prioritize code refactoring suggestions?

Metrics used to prioritize code refactoring suggestions include lines of code (LOC), complexity, and duplication. These metrics-backed insights help developers focus on the most critical maintainability issues found during audits.

Does static analysis for code smells work on files touched in a pull request?

Static analysis for code smells works effectively on files touched in a pull request. The tool analyzes the opened target files, generating a smells report with suggested refactors to provide early quality feedback.