Guides pragmatic reduction of SonarQube duplication and coverage gaps by removing real duplication, raising meaningful coverage, and avoiding unnecessary abstractions. Useful when duplication is high or coverage is low.
Ships in ngautopilot-quality-deadcode-sonar. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to improve duplication and coverage pragmatically.
The goal is to remove real duplication and raise meaningful coverage without creating bad abstractions or cosmetic tests.
The core rule is simple:
Fix real duplication and meaningful coverage gaps first.
Use this skill when:
Distinguish:
Raise coverage where branches and contracts matter.
Turn each meaningful gap into an observable regression: state the behavior, the input that could break it, and the assertion that would fail. For async searches, cover normalization, the debounce boundary and reset, duplicate suppression, stale responses, teardown, and a successful request after an error fallback.
Keep line/branch coverage separate from behavioral evidence. A suite can execute both requests without detecting that an obsolete response overwrites the current result. Use assertions that distinguish the incorrect implementation, not extra executions added only to move the coverage percentage.
When mutation testing is already configured, report generated, killed, surviving, and untested mutants from its actual output. Inspect the installed Stryker version and enabled mutators before claiming a transformation is generated. Replacing switchMap with mergeMap is a useful manual counterexample, not a guaranteed automatic Stryker mutation. Do not install mutation tooling or invent scores merely to complete a coverage fix.
Avoid abstractions that are worse than the duplication.
Avoid coverage-only tests that do not assert behavior.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
8 skills in this plugin
/quality--no-dead-code--dead-branches-cleanupDead Branches CleanupRemoves unreachable or obsolete logic branches caused by legacy flags, impossible conditions, or retired compatibility paths while preserving intentional behavior.
/quality--no-dead-code--orphan-files-cleanupOrphan Files CleanupDetects and removes orphan files that no longer participate in build, tests, runtime, or documented configuration paths without breaking dynamic loading or convention-based usage.
/quality--no-dead-code--orphan-files-cleanup-monorepoOrphan Files Cleanup MonorepoDetects and removes orphan files in monorepo workspaces by checking project graphs, build targets, tests, dynamic loaders, and runtime conventions before deleting anything.
/ngautopilot-quality-deadcode-sonar:quality--sonarqube--sonarqube-duplication-coverage-hardeningfrom ngautopilot-quality-deadcode-sonar
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-quality-deadcode-sonar2 plugins in one repository ship this exact skill · first indexed Oct 8, 2026