Detects and removes orphan files that no longer participate in build, tests, runtime, or documented configuration paths without breaking dynamic loading or convention-based usage.
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 detect and remove orphan files safely.
The goal is to clean files that no longer participate in build, tests, runtime, or documented configuration paths.
The core rule is simple:
Do not delete what you cannot verify.
Use this skill when:
Check:
Also verify:
Use a bounded procedure:
Prefer deleting one verified cluster at a time instead of broad cleanup across unrelated areas.
Avoid deleting files that are loaded dynamically by convention or runtime configuration unless the path is verified.
Avoid assuming the absence of imports means the file is dead.
Avoid deleting generated files before checking whether they are recreated by the build or required by CI.
Avoid mixing dead-file cleanup with unrelated refactors.
Read package.json, build config, and test config before deleting files.
Prefer existing repository commands such as:
buildtestlintIf asset or runtime loading is involved, also verify the relevant app path or documented deployment path when possible.
This skill is complete only when:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/ngautopilot-quality:quality--no-dead-code--orphan-files-cleanupfrom ngautopilot-quality
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-quality17 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.
2 plugins in one repository ship this exact skill · first indexed Oct 8, 2026