From lisa-rails
This skill should be used when reducing the code complexity threshold of the codebase. It lowers the CyclomaticComplexity threshold by 2, identifies methods that exceed the new limit, generates a brief with refactoring strategies, and creates a plan with tasks to fix all violations.
npx claudepluginhub codyswanngt/lisa --plugin lisa-railsThis skill is limited to using the following tools:
Reduces the CyclomaticComplexity threshold by 2 and fixes all violations.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Reduces the CyclomaticComplexity threshold by 2 and fixes all violations.
.rubocop.yml (Metrics/CyclomaticComplexity Max)bundle exec rubocop --only Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity --format json 2>&1
bundle exec flog --all --group app/ 2>&1 | head -50
If no violations at new threshold, report success and exit.
Compile the gathered information into a structured brief:
Reduce CyclomaticComplexity threshold from [current] to [new].
Methods exceeding threshold (ordered by complexity):
1. [file:method_name] (complexity: X, target: [new]) - Line Y
- flog score: Z
2. ...
Configuration change: .rubocop.local.yml, Metrics/CyclomaticComplexity Max from [current] to [new]
Refactoring strategies: extract methods, early returns, extract conditions, use lookup hashes, replace conditionals with polymorphism
Verification: `bundle exec rubocop --only Metrics/CyclomaticComplexity --format simple 2>&1 | grep "offense" | wc -l` -> Expected: 0
Invoke /plan-execute with this brief to create the implementation plan.