barrel-export-manager

barrel-export-manager is a skill for Claude Code from smicolon/ai-kit. It costs 58 tokens per session (2,466 once invoked), scanned A, original, MIT.

A NestJS helper that maintains index.ts files that re-export files from module folders, so code can be imported from a folder entry point.

In plain words
What is it for?
Use it while organizing NestJS modules and their entities, DTOs, services, controllers, guards, and decorators.
Why use it?
It keeps exports up to date when entities, data-transfer objects, services, controllers, or other module files are added.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the nestjs plugin — 3 skills shipped together

Good fit Use it while organizing NestJS modules and their entities, DTOs, services, controllers, guards, and decorators.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smicolon/ai-kit/barrel-export-manager
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add smicolon/ai-kit --skill barrel-export-manager
Clone the repo
git clone --depth 1 https://github.com/smicolon/ai-kit

Made for: Claude Code.

Or install nestjs, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for barrel-export-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/smicolon/ai-kit/barrel-export-manager/github.svg)](https://agentmods.dev/skills/smicolon/ai-kit/barrel-export-manager)
Your own site
<a href="https://agentmods.dev/skills/smicolon/ai-kit/barrel-export-manager"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/barrel-export-manager/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for barrel-export-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/smicolon/ai-kit/barrel-export-manager"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/barrel-export-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,466 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.02466
Opus 5.5 $0.00023 $0.00986
Sonnet 5.5 $0.00012 $0.00493
Haiku 4.5 $0.00006 $0.00247

Measured 1mo ago against content hash 88f77560cdfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

barrel-export-manager scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packs/nestjs/skills/barrel-export-manager/SKILL.md · 419 lines

How it starts

The opening of the file, as written. The whole thing — 419 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Barrel Export Manager

Auto-creates and maintains index.ts barrel export files in NestJS modules for clean, maintainable imports.

Activation Triggers

This skill activates when:

  • Creating new entity, DTO, service, controller, guard, decorator
  • Adding files to module directories
  • Organizing NestJS module structure
  • Mentioning "NestJS", "module", "create"
  • Importing from module directories

Required Pattern (MANDATORY)

Every NestJS module folder MUST have index.ts barrel exports:

users/
├── entities/
│   ├── user.entity.ts
│   ├── profile.entity.ts
│   └── index.ts          # ✅ Barrel export
├── dto/
│   ├── create-user.dto.ts
│   ├── update-user.dto.ts
│   └── index.ts          # ✅ Barrel export
├── services/
│   ├── users.service.ts
│   └── index.ts          # ✅ Barrel export
└── controllers/
    ├── users.controller.ts
    └── index.ts          # ✅ Barrel export

Auto-Management Process

Step 1: Detect New File

When user creates:

// users/entities/user.entity.ts
@Entity('users')
export class User {
  @PrimaryGeneratedColumn('uuid')
  id: string
  // ...
}

Step 2: Auto-Create/Update index.ts

Automatically create or update users/entities/index.ts:

// users/entities/index.ts
export * from './user.entity'
export * from './profile.entity'

Step 3: Verify Imports Use Barrel

Ensure other files import from barrel:

// ✅ CORRECT - Import from barrel
import { User, Profile } from 'src/users/entities'

// ❌ WRONG - Import from specific file
import { User } from 'src/users/entities/user.entity'

Step 4: Update on File Changes

When files are added/removed/renamed, automatically update the barrel export:

// User adds: organization.entity.ts
// Automatically update index.ts:
export * from './user.entity'
export * from './profile.entity'
export * from './organization.entity'  // ✅ Added automatically

Barrel Export Patterns

Entities Directory

// users/entities/index.ts
export * from './user.entity'
export * from './profile.entity'
export * from './organization.entity'

// Usage
import { User, Profile, Organization } from 'src/users/entities'

Read the full file on GitHub · 419 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +29 lines 88f77560cdfd
  2. 1mo ago First seen · 390 lines · 58 tokens per session scan A 506b139d76d6

Subscribe to this mod's changes

barrel-export-manager is a skill published in the GitHub repository smicolon/ai-kit (6 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 2,466 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.