find-logic-errors

Installation
SKILL.md

Logic Error Detection

Analyze PHP code for logic errors that cause incorrect behavior.

Detection Patterns

1. Incorrect Comparison Operators

// BUG: Assignment instead of comparison
if ($status = 'active') { } // Should be ===

// BUG: Wrong comparison type
if ($count == '0') { } // '0' is truthy in string comparison

// BUG: Yoda condition error
if ('active' = $status) { } // Assignment error
Related skills
Installs
4
GitHub Stars
71
First Seen
Mar 17, 2026