barrel-craft
CommunityAutomate barrel files, simplify imports.
Software Engineering#automation#developer tools#refactoring#TypeScript#code organization#imports#barrel files
Authormarcioaltoe
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the creation and maintenance of barrel files (index.ts/tsx), which consolidate exports from a directory. This simplifies import paths, reduces boilerplate, and keeps project structures clean and organized.
Core Features & Use Cases
- Automated Barrel Generation: Creates
index.ts/tsxfiles for specified directories, re-exporting modules. - Configurable Generation: Uses
barrel-craft.jsonto define targets, exclusions, and force-generation for complex structures (e.g., pages, services). - Clean Import Paths: Transforms deep imports like
from "./services/user/UserService"tofrom "./services". - Use Case: "Configure
barrel-craft.jsonto automatically generate barrel files for allsrc/features/*/componentsandsrc/servicesdirectories, excluding test files."
Quick Start
Initialize barrel-craft for your project and generate barrel files for the src directory, including subdirectories.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: barrel-craft Download link: https://github.com/marcioaltoe/claude-craftkit/archive/main.zip#barrel-craft Please download this .zip file, extract it, and install it in the .claude/skills/ directory.