什么是 generate-barrels?
为 TypeScript 项目生成桶索引.ts 文件。当用户提到:(1) 桶文件、(2) index.ts 导出、(3) 重新导出文件、(4) 简化导入路径、(5) 为目录创建索引文件或 (6) 生成导出聚合器时使用。 来源:haibaraaiaptx/frontend-openapi-skills。
为 TypeScript 项目生成桶索引.ts 文件。当用户提到:(1) 桶文件、(2) index.ts 导出、(3) 重新导出文件、(4) 简化导入路径、(5) 为目录创建索引文件或 (6) 生成导出聚合器时使用。
通过命令行快速安装 generate-barrels AI 技能到你的开发环境
来源:haibaraaiaptx/frontend-openapi-skills。
Generate barrel index.ts files for TypeScript directories to simplify imports.
Note: Generation commands (model gen, aptx functions, react-query, vue-query) automatically update barrel files after generation. Use this command only for manual fixes or special cases.
| Normal generation | Barrel files are auto-updated - no action needed | | Fixing corrupted barrel files | Use this command | | Processing non-standard directory structures | Use this command | | One-time batch updates across multiple directories | Use this command |
为 TypeScript 项目生成桶索引.ts 文件。当用户提到:(1) 桶文件、(2) index.ts 导出、(3) 重新导出文件、(4) 简化导入路径、(5) 为目录创建索引文件或 (6) 生成导出聚合器时使用。 来源:haibaraaiaptx/frontend-openapi-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/haibaraaiaptx/frontend-openapi-skills --skill generate-barrelsBrowse more skills from haibaraaiaptx/frontend-openapi-skills
为 TypeScript 项目生成桶索引.ts 文件。当用户提到:(1) 桶文件、(2) index.ts 导出、(3) 重新导出文件、(4) 简化导入路径、(5) 为目录创建索引文件或 (6) 生成导出聚合器时使用。 来源:haibaraaiaptx/frontend-openapi-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/haibaraaiaptx/frontend-openapi-skills --skill generate-barrels 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/haibaraaiaptx/frontend-openapi-skills