Install
$ agentstack add skill-rakibulism-agent-skills-os-de8-bundling ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Advanced Bundling Architecture
Vite is the default for creative sites (Rollup underneath for builds); raw Rollup for libraries; Webpack only under legacy constraints.
Tree-Shaking three.js Correctly
- Named imports from the package root:
import { WebGLRenderer, Scene } from 'three'— modern three is side-effect-free and shakes well. - Watch the add-ons:
three/examples/jsm/*and drei can pull in far more than expected (controls dragging in whole subsystems). Verify with the analyzer, never assumptions. - Import drei components individually where the toolchain benefits; audit what each convenience import costs.
Code Splitting Strategy
- Route-level splits by default (framework handles it).
- Experience-level split — the important one: the entire WebGL experience (three, scene code, physics, assets) in its own dynamic
import()chunk, loaded on approach per de7-resource-budgets. It must never sit in the critical path (LCP/INP — de7-core-web-vitals). manualChunks(Rollup) pins heavy stable vendors (three, animation libs) into long-cache chunks separate from weekly-changing app code — returning visitors re-download only the small app chunk:
manualChunks: { three: ['three'], vendor: ['react', 'react-dom'] }
Asset Handling
- Hashed filenames + immutable caching:
Cache-Control: public, max-age=31536000, immutablefor all static assets; HTML itself short/no-cache (the HTML references new hashes — that's the whole invalidation model). ?urlimports for GLB/KTX2/HDR so binaries enter the hashed pipeline.- Build-time raster optimization (sharp/vite-plugin based) and SVGO for SVGs.
- Brotli (+gzip fallback): precompress at build (
vite-plugin-compression) if the host doesn't compress at the edge (de8-edge-deployment).
Targets
Modern browsers only (build.target: 'esnext' or baseline-widely-available) — don't pay transpilation and polyfill tax for browsers that can't run WebGL2 anyway.
Analyze Every Release — non-negotiable
rollup-plugin-visualizer / vite-bundle-visualizer: the treemap must be boring. A surprise 300kb dependency is a build failure, not a shrug. Wire byte budgets into CI with size-limit (de8-cicd) so the treemap review has teeth:
[{ "path": "dist/assets/index-*.js", "limit": "200 kb" },
{ "path": "dist/assets/three-*.js", "limit": "160 kb" }]
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: rakibulism
- Source: rakibulism/agent-skills-os
- License: MIT
- Homepage: https://agent-skills-os.vercel.app
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.