Skip to main content

analyze-branching

Formally analyzes control-flow branchings, cyclomatic complexity, nesting depths, and branch redundancies across Python and TypeScript engine files.

来源信息

仓库
dealfluence/adeu
最近来源活动
2026年8月22日 19:10
检测到的 SKILL.md 语言
英语
星标
168
分支
25

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
analyze-branching
description
Formally analyzes control-flow branchings, cyclomatic complexity, nesting depths, and branch redundancies across Python and TypeScript engine files.
# Analyze Branching Skill This skill provides formal analysis of control-flow branchings, decision points, and nesting depth across the Python (`python/src/adeu/redline/engine.py`) and TypeScript (`node/packages/core/src/engine.ts`) engine implementations. ## Usage Run the engine branch checker script from repository root: ```bash uv run python scripts/check_engine_branches.py ``` Or analyze individual files: ### Python Analysis ```bash uv run python scripts/analyze_python_branches.py [path_to_file] ``` ### TypeScript Analysis ```bash node scripts/analyze_ts_branches.mjs [path_to_file] ``` ## Metrics - **Cyclomatic Complexity**: Counts decision nodes (`if`, `elif`/`else`, loops, exception handlers, logical boolean operators `and`/`or` / `&&`/`||`, conditional expressions). - **Max Depth**: Deepest nesting level of control flow structures inside a single function. - **Deep Nesting Warning**: Flags functions with branch nesting levels $\ge 6$.
在 GitHub 查看