chore(aider): 新增 .aiderignore 縮小 repo-map 並開放追蹤

大型 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) <noreply@anthropic.com>
This commit is contained in:
Your Name
2026-04-19 23:03:29 +08:00
parent a837172fd5
commit dbd4470b6d
2 changed files with 62 additions and 0 deletions

60
.aiderignore Normal file
View File

@@ -0,0 +1,60 @@
# ===== AWOOOI .aiderignore =====
# 目的:縮小 Aider repo-map1,165 → ~678 檔),只保留 AI 常編輯的程式碼
# 建立2026-04-19
# 可逆:刪除或註解任何一行即恢復;臨時需要可用 /add <path> 繞過
# --- 二進位/媒體 ---
*.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 檔 / 11MBAI 很少動)---
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

2
.gitignore vendored
View File

@@ -82,3 +82,5 @@ temp/
playwright-mcp/
tsconfig.tsbuildinfo
.superpowers/
.aider*
!.aiderignore