cyclomatic-complexity plugin
Refactor code to reduce cyclomatic complexity. Measures per-function complexity, refactors hotspots worst-first, reports before/after numbers. Keeps AI-generated code maintainable for humans.
How to install the cyclomatic-complexity plugin
Run both commands inside Claude Code. The first adds the marketplace once; the second installs the plugin.
/plugin marketplace add saurabhkumar8112/cyclomatic-complexity-skill
/plugin install cyclomatic-complexity@cyclomatic-complexity-skillWhat's inside cyclomatic-complexity
1 part read from the plugin's own files.
Skills 1
Claude loads it when the task matches- cyclomatic-complexity
Refactor code to reduce cyclomatic complexity so it stays readable, maintainable, and aligned with the long-term vision of the codebase, not just optimized for AI comprehension. Use whenever the user asks to refactor, simplify, clean up, or review code quality; mentions complexity, maintainability, readability, spaghetti code, deeply nested logic, or god functions; or asks to check AI-generated code before merging. Also use proactively after writing any nontrivial function with heavy branching.
Using cyclomatic-complexity in Claude Code
Skills need no command. Claude reads them when your request matches what they describe.
Update, turn off or remove
- Update the plugin (shell)
- claude plugin update cyclomatic-complexity@cyclomatic-complexity-skill
- Refresh the marketplace
- /plugin marketplace update cyclomatic-complexity-skill
- Turn it off for now
- /plugin disable cyclomatic-complexity@cyclomatic-complexity-skill
- Remove it
- /plugin uninstall cyclomatic-complexity@cyclomatic-complexity-skill
Skills in cyclomatic-complexity
- cyclomatic-complexitysaurabhkumar8112/cyclomatic-complexity-skill
Refactor code to reduce cyclomatic complexity so it stays readable, maintainable, and aligned with the long-term vision of the codebase, not just optimized for AI comprehension. Use whenever the user asks to refactor, simplify, clean up, or review code quality; mentions complexity, maintainability, readability, spaghetti code, deeply nested logic, or god functions; or asks to check AI-generated code before merging. Also use proactively after writing any nontrivial function with heavy branching.
408stars
cyclomatic-complexity plugin questions
How do I install the cyclomatic-complexity plugin?
In Claude Code run /plugin marketplace add saurabhkumar8112/cyclomatic-complexity-skill, then /plugin install cyclomatic-complexity@cyclomatic-complexity-skill.
What does the cyclomatic-complexity plugin include?
cyclomatic-complexity bundles 1 skill.
How do I update or remove the cyclomatic-complexity plugin?
Update it with claude plugin update cyclomatic-complexity@cyclomatic-complexity-skill in your shell, or from the Installed tab of /plugin. Remove it with /plugin uninstall cyclomatic-complexity@cyclomatic-complexity-skill.