trimming-bundle
OfficialReduce bundle size by removing unused code paths efficiently.
AuthorSocketDev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers identify and eliminate unused code in their bundled JavaScript files, optimizing performance and reducing package size.
Core Features & Use Cases
- Unused Code Detection: Analyzes built bundles to find code paths that are loaded but never executed.
- Iterative Stubbing: Replaces heavy or dead modules with stub implementations to streamline the bundle.
- Use Case: When releasing an npm package, reduce its size by removing large, unused dependencies and code paths, ensuring faster load times.
Quick Start
Use the trimming-bundle skill after building your project to analyze dist/ and iteratively stub unused modules, then rebuild and test to verify improvements.
Dependency Matrix
Required Modules
nodepnpm
Components
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: trimming-bundle Download link: https://github.com/SocketDev/socket-sdk-js/archive/main.zip#trimming-bundle Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.