claudeers.
// Claude Skills

cyclomatic-complexity-skill

Claude skill: refactor code to reduce cyclomatic complexity

// Claude Skills[ api ][ claude ]#claude#agent-skills#code-quality#refactoring#skills◷ Apache-2.0$open-sourceupdated about 1 month ago
Actively maintained
90/100
last commit about 1 month ago
last release none
releases 0
open issues 0
// star history

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up cyclomatic-complexity-skill (claude-plugin project) into my current project.
Found on https://claudeers.com/cyclomatic-complexity-skill
Repo: https://github.com/saurabhkumar8112/cyclomatic-complexity-skill
Homepage/docs: —
Detected install method: claude-plugin → /plugin install cyclomatic-complexity-skill@saurabhkumar8112/cyclomatic-complexity-skill
Category: skills. Platforms: api.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
active; community-verified: false. Confirm the source before running anything.
// or install directly (claude-plugin)
/plugin marketplace add saurabhkumar8112/cyclomatic-complexity-skill
/plugin install cyclomatic-complexity-skill@saurabhkumar8112/cyclomatic-complexity-skill
// or clone
git clone https://github.com/saurabhkumar8112/cyclomatic-complexity-skill

// compatibility

Platformsapi
Operating systems—
AI compatibilityclaude
LicenseApache-2.0
Pricingopen-source
Language—

Get your FREE $2.50 API credits to access TickAtlas financial data ↗

cyclomatic-complexity

A Claude skill that refactors code to reduce cyclomatic complexity. Built for AI-generated code: it works, but branches like a jungle. This skill makes Claude measure complexity, refactor hotspots, and keep code maintainable for humans and the long-term vision of the codebase.

What it does

  • Measures cyclomatic complexity per function (radon, eslint, gocyclo, lizard, or manual count)
  • Respects your project's own linter thresholds when configured
  • Refactors worst hotspots first: guard clauses, extract function, lookup tables, named predicates
  • Refuses to game the metric. Complexity moves into well-named functions, not into clever one-liners
  • Ends every refactor with a before/after complexity table

Install

Claude Code

/plugin marketplace add saurabhkumar8112/cyclomatic-complexity-skill
/plugin install cyclomatic-complexity@cyclomatic-complexity-skill

Claude.ai

Download the .skill file from Releases (or zip the skills/cyclomatic-complexity folder) and upload it under Settings → Capabilities → Skills.

Claude API

Upload via the Skills API.

Usage

Triggers automatically on refactoring, cleanup, and code review requests. Or invoke directly:

"Use the cyclomatic complexity skill to refactor parser.py"

Example output

## Complexity report
| Function | Before | After |
|----------|--------|-------|
| parseOrder | 14 | 4 |

Extracted: validateHeader, resolveDiscount
Behavior verified: existing test suite passes

License

Apache 2.0

// faq

What is cyclomatic-complexity-skill?

Claude skill: refactor code to reduce cyclomatic complexity. It is open-source on GitHub.

Is cyclomatic-complexity-skill free to use?

cyclomatic-complexity-skill is open-source under the Apache-2.0 license, so it is free to use.

What category does cyclomatic-complexity-skill belong to?

cyclomatic-complexity-skill is listed under skills in the Claudeers registry of Claude-compatible tools.

8 views
★ 402 stars
unclaimed
updated about 1 month ago

// embed badge

cyclomatic-complexity-skill on Claudeers
[![Claudeers](https://claudeers.com/api/badge/cyclomatic-complexity-skill.svg)](https://claudeers.com/cyclomatic-complexity-skill)

// retro hit counter

cyclomatic-complexity-skill hit counter
[![Hits](https://claudeers.com/api/counter/cyclomatic-complexity-skill.svg)](https://claudeers.com/cyclomatic-complexity-skill)

// reviews

// guestbook

0/500

// related in Claude Skills

🔓

An agentic skills framework & software development methodology that works.

// skillsobra/⟨Shell⟩★ 292,190◷ MIT[ claude ]
🔓

Public repository for Agent Skills

// skillsanthropics/⟨Python⟩★ 178,324[ claude ]
🔓

💫 Toolkit to help you get started with Spec-Driven Development

// skillsgithub/⟨Python⟩★ 138,919◷ MIT[ claude ]
🔓

AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…

// skillsGraphify-Labs/⟨Python⟩★ 123,800◷ MIT[ claude ]
→ see how cyclomatic-complexity-skill connects across the ecosystem