plan-lower-code-complexity

Lower cognitive complexity thresholds and identify functions exceeding the new limit.

3|3|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/CodySwannGT/lisa --skill plan-lower-code-complexity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plan-lower-code-complexity
Source: https://github.com/CodySwannGT/lisa/tree/main/plugins/lisa/skills/plan-lower-code-complexity
Command: npx skills add https://github.com/CodySwannGT/lisa --skill plan-lower-code-complexity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the issue of overly complex functions within a codebase, which can hinder maintainability and increase the likelihood of bugs.

Core Features & Use Cases

  • Automated Complexity Reduction: Automatically lowers the cognitive complexity threshold and identifies functions exceeding it.
  • Refactoring Guidance: Provides a brief with refactoring strategies and generates a plan to fix all violations.
  • Use Case: A developer notices that several functions in a critical module have high cognitive complexity scores. They use this Skill to automatically identify these functions, get suggestions on how to refactor them, and create a task list to implement the changes.

Quick Start

Use the plan-lower-code-complexity skill to reduce the cognitive complexity threshold by 2 and fix all violations.

Frequently Asked Questions about plan-lower-code-complexity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify functions with high cognitive complexity for refactoring?

To reduce code complexity, this Skill lowers the cognitive complexity threshold by a specified amount and identifies all functions exceeding it. It automatically generates a refactoring brief and an actionable plan to fix the identified violations.

How do I create a plan to fix cognitive complexity violations in my codebase?

You can create a plan to fix cognitive complexity violations by running this Skill with a target threshold reduction. It outputs a structured brief containing specific refactoring strategies and a task list to systematically address all flagged functions and improve maintainability.

What is cognitive complexity and why does it affect code maintainability?

Cognitive complexity measures how difficult a function is for a developer to understand. High cognitive complexity hinders code maintainability and increases the likelihood of bugs, making automated threshold reduction and refactoring essential for long-term developer productivity.

Does this complexity reduction tool require ESLint to identify code violations?

While the metadata highlights ESLint as a keyword for code quality, this Skill operates independently without external dependencies. It autonomously evaluates cognitive complexity thresholds, identifies violating functions, and generates refactoring plans using its internal scripts.

Can I automatically lower the cognitive complexity threshold by a specific amount?

Yes, you can automatically lower the cognitive complexity threshold by a specific amount, such as 2. The Skill identifies all functions exceeding the newly established limit and produces an actionable plan to resolve these complexity violations.