rot

Solid

Find dead, stale, and deprecated code left behind — rung 4, ALONE. Use when the user says "procoder rot", "find dead code", "what can I delete", "unused exports", "stale code", "deprecated code", "unused dependencies", "what's rotting in here", or invokes /procoder:rot. Reports deletions with reachability evidence; never deletes.

Code & Development 202 stars 15 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 84/100

Stars 20%
77
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# procoder:rot A change isn't done until the thing it replaced is gone. This skill finds what previous changes left behind. ## Procedure **Step 0 — run the engine.** `node <plugin>/bin/procoder.js check <scope>`. Its `alone/*` rules (`commented-code`, `deprecated-no-trigger`, `orphan-todo`, <!-- procoder: literal alone/deprecated-no-trigger the doctrine names this pattern, it is not an instance of it --> `debug-leftover`, `blanket-suppression`, `unexplained-suppression`) are deterministic. Report them as-is. Never re-derive them by reading files, and never drop one because it looks minor. Everything below is judgment the engine cannot compute. Then one pass per category. Each row names the search that finds candidates. | # | Category | How to find candidates | |---|---|---| | 1 | **Dead exports** | List exported symbols (`git grep -nE '^export (const\|function\|class\|type)'`, `pub fn`, `public static`, `__all__`, …). For each: `git grep -nw "<symbol>"`. Zero hits outside the definition file = candidate. | | 2 | **Commented-out code** | From the engine's `alone/commented-code` findings. Do not re-scan by hand. | | 3 | **Settled feature flags** | Find flag reads (`git grep -nE 'featureFlag\|isEnabled\|FLAG_\|LaunchDarkly\|unleash'`). For each flag: `git log -S "<flag>" --oneline` — if its value hasn't moved in a release, it is settled. The dead branch goes. | | 4 | **Deprecations with no removal trigger** | Engine's `alone/deprecated-no-trigger`. Add age: `git log -1 --f...

Details

Author
azrtydxb
Repository
azrtydxb/procoder
Created
3 weeks ago
Last Updated
today
Language
Go
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category