Skip to main content

find-complexity

Find functions with high cyclomatic complexity, length, or parameter count. Use when the user asks for complexity hotspots or refactor candidates.

Informações da origem

Repositório
openshift/lightspeed-agentic-sandbox
Última atividade na origem
19 de maio de 2026 às 11:24
Idioma detectado do SKILL.md
inglês
Estrelas
5
Forks
23

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
find-complexity
description
Find functions with high cyclomatic complexity, length, or parameter count. Use when the user asks for complexity hotspots or refactor candidates.
disable-model-invocation
true
# Find Complexity Hotspots Identify functions that are hard to review, test, and maintain. ## Rules - Report findings, do not refactor unless asked. - Focus on `src/lightspeed_agentic/`. Skip tests unless asked. - Rank by severity. ## Step 1: Determine Scope - **Branch mode**: changed Python files vs `main`. - **Full mode**: `src/lightspeed_agentic/`. Branch mode: ```bash git diff --name-only origin/main -- 'src/lightspeed_agentic/' | grep '\.py$' ``` ## Step 2: Cyclomatic Complexity ```bash uvx radon cc <target> -s -n C -a ``` Grade C or worse (typically complexity 11+). ## Step 3: Maintainability Index (optional) ```bash uvx radon mi <target> -s ``` ## Step 4: Report List: function, file:line, complexity grade, brief note (nesting, branching, mixed concerns). Prioritize provider adapters and route handlers if scores are high.
Ver no GitHub