no-barrel-index

Community

Enforce explicit imports to improve code clarity and maintainability.

Authorholblin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers adhere to best practices by preventing the use of barrel-only index.ts/index.tsx re-export files, reducing ambiguity in module imports.

Core Features & Use Cases

  • Rule Enforcement: Detects and prevents creation of barrel files that re-export modules, encouraging direct imports.
  • Migration Assistance: Guides developers to update import statements to specific file paths, improving code clarity.
  • Use Case: In a large codebase, transitioning from re-exports via barrel files to direct imports enhances modularity and ease of debugging.

Quick Start

Find all barrel files in your project and update import statements to use specific module paths for better clarity and maintainability.

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: no-barrel-index
Download link: https://github.com/holblin/webapp-template/archive/main.zip#no-barrel-index

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 471,000+ vetted skills library on demand.