factory-complexity-check

Detect cyclomatic complexity violations against configured soft and hard thresholds.

1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/e2its/myrmion-AI-factory --skill factory-complexity-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: factory-complexity-check
Source: https://github.com/e2its/myrmion-AI-factory/tree/main/.claude/skills/factory-complexity-check
Command: npx skills add https://github.com/e2its/myrmion-AI-factory --skill factory-complexity-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually tracking code cyclomatic complexity across a codebase is time-consuming and error-prone, especially for teams enforcing consistent code quality standards in CI/CD pipelines and pull request workflows. This Skill automates the entire process, eliminating manual review overhead and ensuring consistent enforcement of complexity thresholds.

Core Features & Use Cases

  • Configurable Threshold Enforcement: Automatically flags functions that exceed project-defined soft and hard complexity thresholds, with configurable behavior for CI gates and PR reviews.
  • Tool-Agnostic MCP Integration: Works with any project-configured complexity analysis MCP without hardcoding specific tools, allowing teams to use their preferred analysis stack.
  • Fail-Open Safety Logic: Never blocks development workflows due to infrastructure issues like missing MCP servers or misconfigured settings, only blocking for confirmed hard threshold violations when explicitly enabled.
  • Use Case: A development team can configure this Skill to run automatically during PR reviews and CI build verification, catching overly complex functions before they are merged to reduce technical debt and maintain code maintainability.

Quick Start

Ask Claude to run a complexity check on all changed files in your current branch to identify functions that exceed your project's configured complexity thresholds.

Frequently Asked Questions about factory-complexity-check

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

FAQPage Schema
How do I automate cyclomatic complexity checks in a CI/CD pipeline?

Automate cyclomatic complexity checks by integrating this tool into CI/CD build verification gates to automatically flag functions exceeding project-defined soft and hard thresholds.

Can I block pull requests when code complexity exceeds a hard threshold?

Yes, you can block pull requests by configuring hard threshold enforcement in PR review workflows, catching overly complex functions before they are merged to reduce technical debt.

Does this complexity analysis tool work with any MCP server?

Yes, it features tool-agnostic MCP integration, working with any project-configured complexity analysis MCP server without hardcoding specific tools.

What happens if the MCP server is missing during a code complexity check?

It applies fail-open safety logic, meaning infrastructure issues like missing MCP servers or misconfigurations will never block development workflows.

How do I configure soft and hard thresholds for code complexity violations?

Configure soft and hard complexity thresholds in your project settings to automatically flag functions that exceed the defined limits during ad-hoc analysis or CI gates.

Is there a way to check code complexity only on changed files in a branch?

Yes, you can request complexity analysis specifically for changed source files in your current branch to identify threshold violations before merging.