Knip Until Clean
Automation
by loops! by elorm
Find and remove dead exports, unused files, and orphan dependencies — loop until knip reports clean.
Prompt
Step 1 — Run knip Run knip (or depcheck) and categorize unused files, exports, and dependencies. Check: `npx knip` Step 2 — Remove or justify Delete confirmed dead code. For false positives, add knip ignore entries with a one-line reason. Step 3 — Repeat until done Repeat the steps above until: Knip reports no unused files, exports, or dependencies Check with: `npx knip` Stop after 5 iterations and report what is blocking.
Use this prompt in AIniverse
Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.
Open in AppMore Automation prompts
Security Audit Weekly
Weekly npm audit scan, triage vulnerabilities by severity, and propose or apply safe patches.
Ship PR Until Green
Implement on a branch, run tests, push, open a PR, wait for CI, and loop until checks pass and the PR is ready to merge.
Ralph Story Executor
Fresh-context loop: pick one incomplete story from prd.json, implement it, run backpressure checks, commit, and updat...
Dependency Upgrade One-by-One
Upgrade a single outdated package per iteration, fix breakages, and commit — safer than bulk npm update.