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. 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
17 skills in this plugin
/quality--eslint--eslint-autofix-safe-cleanupESLint Autofix Safe CleanupApplies ESLint autofix only when the fixes are mechanical and safe, keeping the change small, reviewable, and separated from semantic refactors.
/quality--eslint--eslint-autofix-safe-cleanup-browser-v18ESLint Autofix Safe Cleanup Browser v18+Applies safe ESLint autofix cleanup in browser-oriented projects where mechanical fixes must preserve UI behavior, build output, and user-facing runtime contracts.
/quality--eslint--eslint-autofix-safe-cleanup-node-v20ESLint Autofix Safe Cleanup Node v20+Applies safe ESLint autofix cleanup in Node.js 20+ projects where mechanical fixes must preserve process behavior, script output, and service contracts.
/quality--eslint--eslint-baseline-hardeningESLint Baseline HardeningRaises ESLint quality in bounded steps by reviewing current rules, warnings, TypeScript and framework-specific checks, and CI integration without turning the repo into a massive lint refactor.
/quality--eslint--eslint-baseline-hardening-monorepoESLint Baseline Hardening MonorepoRaises ESLint quality in monorepo workspaces by reviewing project-specific overrides, shared config, workspace-wide CI enforcement, and safe phased hardening.
/quality--eslint--eslint-disable-governanceESLint Disable GovernanceGoverns eslint-disable usage by classifying justified versus unjustified suppressions, requiring technical justification, and cleaning up unnecessary rule disables without changing behavior.
/ngautopilot-quality:quality--sonarqube--sonarqube-duplication-coverage-hardeningfrom ngautopilot-quality
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-quality2 plugins in one repository ship this exact skill · first indexed Oct 8, 2026