From dbd4470b6d6bf5764d673d5425aee3f002e6626d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 19 Apr 2026 23:03:29 +0800 Subject: [PATCH] =?UTF-8?q?chore(aider):=20=E6=96=B0=E5=A2=9E=20.aiderigno?= =?UTF-8?q?re=20=E7=B8=AE=E5=B0=8F=20repo-map=20=E4=B8=A6=E9=96=8B?= =?UTF-8?q?=E6=94=BE=E8=BF=BD=E8=B9=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 大型 repo(1,165 檔)讓 Aider 啟動即吃 267K tokens。加入 .aiderignore 排除 docs/k8s/infra/ops/media 後,repo-map 從 1,165 → ~782 檔案(-33%)。 同步在 .gitignore 加 !.aiderignore 例外,讓本檔可被追蹤共享給團隊。 Co-Authored-By: Claude Opus 4.7 (1M context) --- .aiderignore | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 62 insertions(+) create mode 100644 .aiderignore diff --git a/.aiderignore b/.aiderignore new file mode 100644 index 00000000..7c1f2687 --- /dev/null +++ b/.aiderignore @@ -0,0 +1,60 @@ +# ===== AWOOOI .aiderignore ===== +# 目的:縮小 Aider repo-map(1,165 → ~678 檔),只保留 AI 常編輯的程式碼 +# 建立:2026-04-19 +# 可逆:刪除或註解任何一行即恢復;臨時需要可用 /add 繞過 + +# --- 二進位/媒體 --- +*.png +*.jpg +*.jpeg +*.gif +*.svg +*.ico +*.pdf +*.woff* +*.ttf +.playwright-mcp/ + +# --- Aider/IDE 快取 --- +.aider.chat.history.md +.aider.input.history +.aider.tags.cache.v4/ +.DS_Store + +# --- 文件類(244 檔 / 11MB,AI 很少動)--- +docs/adr/ +docs/meetings/ +docs/proposals/ +docs/runbooks/ +docs/screenshots/ +docs/superpowers/ +docs/LOGBOOK.md +architecture/ + +# --- 基礎設施(DevOps 時用 --subtree-only 或臨時拿掉)--- +k8s/ +infra/ +ops/ +scripts/backup/ +scripts/reboot-recovery/ + +# --- CI/CD 設定 --- +.gitea/ +.github/ +.turbo/ +.pytest_cache/ +.ruff_cache/ + +# --- Agents/Skills 描述文件 --- +.agents/ +.superpowers/ +.awoooi-agent-rules.md +GLOBAL_RULES.md +SOUL.md +capabilities.json + +# --- Lock files --- +package-lock.json +yarn.lock +pnpm-lock.yaml +*.snap diff --git a/.gitignore b/.gitignore index 9b6c6b12..d158b6e3 100644 --- a/.gitignore +++ b/.gitignore @@ -82,3 +82,5 @@ temp/ playwright-mcp/ tsconfig.tsbuildinfo .superpowers/ +.aider* +!.aiderignore