A multi-language static analysis tool that measures cyclomatic, cognitive, and structural metrics to identify high-risk code.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install code-complexity-analyzer
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install code-complexity-analyzer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Code Complexity Analyzer is a robust utility designed to maintain high engineering standards by quantifying how difficult code is to test and maintain. By integrating this within your Openclaw Skills library, developers can automatically scan source code for deep nesting, overly long functions, and complex logical paths that lead to technical debt.
Built as a pure Python tool with no external dependencies, it provides an efficient way to evaluate Python, JavaScript, TypeScript, and Go files. It helps teams move beyond simple linting by focusing on the perceived difficulty of understanding code (Cognitive Complexity) and the number of independent execution paths (Cyclomatic Complexity).
To start using this tool with your Openclaw Skills, ensure you have Python 3 installed. No additional pip installations are required.
# Clone or locate the script
# Analyze your source directory
python3 scripts/analyze_complexity.py src/
# Run with custom thresholds for a stricter CI gate
python3 scripts/analyze_complexity.py src/ --cc 8 --cog 12
The analyzer organizes its findings based on function-level granularity. It tracks the following taxonomy for every analyzed file:
| Metric | Description | Indicator |
|---|---|---|
| CC | Cyclomatic Complexity | Logic paths |
| COG | Cognitive Complexity | Readability score |
| Lines | Function Length | Vertical scale |
| Params | Parameter Count | Interface surface |
| Nesting | Max Depth | Logic indentation |
Output results can be exported as a structured JSON object for integration into other Openclaw Skills workflows.
Loading
A specialized AI agent skill that transforms static app screenshots and images into high-quality, realistic phone mockup videos automatically.

A specialized performance auditing tool for Bun-based monorepos that eliminates dependency bloat and accelerates build pipelines.

A powerful Python SDK and automation toolkit for interacting with GitCode REST resources using sync and async clients.

Capacity Planner provides data-driven infrastructure forecasting to prevent outages and optimize cloud spend through historical metric analysis.

An automated and manual auditing tool for ensuring web applications meet WCAG 2.2 accessibility standards and inclusive design principles.

A comprehensive diagnostic tool for auditing Dagster software-defined assets, partitioning strategies, and pipeline reliability.








































