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:
60
.aiderignore
Normal file
60
.aiderignore
Normal file
@@ -0,0 +1,60 @@
|
||||
# ===== AWOOOI .aiderignore =====
|
||||
# 目的:縮小 Aider repo-map(1,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 檔 / 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
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -82,3 +82,5 @@ temp/
|
||||
playwright-mcp/
|
||||
tsconfig.tsbuildinfo
|
||||
.superpowers/
|
||||
.aider*
|
||||
!.aiderignore
|
||||
|
||||
Reference in New Issue
Block a user