用 Claude Code 跑 Agent Team 一段時間後,你可能會發現:明明設定都正確,Claude 還是會跑來問奇怪的問題、用錯 model、或在不該停的地方停下來。這篇文章整理了 Superpowers plugin 裡幾條「你不一定知道」的隱藏規則,以及最簡單的避開方法。
為什麼 Agent Team 會「自己做決定」?
Claude Code 的 Superpowers plugin 提供了一套 skill 系統,讓 Claude 在執行任務時有明確的工作流程可依循。這些 skill 設計上是給通用場景用的,因此內建了一些「省成本、保安全」的預設行為。
問題是:這些預設行為有時候和你的需求相衝突,而且你很難從文件上看出來。
隱藏規則 1:Skill 會自動選最便宜的 Model
來源:subagent-driven-development skill
這條規則直接寫在 skill 裡:
“Use the least powerful model that can handle each role to conserve cost and increase speed. Mechanical implementation tasks: use a fast, cheap model.”
所有 skill 都有這條規則:“Never start implementation on main/master without explicit user consent.” 只要你的 working branch 叫 main 或 master,Claude 每次開始實作前都會停下來問你確認。
這代表你告訴 LEAD「不要動 X 檔案」、「記得用 Y 方式」,subagent 不一定會知道,除非 LEAD 把這些資訊包進去。
避開方法:把規則寫進文件,不要只說給 LEAD 聽
任何重要的約定,放進 AGENTS.md、CLAUDE.md 或 IMPLEMENTATION_PLAN.md。這些檔案 subagent 啟動時會讀到,不依賴 LEAD 的記憶。
隱藏規則 4:Feedback Survey 會擋住畫面
Claude Code 會隨機彈出「How is Claude doing this session?」的評分畫面。這個畫面不是 blocking prompt,按 Enter 沒有用,要按 0 才能 dismiss。
更乾脆的做法是直接關閉它。在 ~/.claude/settings.json 加一行:
{
"feedbackSurveyRate": 0
}
設為 0 後,這個 survey 就永遠不會出現了。
完整 CLAUDE.md 覆寫規則範本
把以下內容加進你的 CLAUDE.md,可以覆寫 skill 的預設行為:
## Superpowers Skill Override Rules
### Model Selection (OVERRIDES subagent-driven-development skill)
NEVER use haiku for implementation tasks. Follow this mapping regardless
of what the skill says about "mechanical" tasks:
- opus: architecture decisions, code review, cross-file reasoning
- sonnet: all implementation tasks (CRUD, API, forms, tests, services)
- haiku: file scanning, directory listing, config comparison ONLY
When dispatching subagents, ALWAYS check AGENTS.md for the assigned model.
If AGENTS.md specifies a model, use it. Do not override with cheaper model.
### Git Branch
Never ask for branch confirmation if already on a non-main/master branch.
Treat any branch that is not named "main" or "master" as pre-approved for
implementation work.
一次性設定清單
以下是只需要做一次的設定,之後每個專案都受益:
設定
位置
效果
"feedbackSurveyRate": 0
~/.claude/settings.json
永久關閉 feedback survey
"defaultMode": "bypassPermissions"
~/.claude/settings.json
工具不再逐一詢問確認
Model 覆寫規則
~/.claude/CLAUDE.md
強制 sonnet 做實作工作
以下是每個新專案開始時的習慣:
git checkout -b dev(避開 main/master 保護規則)
建立 AGENTS.md 並寫好每個 agent 的 model
在 IMPLEMENTATION_PLAN.md 每個 phase 標記 model
為什麼這些規則存在?
這些 skill 是為「通用場景」設計的,預設行為是合理的:
省成本: 對大多數用戶來說,Haiku 做簡單任務確實夠用,費用少一半
保安全: 不讓 Claude 在 main branch 亂動是好習慣
隔離 context: Fresh subagent 避免舊 context 污染新任務
問題不是規則本身,而是當你的專案比「通用場景」複雜時,這些預設值就不夠精準了。透過明確的文件(AGENTS.md、CLAUDE.md)和一次性的 settings.json 設定,你可以讓 Claude 按照你的規格工作,而不是照 skill 的預設值工作。
今日的科技圈展現了從底層硬體到頂層商業應用的劇烈變動。我們不僅看到 Arm 與 Google 在 AI 效能優化上的突破,更目睹了 Apple 正式向企業服務市場發起總攻。這是一個「優化」與「深化」並行的時代,對於開發者與創業者來說,如何兼顧安全性與實戰經驗將是未來的核心競爭力。✨
🤖 AI / 機器學習
TurboQuant:以極限壓縮重新定義 AI 效率
Google Research 推出了名為 TurboQuant 的新技術,旨在解決大型語言模型(LLM)推論時的記憶體與運算瓶頸。透過極致的量化壓縮技術,TurboQuant 能顯著降低模型體積而不犧牲精準度,這對於在邊緣裝置上運行高效能 AI 至關重要。這項研究為未來更普及、更廉價的 AI 應用鋪平了道路。🚀
# 檔案位置
~/your-project/CLAUDE.md
# Claude 行為
claude
├─ 讀取 CLAUDE.md
├─ 記住所有規則
├─ 每次你輸入 prompt 時遵守
└─ 不再需要你重複告訴它
類比:
傳統方式 = 每次進公司都告訴員工「要穿正式服裝」
CLAUDE.md 方式 = 第一天讀 dress code,以後自動遵守
一人公司應該在 CLAUDE.md 裡寫什麼
第一層:基本信息(不改的東西)
# Project: Taiwan Invoice System
**Stack**: React 18 + Node.js 18 + PostgreSQL
**Language**: TypeScript (strict mode)
**Main concern**: Taiwan tax law compliance
---
## Architecture Decision Log
### Decision 1: Use Strategy Pattern for tax calculation
**Why**: Taiwan tax law changes frequently (new government = new rates)
**Impact**: New tax type can be added in 30 min, not 8 hours
**Done**: ✅
### Decision 2: Keep invoice data immutable once submitted
**Why**: Taiwan tax audit requires unmodifiable records
**Impact**: No delete/edit after submit, only void new ones
**Done**: ✅
好處:
6 個月後你自己看,能快速想起設計邏輯
新人(或外包)接手,有據可查
Claude 理解你的業務優先級
第二層:代碼標準(重複最多的東西)
## Code Standards
### File Structure
```
src/
├── components/ # React components
├── pages/ # Page-level components
├── services/ # API calls & business logic
├── utils/ # Helpers
├── hooks/ # Custom React hooks
├── styles/ # CSS modules
└── __tests__/ # Test files (mirror structure)
```
### Naming Conventions
- Components: PascalCase (e.g., InvoiceForm.tsx)
- Utilities: camelCase (e.g., calculateTax.ts)
- Constants: UPPER_SNAKE_CASE (e.g., MAX_INVOICE_AMOUNT)
- Database tables: snake_case (e.g., c_invoice)
### Code Quality Rules
**MUST HAVE**:
- [ ] TypeScript (no `any` type)
- [ ] Unit tests for all logic (TDD)
- [ ] JSDoc for public functions
- [ ] Error handling (no silent failures)
**NEVER**:
- ❌ Hardcode config values (use .env)
- ❌ Leave console.log() in production code
- ❌ Commit commented-out code
- ❌ Use var (only let/const)
為什麼重要:
Claude 有了標準,自動遵守
省去每個 prompt 都要說「按 TypeScript best practices」
代碼風格一致,review 更快
第三層:業務邏輯(最容易被遺忘的)
## Taiwan-Specific Rules
### Tax Calculation
- Standard VAT: 5% (applies to most goods)
- Zero-rated: 0% (exports, specific items)
- Tax-exempt: 0% (non-profit, some services)
- Input tax can be deducted if invoice dated in same month
### Invoice Rules
- Invoice number format: GUN (Government Uniform Number)
- Sequence must be continuous
- Cannot be modified after submission
- Must include buyer's company ID + name
- QR code is mandatory for official submission
### Compliance
- Must report to MOPS (Ministry system) by 15th of next month
- Annual audit by tax bureau
- Keep records for 10 years
為什麼重要:
Claude 有了背景,不會犯「常見的 bug」
減少審查時需要找的問題
新人學習曲線 ÷ 2
第四層:技術決策(省掉最多討論時間)
## When You Ask Claude to Build Something
### Before Implementation (Planning Phase)
1. Claude enters Plan Mode automatically
2. Claude reads this CLAUDE.md + design docs
3. Claude proposes approach
4. **YOU APPROVE** (or suggest changes)
5. Claude implements
### Testing Strategy
- Unit tests: Must cover edge cases
- Integration tests: For API + database interaction
- Manual testing: Only for UI/UX
- Coverage target: > 85%
### Code Review Checklist
- [ ] Logic is correct (test passes)
- [ ] Taiwan business rules followed
- [ ] No security holes
- [ ] Performance acceptable
- [ ] Error messages are clear (in Chinese)
- [ ] Documentation updated
為什麼重要:
Claude 知道你的評審標準
自動寫出符合預期的代碼
不用反覆改
一人公司版本的 CLAUDE.md 精簡版
如果你覺得上面太複雜,這是最小版本(30 分鐘可寫完):
# Taiwan Invoice System
## Stack & Language
- TypeScript + React 18 + Node.js
- Database: PostgreSQL
## Code Rules
- File structure: components/ pages/ services/ __tests__/
- Names: Components = PascalCase, functions = camelCase, constants = UPPER_CASE
- MUST: TypeScript strict, unit tests, JSDoc, error handling
- NEVER: console.log, hardcoded config, var, no tests
## Business Rules
- Tax rates: 5% standard, 0% zero-rated, 0% exempt
- Invoice format: GUN, continuous sequence, immutable after submit
- Compliance: Report to MOPS by 15th, keep records 10 years
## When You Ask Me to Build
1. I'll enter Plan Mode
2. Read design doc + this file
3. Propose approach (you approve)
4. Implement with tests
5. You review
## Important Decisions
1. Tax calculation uses Strategy Pattern (easy to add new rates)
2. Invoices immutable after submit (Taiwan law requirement)
---
Done! Keep this updated as rules change.
寫這個花了多少時間? 30-45 分鐘。
省了多少時間? 每週 3-5 小時(因為不用重複解釋)。
真實案例:有沒有 CLAUDE.md 的差別
沒有 CLAUDE.md 的一人公司
Day 1, Prompt:
"Build invoice form with validation.
Use React, TypeScript, follow best practices."
Claude builds... but:
- Uses var instead of const ❌
- Only 60% test coverage ❌
- API call has no error handling ❌
- Component name is lowercase ❌
You: "Oh no, 改了改了改了"
時間消耗:8 小時 (1 小時寫 + 7 小時改)
有 CLAUDE.md 的一人公司
Day 1, CLAUDE.md 寫好,然後 Prompt:
"Build invoice form with validation"
Claude builds:
- Automatically uses let/const ✅
- Automatically writes unit tests ✅
- Automatically adds error handling ✅
- Automatically uses PascalCase ✅
You: "一次到位!"
時間消耗:2.5 小時 (30 分鐘規劃 + 2 小時實施)