Loading...
Loading...
This skill should be used when reducing the cognitive complexity threshold of the codebase. It lowers the threshold by 2, identifies functions that exceed the new limit, generates a brief with refactoring strategies, and creates a plan with tasks to fix all violations.
npx skill4agent add codyswanngt/lisa plan-lower-code-complexitybun run lint 2>&1 | grep "cognitive-complexity"Reduce cognitive complexity threshold from [current] to [new].
Functions exceeding threshold (ordered by complexity):
1. [file:function] (complexity: X, target: [new]) - Line Y
2. ...
Configuration change: [eslint config path], cognitive-complexity from [current] to [new]
Refactoring strategies: extract functions, early returns, extract conditions, use lookup tables
Verification: `bun run lint 2>&1 | grep "cognitive-complexity" | wc -l` → Expected: 0/plan-create