Synaptic SkillsSynapticSkills
MarketplaceSkill GraphCriar SkillMCP ServerPlataformaEnterprise
v0.1.0-beta
Voltar ao Marketplace
DevelopmentAvançado

Refactor Method to Reduce Cognitive Complexity

porgithub·github· v1.0.0 · atualizado em 2026-04-10
78
Score

Refactor given method `${input:methodName}` to reduce its cognitive complexity to `${input:complexityThreshold}` or below, by extracting helper methods.

code-refactoringcognitive-complexitymethod-extractioncode-qualitymaintainabilitysoftware-engineering
0Stars
0Forks
0Usos
Fork

Documento do Skill

SKILL.mdrefactor-method-complexity-reduce/workflow
1. Analyze the method to identify sources of cognitive complexity.
2. Identify opportunities for extracting helper methods.
3. Extract focused helper methods with single responsibilities.
4. Simplify the main method by reducing nesting and replacing complex chains.
5. Run existing tests and verify that all tests pass (failed=0).
6. Check cognitive complexity to ensure it is below the target threshold.
7. Ensure the code compiles without errors.

Telemetria de Agentes

Execuções
0
total
Taxa de Sucesso
0%
últimos 30d
Latência Média
0.0s
p50
Alucinação
0.0%
detecção
Tokens Entrada
0
avg 0/exec
Tokens Saída
0
avg 0/exec

Uso por Plataforma

Skills Relacionados

Compõe comRefactor Plan
80%
Hebbian Synapse
Composite0.800
w = 0.3·α + 0.5·β + 0.2·γ
83
Compõe comreview-and-refactor
80%
Hebbian Synapse
Composite0.800
w = 0.3·α + 0.5·β + 0.2·γ
83
Compõe com ←Refactor
80%
Hebbian Synapse
Composite0.800
w = 0.3·α + 0.5·β + 0.2·γ
79
Similar aCode Reviewer
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
94
Similar aGit Diff Parser
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
86
Similar aREST API Builder
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
90
Co-executedREST API Builder
49%
Hebbian Synapse
Composite0.485
w = 0.3·α + 0.5·β + 0.2·γ
90
Co-executedRefactor Plan
50%
Hebbian Synapse
Composite0.501
w = 0.3·α + 0.5·β + 0.2·γ
83
Co-executedreview-and-refactor
50%
Hebbian Synapse
Composite0.501
w = 0.3·α + 0.5·β + 0.2·γ
83
Co-executed ←Refactor
47%
Hebbian Synapse
Composite0.471
w = 0.3·α + 0.5·β + 0.2·γ
79

Árvore do Skill

Refactor Method to Reduce Cognitive Complexity
refactor-method-complexity-reduce
Fases Cognitivas5
1.SENSE
2.CONTEXTUALIZE
3.ACT
4.EVALUATE
5.REFLECT
Triggers6
refactor this method to reduce complexityreduce cognitive complexity of the methodextract helper methods to simplify codeimprove method readability by refactoringrefactor the method to be more maintainablereduce cyclomatic complexity of the function

Avaliar este Skill

Score Breakdown

⭐Avaliação Humana0%
🤖Sucesso de Agentes0%
🕐Atualidade100%
🔗Saúde de Dependências100%
🕸️Centralidade no Grafo0%
🛡️Segurança50%
CompositeScore = α·Humano + β·Agente + γ·Recência + δ·Deps + ε·Centralidade + ζ·Segurança

Instalação

$ synaptic mcp download refactor-method-complexity-reduce
$ synaptic skills detail refactor-method-complexity-reduce
$ synaptic skills live refactor-method-complexity-reduce

Links

GitHub Repository