anti-patterns

Analyze code for anti-patterns and suggest refactorings.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/hung-phan/system-skills --skill anti-patterns-hung-phan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anti-patterns
Source: https://github.com/hung-phan/system-skills/tree/main/skills/system-review/references/code-design/anti-patterns
Command: npx skills add https://github.com/hung-phan/system-skills --skill anti-patterns-hung-phan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies and helps you refactor common software design and code anti-patterns, ensuring cleaner, more maintainable codebases.

Core Features & Use Cases

  • Anti-Pattern Recognition: Automatically identify anti-patterns in your code, such as God objects, anemic domain models, and spaghetti code.
  • Refactoring Recommendations: Provide suggestions for refactoring the code to improve its design and maintainability.
  • Documentation & Examples: Offers detailed explanations and examples for each anti-pattern.

Quick Start

Use the anti-patterns skill to review your code 'codebase/main.py' for common anti-patterns.

Frequently Asked Questions about anti-patterns

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

FAQPage Schema
How do I detect God objects and spaghetti code in my source code?

You can detect anemic domain models by providing a text representation of your source code to this Skill, which analyzes the codebase structure to recognize domain modeling anti-patterns and recommend appropriate refactoring strategies.

How do I refactor anemic domain models to improve software design?

You can refactor anemic domain models by providing a text representation of your source code to this Skill, which analyzes the codebase structure to recognize domain modeling anti-patterns and recommend appropriate refactoring strategies.

What is the best way to review a codebase for common software anti-patterns?

The best way to review a codebase for common software anti-patterns is to use automated analysis tools that scan text representations of source code to identify structural flaws and generate refactoring recommendations for better maintainability.

Do I need a specific file format to run an anti-pattern analysis on my code?

You need a codebase with a text representation of source code to run an anti-pattern analysis, as the Skill processes textual source files directly to detect structural design flaws and suggest refactorings.

What are the limitations of automated code review for anti-patterns?

The primary limitation of automated code review for anti-patterns is that it requires a text representation of your source code, meaning compiled binaries or inaccessible proprietary formats cannot be directly analyzed for structural refactoring recommendations.