Practical AI Leadership: Negative Coding Patterns Detection

Scan codebases for cross-language anti-patterns and generate mitigation prompts.

5|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/Practical-AI-Leadership/agent-skills --skill practical-ai-leadership-negative-coding-patterns-detection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Practical AI Leadership: Negative Coding Patterns Detection
Source: https://github.com/Practical-AI-Leadership/agent-skills/tree/main/practical-ai-leadership-negative-coding-patterns-detection
Command: npx skills add https://github.com/Practical-AI-Leadership/agent-skills --skill practical-ai-leadership-negative-coding-patterns-detection

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill identifies and helps you fix dangerous coding anti-patterns that AI tools tend to copy and amplify, ensuring your codebase remains robust and secure.

Core Features & Use Cases

  • Automated Anti-Pattern Detection: Scans your codebase for 10 common, high-risk anti-patterns across multiple languages.
  • Contextual Findings: Provides specific code snippets and locations where anti-patterns are found.
  • Mitigation Prompt Generation: Creates a comprehensive prompt for AI coding tools to automatically fix detected issues.
  • Use Case: Run this skill on your project to proactively find and fix issues like hardcoded secrets or SQL injection vulnerabilities before they are amplified by AI code generation.

Quick Start

Use the negative coding patterns detection skill to scan the current project for anti-patterns.

Frequently Asked Questions about Practical AI Leadership: Negative Coding Patterns Detection

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

FAQPage Schema
How do I detect anti-patterns in my codebase introduced by AI code generation?

SQL injection and hardcoded secrets are detected through regex-based code search across your detected technical stack. The Skill identifies these high-risk anti-patterns and generates a comprehensive mitigation prompt to help AI agents fix them.

Can I automatically scan for security anti-patterns across multiple programming languages?

Yes, you can scan multiple languages because the Skill auto-detects your technical stack. It then searches for 10 cross-language anti-patterns, including broad exception handling and N+1 query problems, providing contextual findings with specific snippets.

What is the best way to generate a refactoring prompt for AI coding tools to fix code quality issues?

The best way to generate a refactoring prompt is to run this Skill, which scans for anti-patterns and outputs a single comprehensive mitigation prompt. This prompt instructs AI coding tools to automatically fix the detected code quality issues.

Does this anti-pattern detection tool work without configuring specific code review rules?

Yes, it works without manual configuration because the Skill automatically detects your technical stack. It uses regex-based code search to find 10 common anti-patterns, eliminating the need to manually set up specific code review rules.

How do I find and fix N+1 query problems and broad exception handling before they are amplified by AI?

To find and fix N+1 query problems and broad exception handling, the Skill scans your codebase and pinpoints these anti-patterns. It then generates a mitigation prompt to prevent AI tools from amplifying them during future code generation.