Code Complexity Analyzer Skill
SkillMonitoring & opsAnalyze code complexity metrics including cyclomatic complexity, code smells, and technical debt
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Code Complexity Analyzer Skill skill
What this skill tells your AI
The instructions your AI receives, as published by a5c-ai/babysitter in library/specializations/software-architecture/skills/code-complexity-analyzer/SKILL.md and read by ahel’s review.
Overview
Analyzes code complexity metrics including cyclomatic complexity, cognitive complexity, code smells, duplicate code detection, and technical debt scoring.
Capabilities
- Calculate cyclomatic complexity
- Calculate cognitive complexity
- Identify code smells
- Dependency analysis
- Duplicate code detection
- Technical debt scoring
- Maintainability index calculation
- Lines of code metrics
Target Processes
- refactoring-plan
- performance-optimization
- system-design-review
Input Schema
{
"type": "object",
"required": ["paths"],
"properties": {
"paths": {
"type": "array",
"items": { "type": "string" },
"description": "Paths to analyze (supports glob patterns)"
},
"metrics": {
"type": "array",
"items": {
"type": "string",
"enum": ["cyclomatic", "cognitive", "loc", "dependencies", "duplicates", "maintainability"]
},
"default": ["cyclomatic", "cognitive", "loc"]
},
"thresholds": {
"type": "object",
"properties": {
"cyclomatic": { "type": "number", "default": 10 },
"cognitive": { "type": "number", "default": 15 },
"duplicateLines": { "type": "number", "default": 6 }
}
},
"languages": {
"type": "array",
"items": { "type": "string" },
"description": "Languages to analyze"
}
}
}
Output Schema
{
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": { "type": "string" },
"metrics": {
"type": "object",
"properties": {
"cyclomatic": { "type": "number" },
"cognitive": { "type": "number" },
"loc": { "type": "number" },
"maintainability": { "type": "number" }
}
},
"violations": { "type": "array" }
}
}
},
"summary": {
"type": "object",
"properties": {
"totalFiles": { "type": "number" },
"averageComplexity": { "type": "number" },
"technicalDebtScore": { "type": "number" },
"hotspots": { "type": "array" }
}
},
"duplicates": {
"type": "array"
}
}
}
Usage Example
{
kind: 'skill',
skill: {
name: 'code-complexity-analyzer',
context: {
paths: ['src/**/*.ts'],
metrics: ['cyclomatic', 'cognitive', 'loc', 'dependencies'],
thresholds: { cyclomatic: 10, cognitive: 15 }
}
}
}
Signals
- GitHub stars
- 2k
- Forks
- 112
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
code-complexity-analyzer- Source
- github.com/a5c-ai/babysitter
Related picks
Skill · thedaviddias
The pick for JavaScriptmodern-javascript-patterns
Skill · wshobson
The pick for JavaScriptsetup-ts-deep-modules
Skill · mattpocock
The pick for TypeScripttypescript-pro
Skill · jeffallan
The pick for TypeScriptinternal-comms
Skill · anthropics
More in Monitoring & opsagent-eval
Skill · affaan-m
More in Monitoring & ops