Skill / SKILL.md

Complexity Reduction

rustyrazorblade/skills

Measure cognitive complexity and duplicate code with PMD (Java) or rust-code-analysis-cli (Rust), then reduce both by pure-move extraction, re-measuring after every step. Runs over a subsystem or over a PR diff. Use this when the user asks to simplify, refactor, clean up, or reduce the complexity of a subsystem, asks "how complex is X", asks to find duplicate code, asks to make code "beautiful", or asks for a complexity check on a diff or PR. It measures before it edits and re-measures after; it never accepts an unmeasured claim that a change helped. It reports only, unless the user passes `--refactor`. It is not `/simplify`, which reads the current diff and has no metric.
3 views 45 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Measure cognitive complexity and duplicate code with PMD (Java) or rust-code-analysis-cli (Rust), then reduce both by pure-move extraction, re-measuring after every step. Runs over a subsystem or over a PR diff. Use this when the user asks to simplify, refactor, clean up, or reduce the complexity of a subsystem, asks "how complex is X", asks to find duplicate code, asks to make code "beautiful", or asks for a complexity check on a diff or PR. It measures before it edits and re-measures after; it never accepts an unmeasured claim that a change helped. It reports only, unless the user passes `--refactor`. It is not `/simplify`, which reads the current diff and has no metric.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/rustyrazorblade/skills' skill-source

Use the complete skill-source/plugins/dev-skills/skills/complexity-reduction directory with your client’s skill installer.

  • plugins/dev-skills/skills/complexity-reduction

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/dev-skills/skills/complexity-reduction

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
bb9f17d112c552618e6e7e9c7e50917b2890a48d3ef7de1877a4d4e7243cd225
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills