什麼是 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