plan-lower-code-complexity

Installation
SKILL.md

Lower Code Complexity

Reduces the cognitive complexity threshold by 2 and fixes all violations.

Step 1: Gather Requirements

  1. Read current threshold from eslint config (cognitive-complexity rule)
  2. Calculate new threshold: current - 2 (e.g., 15 -> 13)
  3. Run lint with the new threshold to find violations:
    bun run lint 2>&1 | grep "cognitive-complexity"
    
  4. Note for each violation:
    • File path and line number
    • Function name
    • Current complexity score

If no violations at new threshold, report success and exit.

Related skills

More from codyswanngt/lisa

Installs
23
GitHub Stars
1
First Seen
Feb 10, 2026