Wheels Anti-Pattern Detector
Detects and automatically fixes common errors and anti-patterns in ColdFusion Wheels framework code before generation.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- Validates CLI-generated migrations to prevent silent failures
- Identifies non-existent form helpers and database-specific SQL functions
- Enforces consistent argument styles in models and controllers
- Corrects common mistakes like using ArrayLen() on query objects
- Automatically detects and fixes critical errors during code generation
Use cases
- Refactoring existing ColdFusion Wheels code to improve quality and fix hidden bugs
- Onboarding new developers to a Wheels project by enforcing best practices automatically
- Generating models, controllers, views, or migrations for a Wheels application
FAQ
When should I use this skill?
This skill runs automatically whenever you ask Claude to generate or modify CFWheels code. It's active during the creation of models, controllers, views, and migrations, as well as during general code review and refactoring tasks for any CFWheels project.
What critical errors does it prevent?
It prevents several critical errors, including silent migration failures caused by string booleans from the CLI generator, 'NoPrimaryKey' errors by ensuring `setPrimaryKey()` is declared in models, and property access errors in model callbacks by adding `structKeyExists()` checks.
Can this skill fix existing code?
Yes. Beyond code generation, you can use this skill to review and refactor existing CFWheels files. It will identify and suggest fixes for anti-patterns like mixed argument styles, using ArrayLen() on query objects, or calling non-existent form helpers, making it an excellent tool for modernizing legacy codebases.
How does this skill improve my workflow?
It improves your workflow by catching hard-to-debug issues before they are ever written to a file. By automatically fixing critical problems like invalid migration syntax or missing model configurations, it saves significant development and debugging time, leading to more reliable and consistent code.
What does the Wheels Anti-Pattern Detector skill do?
This skill automatically scans ColdFusion Wheels (CFWheels) code to detect and fix common, critical errors and anti-patterns. It activates during code generation to ensure the output is correct and follows best practices, preventing silent failures and runtime errors.
Related skills
Lint Fixer
Identifies and resolves linting errors, formatting issues, and type discrepancies while maintaining code functionality.
Security Testing20,67612 ptsCode Quality & Testing Framework
Enforces rigorous code quality standards and implements comprehensive multi-layer testing infrastructure to ensure production-grade software reliability.
Security Testing412 ptsAgentV Eval Builder
Generates and maintains structured YAML evaluation files for testing AI agent performance and response accuracy.
Security Testing412 pts