complexity-analysis

Audit complexity and real-time risks in ISR and critical task paths.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/AntonBespalov/WC_IST --skill complexity-analysis-antonbespalov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: complexity-analysis
Source: https://github.com/AntonBespalov/WC_IST/tree/main/.codex/skills/complexity-analysis
Command: npx skills add https://github.com/AntonBespalov/WC_IST --skill complexity-analysis-antonbespalov

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps identify and quantify code complexity and real-time risks in ISR and critical task paths to ensure deterministic performance.

Core Features & Use Cases

  • Audit complexity and latency in ISR handlers, fast loops, and control loops.
  • Identify potential stack/recursion risks, blocking calls, and branching hazards.
  • Use during code reviews to guide optimizations and hard-limit enforcement.

Quick Start

Run a focused complexity audit on a critical ISR path to reveal timing bottlenecks and potential blocking.

Frequently Asked Questions about complexity-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit ISR complexity and latency risks in real-time code paths?

To audit ISR complexity and latency, review critical handlers and fast loops to identify branching hazards and quantify determinism risks. This enforces zero-fat ISR constraints by revealing blocking calls and potential stack or recursion issues.

What is a zero-fat ISR and how does it relate to real-time determinism?

A zero-fat ISR is an interrupt service routine stripped of blocking calls and algebraic complexity to guarantee deterministic execution. Achieving this state ensures critical task paths meet hard-limits and avoids unpredictable latency in real-time systems.

How do I identify stack risks and blocking constraints in RTOS critical sections?

Identify stack risks and blocking constraints in RTOS critical sections by analyzing control loops and ISR handlers for recursion hazards and illegal blocking calls. This audit process guides safe-state decisions and enforces hard limits.

Can I use complexity analysis for optimizing fast loops and control loops?

Yes, you can use complexity analysis for optimizing fast loops and control loops. It quantifies algebraic complexity and timing bottlenecks during code reviews, directly guiding optimization efforts to improve execution determinism.

When do I need an audit checklist for ISR handlers and hard-limit enforcement?

You need an audit checklist for ISR handlers when verifying zero-fat constraints and hard-limit enforcement in critical code. Apply it during reviews of fast loops to catch blocking calls, stack constraints, and timing risks before deployment.

What is the best way to check determinism in critical task paths?

The best way to check determinism in critical task paths is running a focused complexity audit on ISR handlers and control loops. This quantifies latency bottlenecks and verifies that blocking constraints and algebraic complexity controls are properly enforced.