forge-town/skills

forge_barrel-export-best-practice

Must follow when 编写或审查 index.ts/index.js 桶导出文件,确保所有导出遵循只做 re-export、无业务逻辑、命名导出等规范。

Installation

$ npx skills add forge-town/skills --skill forge_barrel-export-best-practice

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from forge-town/skills · top by installs.

npx skills add forge-town/skills

Browse all from forge-town/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 7
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 692 B
  • docs SUMMARY.md 195 B

History

  1. First recorded snapshot · 1 installs

SKILL.md

桶导出最佳实践 (Barrel Export Best Practice)

使用说明

  1. 阅读 [references/checklist.md](references/checklist.md) 获取完整检查清单(8 项规则)
  2. 对照清单逐项验证目标目录下所有 index.ts / index.js
  3. 参考 [references/standard.md](references/standard.md) 了解合规示例与反模式

配合工具: 需要自动检查/生成/修复时,使用 forge_check-barrel-export 技能执行操作