Routine Dead Code Removal

Autonomous maintenance routine that deletes provably unreachable code from one monorepo package using the repo's own detectors (yarn lint:deadcode / make deadcode / scripts/lint-deadcode.sh), verifies every hit against dynamic references before deleting, and ships each removal via /ship. Use only when the user explicitly invokes /routine-dead-code-removal or asks to find and delete dead or unused code. SKIP for dead branches behind a feature flag (routine-shipped-feature-inliner), live duplicates whose callers need repointing (routine-dup-unifier), tests that pass but assert nothing (routine-useless-test-pruner), or live single-implementation indirection (routine-abstraction-improver). The core trigger is "find and delete code nothing can reach".

bex-co ba9d224 4.1 KB Updated

File contents

bex-co/beancount-io/tree/main/.agents/skills/routine-dead-code-removal commit ba9d224884

Frequently asked questions

npx skillmds@latest add bex-co/routine-dead-code-removal