AGENT SKILL

drin-code-complexity-auditor

Workflow for measuring and reducing cyclomatic complexity and technical risk in codebases.

License 许可
MIT
最近更新
2026-04-11
Stars
★ 12
Forks
1

01 前言 Front Matter

name
drin-code-complexity-auditor
status
production
description
Workflow for measuring and reducing cyclomatic complexity and technical risk in codebases.

03 SKILL.md 正文

Code Complexity Auditor

Purpose

To ensure the codebase remains maintainable and easy to understand as it grows.

Metrics

  • Cyclomatic Complexity: Number of linear paths through code.
  • Cognitive Complexity: How hard it is for a human to read.
  • Lines of Code (LoC) per Function: Keeping it modular.
  • Depth of Nesting: Reducing "Pyramid" code.

Rules

  • Break down any function with complexity > 10.
  • Prefer explicit logic over "Clever" one-liners.

subagents:

  • code-reviewer
  • code-architect

04 同仓库更多 Skills