←Leaderboard/Code Quality/cyclomatic-complexity-skill
Last commit on August 26, 2026·Created on August 26, 2026

saurabhkumar8112/cyclomatic-complexity-skill

“Reduces branching logic to prevent the accumulation of spaghetti code and god functions.”
Combined rank
#600
across all skills
In Code Quality
#30
category rank
Stars
405
0.0% in last 7d
Forks
10
0.0% in last 7d
Watchers
0
0 watchers in last 7d
Traction scoreGitHub stars can be faked, so popularity alone can be misleading. Traction Score looks for broader signs of recent attention, adoption, and active maintenance.
TL;DR

This skill helps technical leads and architects enforce maintainability standards by identifying and refactoring deeply nested logic. It focuses on reducing cyclomatic complexity to ensure code remains readable for humans rather than just optimized for AI comprehension.

It is designed for use during code reviews, when simplifying complex branching, or as a proactive check after writing nontrivial functions to ensure the codebase remains aligned with long-term architectural goals.

WHO IT'S FOR
Technical leads / architects
enforce maintainability standards across codebases
Backend / infrastructure engineers
simplify deeply nested logic and branching
QA / test automation engineers
validate AI-generated code before merging
Platform / DevEx teams
integrate complexity thresholds into linter configs
Repository contents

1 skill file

Compatible AgentsThe repository documents support for these agents. The skills may also work with other agents that can load SKILL.md files, but they may need some setup or small changes.

Use this skill

Follow the documented setup, then try a first task.

I’m using

Install from the Claude Code plugin marketplace

Installs: The cyclomatic-complexity plugin from the cyclomatic-complexity-skill marketplace · Claude Code

  1. Enter this complete command sequence in a Claude Code session. The first command adds the author's marketplace; the second installs its cyclomatic-complexity plugin.

    /plugin marketplace add saurabhkumar8112/cyclomatic-complexity-skill
    /plugin install cyclomatic-complexity@cyclomatic-complexity-skill
.claude-plugin/marketplace.json ↗ · Checked Oct 12, 2026README.md ↗ · Checked Oct 12, 2026skills/cyclomatic-complexity/SKILL.md ↗ · Checked Oct 12, 2026

Give it something to do.

Suggested first task

Refactor a complex source file

Uses cyclomatic-complexity

  • Path to the source file to analyze and refactor (`parser.py` is the author's sample placeholder)
  • Existing project linter configuration, if any
  • Existing test suite, if available, for before-and-after behavior verification
Use the cyclomatic-complexity skill to refactor parser.py
README.md ↗ · Checked Oct 12, 2026skills/cyclomatic-complexity/SKILL.md ↗ · Checked Oct 12, 2026