← ClaudeAtlas

tenet-complexitylisted

Measures function/file complexity, nesting, length, and maintainability thresholds.
inceptyon-labs/tenet-skills · ★ 0 · Code & Development · score 78
Install: claude install-skill inceptyon-labs/tenet-skills
# Tenet Complexity — Code Complexity Audit > Measures structural complexity across all code in the repository. Functions that are too complex, too deeply nested, or too long are flagged with severity proportional to the violation. ## Purpose This skill evaluates the structural complexity of the codebase by measuring five metrics per function and per file: 1. **Cyclomatic complexity** — number of linearly independent paths through a function 2. **Cognitive complexity** — how hard a function is for a human to understand (weighted nesting, recursion, breaks in linear flow) 3. **Max nesting depth** — deepest level of nested control structures within a function 4. **File length** — total lines of code per file 5. **Function length** — total lines per function or method High complexity correlates with bugs, difficulty onboarding new developers, and resistance to safe refactoring. This dimension provides the quantitative foundation for technical debt decisions. ## Language Support Matrix ```yaml support: native: [typescript, javascript, python] tree_sitter: [go, rust, java, kotlin, swift, c, cpp] heuristic: [ruby, php, shell, lua, elixir, scala, dart, all others] note: > Native support uses toolchain output (eslint, radon, gocyclo) for deterministic metrics. Tree-sitter support parses AST for accurate function boundary detection. Heuristic support counts branching keywords and uses indentation to estimate nesting depth. ``` ## Toolchain Inputs This s