bundle-libslisted
Install: claude install-skill Nioris/project-forge
# Bundle Libs — Download CDN Dependencies к Local
## Why this exists
Yandex Games sandbox blocks external HTTP requests during gameplay. Any `<script src="https://cdn..."` или ES `import 'https://...'` makes game **fail moderation** (REQ-2.1 sandbox compliance).
Common offenders:
- Three.js / Babylon.js loaded from CDN
- Phaser / Pixi.js / Howler / Tone.js from cdnjs/unpkg/jsdelivr
- Google Fonts via `<link href="https://fonts.googleapis.com...">`
- Tailwind via cdn.tailwindcss.com
- Skypack/esm.sh module imports
This skill **auto-downloads** все они в `assets/lib/` и **replaces refs** в HTML/JS с local paths.
## When к use
**Before Yandex submission** (every time external CDN ref present). Trigger automatic via:
- `$release-ready yandex` — теперь проверяет external CDN refs (release blocker)
- `$mvp-to-yandex` — Phase 4 build step
- Manual: `node scripts/check-external-cdn.mjs <build-dir>` returns violations → `$bundle-libs`
## Don't use when
- ❌ Project deploys к Steam/web хостинг (external CDN OK there)
- ❌ Reference is **runtime** API fetch (`fetch('https://api.example.com/scores')`), не script load — those need different solution (Yandex SDK proxy или cors-anywhere)
## Process
### Step 1 — Scan for violations
```bash
node scripts/check-external-cdn.mjs WorkProgress/{Project}-yandex/
```
Output: violations table с file:line + URL для each external ref. Save list.
### Step 2 — Per violation, decide approach
| Type | Approach |
|---|---|
| Library (.js minifie