AI Anti-Pattern Detection & Correction

0•

Identifies and fixes common AI-generated code anti-patterns like overengineering, context ignoring, and security vulnerabilities.

This skill provides a specialized framework for identifying and correcting five critical anti-patterns often found in AI-generated code. It helps developers maintain codebase integrity by preventing premature abstractions, ensuring alignment with existing project context, improving error handling, and securing sensitive data. By applying specific detection strategies and a comprehensive code review checklist, this skill ensures that AI-generated output meets production-grade standards and avoids common pitfalls like duplicated utilities or security leaks.

Key Features

01Analyzes error handling to prevent silent failures and naive catch blocks.
020 GitHub stars
03Identifies code duplication by scanning for existing project utilities and patterns.
04Detects overengineering and unnecessary architectural complexity in AI suggestions.
05Scans for security vulnerabilities including hardcoded secrets and SQL injection risks.
06Provides a standardized checklist for auditing AI-generated pull requests.

Use Cases

01Auditing AI-suggested code for security risks before merging to production repositories.
02Reviewing LLM-generated code to ensure it follows established project conventions.
03Simplifying overly complex logic or unnecessary abstractions suggested by AI models.