Wheels Anti-Pattern Detector

Detect and auto-fix CFWheels anti-patterns during code generation.

203|108|Updated Jan 13, 2011
One-click install
npx skills add https://github.com/wheels-dev/wheels --skill wheels-anti-pattern-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Wheels Anti-Pattern Detector
Source: https://github.com/wheels-dev/wheels/tree/main/.claude/skills/wheels-anti-pattern-detector
Command: npx skills add https://github.com/wheels-dev/wheels --skill wheels-anti-pattern-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automatically detects and prevents common, silent errors in CFWheels code generation (models, controllers, views, migrations) that often lead to runtime failures and debugging headaches. It ensures your code adheres to best practices, saving you significant development and debugging time.

Core Features & Use Cases

  • Automated Error Detection: Scans for critical anti-patterns like mixed argument styles, query/array confusion, non-existent form helpers, missing setPrimaryKey(), and database-specific SQL.
  • Proactive Auto-Fixes: Automatically corrects detected issues before code is written to files, preventing problems from ever reaching your application.
  • Use Case: During any code generation, this skill acts as a vigilant assistant, scanning your code, identifying critical anti-patterns, and auto-correcting them. This ensures your Wheels application is robust and error-free from the start, allowing you to focus on features, not fixes.

Quick Start

This skill runs automatically during Wheels code generation.

No explicit activation is needed.

Example detection and auto-fix:

❌ t = createTable(name='users', force='false', id='true');

✅ t = createTable(name='users');

Frequently Asked Questions about Wheels Anti-Pattern Detector

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

FAQPage Schema
How do I prevent common anti-patterns in CFWheels code generation?

Anti-pattern detection runs automatically during Wheels model, controller, view, and migration generation to catch issues like mixed argument styles, query/array confusion, and missing setPrimaryKey() calls. The Skill identifies and auto-fixes these errors before code reaches your application, preventing runtime failures.

What kinds of errors does Wheels code generation commonly miss?

Common silent errors include non-existent form helpers, database-specific SQL mistakes, inconsistent parameter usage, and improper function arguments. These often go unnoticed until runtime and cause debugging headaches. Automated detection catches them during generation.

Can I auto-correct Wheels code issues automatically?

Yes, the Skill applies proactive auto-fixes during code generation, automatically correcting detected anti-patterns before files are written. This eliminates the need for manual fixes and ensures your Wheels application starts robust and error-free.

Does this work during code review and refactoring?

The Skill applies during code generation, review, and refactoring workflows, validating patterns and preventing known issues across all stages. It uses regex-based detection to enforce consistent parameter usage and safe Wheels practices throughout your development cycle.

What's the best way to maintain code quality in large Wheels applications?

Automated anti-pattern detection integrated into your generation workflow catches errors at creation time rather than in testing or production. This approach scales with your codebase by preventing problematic patterns from ever being written, reducing technical debt from the start.