bundle-weightlisted
Install: claude install-skill Starr-del/deploy-preflight
# bundle-weight
Part of **deploy-preflight** — offline deploy-safety skills. Every script is stdlib-only Python 3.8+; nothing leaves the machine.
```bash
python3 scripts/audit_weight.py <project_root> [--json]
```
Three checks against curated tables:
- **HEAVY_DEP** — packages with well-known lighter or native replacements (moment → date-fns/Intl, axios → fetch, uuid → crypto.randomUUID, dotenv → platform-native env, deprecated `request`...).
- **DUPLICATE_PURPOSE** — two+ libraries doing the same job (HTTP clients, date libs, state managers, validators, CSS-in-JS). Each ships in full.
- **MISPLACED_TYPES** — @types/*, typescript, eslint etc. in `dependencies` instead of `devDependencies`, slowing production installs.
Interpretation guidance: these are review prompts, not mandates. A flagged dep that the project uses deeply (e.g. rxjs with heavy operator use, axios with interceptors) is a legitimate keep — confirm usage before recommending removal, and prefer suggesting the migration only when the usage is shallow.
Exit codes: 0 clean, 1 findings.
All paths below are relative to this skill's directory (bundle-weight/).