avoid-barrel-file-imports

Community

Optimize package imports

Authorihj04982
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the performance degradation caused by importing entire libraries through barrel files, which can lead to significant increases in bundle size and slower application load times.

Core Features & Use Cases

  • Direct Imports: Replaces barrel file imports with direct imports from individual module files.
  • Performance Improvement: Significantly reduces initial load times, build times, and cold start performance.
  • Use Case: Refactor a project to import specific components like Button and TextField directly from @mui/material/Button and @mui/material/TextField instead of @mui/material.

Quick Start

Refactor the imports in the current project to use direct imports from source files instead of barrel files.

Dependency Matrix

Required Modules

None required

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: avoid-barrel-file-imports
Download link: https://github.com/ihj04982/my-cursor-settings/archive/main.zip#avoid-barrel-file-imports

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.