原則:subagents 用來處理 noisy research,不用來 unchecked publishing
Claude Code subagents 是 specialized assistants,擁有自己的 context、prompts、tool access 和 permissions。Anthropic docs 說明,當 side task 會讓 main conversation 被 search results、logs 或 file contents 淹沒時,subagents 很有用。GEO research 正是這種工作:prompt snapshots、competitor mentions、entity facts、crawler checks 和 source evidence 都可能讓主線對話爆量。
用 subagents 做 research。把 final decisions 留在 main conversation。
圖說:Research 可以分工;publishing 和 final decisions 仍要留在主線對話裡。
四種能幫助 GEO 的 subagents
| Subagent | 工作 | Output |
|---|---|---|
| SERP researcher | 檢查 search results 和 query intent | Query map 和 competitor patterns |
| AI answer auditor | 在 AI surfaces 或 API snapshots 測 prompt library | Mention/citation gaps |
| Entity fact checker | 比對 About page、schema、profiles 和 public facts | Entity consistency report |
| Technical eligibility reviewer | 檢查 robots、sitemap、canonicals、schema、rendering | Technical risk list |
不要建立一個包辦所有事的「SEO agent」。重點是 separation。
Prompt Claude Code 建立 subagents
I want to use Claude Code subagents for GEO research.
Create proposed subagent definitions before writing files.
For each subagent, include:
- name
- description
- system prompt
- allowed tools
- denied actions
- expected report format
- when the main conversation should call it
The subagents must not publish, deploy, change pricing/legal claims, or edit production content without main-thread approval.
Example subagent instruction
Name: geo-citation-auditor
Purpose: Check whether target prompts mention, cite, or ignore our brand.
Rules:
- Use only approved prompt files and approved APIs or manual snapshots.
- Store raw observations in seo-geo/reports/raw/.
- Return a concise summary with prompt, surface, answer summary, brand mention, citation URL, and confidence.
- Do not edit website files.
安全執行 research
詢問 main Claude conversation:
Use the GEO research subagents to inspect seo-geo/prompt-library/core-prompts.md and the latest snapshots in seo-geo/exports/ai-visibility/.
Each subagent should return only findings and recommended actions. After they finish, combine the results into a prioritized content and technical action queue. Do not edit files yet.
如何判斷 subagent output
好的 output 會說清楚 evidence。弱 output 只會說「improve authority」。強 output 會像這樣:
- Prompt:“best tools for AI search visibility”
- Surface:Perplexity API snapshot,2026-07-05
- Competitors mentioned:A、B、C
- Our brand mentioned:no
- Likely gap:沒有 comparison page,third-party evidence 也弱
- Suggested page action:建立或 refresh comparison page,加入可驗證 proof
什麼時候不要用 subagents
不要為了一個很小的 one-file edit 產生 subagents。不要讓多個 subagents edit 同一個 file。不要要求 research subagents 捏造 data。如果 task 需要一個 careful diff,就留在 main thread。
FAQ
Subagents 和 skills 一樣嗎?
不一樣。Skill 封裝 reusable workflow 或 reference。Subagent 是擁有自己 context 的 specialized worker。它們可以搭配,但解決的是不同問題。
Subagents 可以用 MCP data 嗎?
可以,只要已設定且被允許。對 sensitive analytics,限制 tool access,並要求 summaries,而不是暴露 raw credentials。
Claude Code SEO/GEO 學習路徑
這篇屬於 Claude Code SEO/GEO operator series。如果你從零建立 workflow,請照這個順序:
- 如何用 Claude Code 做 SEO Automation
- 如何建立 Claude Code SEO/GEO Workflow Cockpit
- 如何把 CLAUDE.md 和 Memory 用在 SEO/GEO Workflows
- 如何用 Claude Code VS Code Extension 更新 SEO Pages
- 2026 年最佳 GEO Claude Code Skills
- 如何用 Claude Code Subagents 做 GEO Research
- 如何把 Claude Code Hooks 當成 SEO/GEO Quality Gates
- 如何用 MCP 將 Claude Code 接上 SEO 資料
- 如何用 Claude Code GitHub Actions 做 SEO/GEO Reviews
- 如何在 Claude Code 裡跑每日 SEO/GEO Monitoring
下一篇
上一篇: 2026 年最佳 GEO Claude Code Skills
下一篇: 如何把 Claude Code Hooks 當成 SEO/GEO Quality Gates
Sources and notes
- Anthropic Claude Code docs: Overview 、 Memory 、 VS Code integration 、 Skills 、 Subagents 、 Hooks 、 MCP 與 GitHub Actions 。
Author: Theo Langford, Auspia Competitive AI Visibility Analyst for 120+ Markets。Theo 撰寫 competitor maps、share-of-answer checks 與 GEO research workflows。