analyze-branching

analyze-branching is a skill for Claude Code, Codex from dealfluence/adeu. It costs 33 tokens per session (260 once invoked), scanned A, original, MIT.

A code-analysis tool for measuring how many decisions and nested branches appear in Python and TypeScript functions.

In plain words
What is it for?
Use it to inspect engine files, count cyclomatic complexity, measure maximum nesting depth, and find repeated or overly complicated branches.
Why use it?
It shows where control flow is difficult to follow, including functions with many conditions or deep nesting.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/dealfluence/adeu/analyze-branching
Any agent
npx skills add dealfluence/adeu --skill analyze-branching
Clone the repo
git clone --depth 1 https://github.com/dealfluence/adeu

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-branching

README.md
[![agentmods](https://agentmods.dev/badge/skills/dealfluence/adeu/analyze-branching.svg)](https://agentmods.dev/skills/dealfluence/adeu/analyze-branching)
Your own site
<a href="https://agentmods.dev/skills/dealfluence/adeu/analyze-branching"><img src="https://agentmods.dev/badge/skills/dealfluence/adeu/analyze-branching.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 260 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00260
Opus 5 $0.00016 $0.00130
Sonnet 5 $0.00007 $0.00052
Haiku 4.5 $0.00003 $0.00026

Measured 6d ago against content hash b2ed1995df8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

analyze-branching scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skills/analyze-branching/SKILL.md · 34 lines

What it actually says

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:

uv run python scripts/check_engine_branches.py

Or analyze individual files:

Python Analysis

uv run python scripts/analyze_python_branches.py [path_to_file]

TypeScript Analysis

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$.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 34 lines · 33 tokens per session scan A b2ed1995df8a

Subscribe to this mod's changes

analyze-branching is a skill published in the GitHub repository dealfluence/adeu (152 stars, last pushed 3d ago), licensed MIT. It adds 33 tokens to every session and 260 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.