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-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 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-deadcode-sonar:quality--no-dead-code--orphan-files-cleanupfrom ngautopilot-quality-deadcode-sonar
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-quality-deadcode-sonar8 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-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.
/quality--no-dead-code--unused-exports-cleanupUnused Exports CleanupRemoves unused public exports from JavaScript and TypeScript code while preserving public API contracts, barrel behavior, and cross-package compatibility.
2 plugins in one repository ship this exact skill · first indexed Oct 8, 2026