Dead code
Use this skill to detect and clean up dead code in this repo, starting with the project’s TypeScript dead-code scripts and validating that removals do not regress behavior.From its SKILL.md
npx -y skills add kaeawc/auto-mobile --skill dead-codeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.3 KB, as published. Nobody here has run it
Dead Code
Use this when the user wants dead-code analysis or cleanup.
Workflow
- Start with detection, not deletion.
- For TypeScript, run
bash scripts/detect-dead-code-ts.sh, optionally writing reports toscratch/dead-code/. - Review each candidate in full context before removing it. Unused exports in tooling output are often false positives.
- Check callers, tests, generated code, and dynamic entry points before deleting anything.
- Remove dead code in small batches so regressions are easy to isolate.
- Re-run the detector and the relevant validation after each batch.
Repo Rules
- Prefer repo scripts and
buntasks over ad hoc dead-code tools. - Treat
package.jsondependency findings as suggestions until confirmed. - Do not remove code referenced by reflection, CLI wiring, generated schemas, MCP registration, or platform build files without proof.
- Validate behavior after cleanup with the narrowest relevant commands.
Typical Validation
bun run lintbun run buildbun testbash scripts/validate-bun-test-timings.shwhen test changes may affect the 100ms expectation