Skip to main content
plugin

complexity-reducer — Claude Code plugin: what it does, how to install

complexity-reducer — a Claude Code plugin that lowers cyclomatic complexity and simplifies functions. Handy when a handler has grown too many branches.

Apache-2.0 ★ 2,858 updated 2026-05-12

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add rohitg00/awesome-claude-code-toolkit
/plugin install complexity-reducer@claude-code-toolkit
Open on GitHub

What complexity-reducer does

A Claude Code plugin with one stated job: bring down cyclomatic complexity and make functions simpler. A function whose conditions have piled up gets rewritten into something plainer to read.

Install runs through the marketplace in two steps: /plugin marketplace add rohitg00/awesome-claude-code-toolkit, then /plugin install complexity-reducer@claude-code-toolkit.

Scope stays at the function level — anything above that falls outside it, so do not count on module-level cleanup from this one.

What it helps with

  • split a function with a long if chain into readable branches
  • flatten nested conditions inside a request handler
  • lower cyclomatic complexity before review
  • rewrite a tangled function into plain code

Example prompts for the agent

  • Simplify parseOrder — it branches too much.
  • Bring down the cyclomatic complexity of handleResponse.
  • Rewrite this function with fewer nested if blocks.

How to install complexity-reducer

Plugin marketplace

/plugin marketplace add rohitg00/awesome-claude-code-toolkit
/plugin install complexity-reducer@claude-code-toolkit

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about complexity-reducer

How do I install complexity-reducer in Claude Code?

From the marketplace, both commands in order: /plugin marketplace add rohitg00/awesome-claude-code-toolkit, then /plugin install complexity-reducer@claude-code-toolkit.

What does complexity-reducer do?

It reduces cyclomatic complexity and simplifies functions.

Which repository ships the plugin?

rohitg00/awesome-claude-code-toolkit, under Apache-2.0.

Source text

complexity-reducer · Apache-2.0
Reduce cyclomatic complexity and simplify functions

© rohitg00 · Apache-2.0 · rohitg00/awesome-claude-code-toolkit

Similar plugins

All plugins for Code review and refactoring →

From the same set178

The whole set →

Project sponsors

Companies that keep this analytics open