Cockpit:一个能 plan、edit、review、measure 的 Claude Code workspace
Claude Code 不只是 code chat box。Anthropic 把它描述成 agentic coding tool,可以读 codebase、edit files、run commands,并从 terminal、IDE、desktop app 和 browser 与 development tools integration。对 SEO/GEO 工作来说,这代表你可以把一个 repository 变成实际 cockpit:source files、page briefs、analytics exports、prompt libraries、review rules 和 deployment checks 放在一起,而不是散落在 docs 和 dashboards。
初学者版本很简单:建立 project folder、加入 CLAUDE.md、把 data 放在可预测 folders、要求 Claude editing 前先 plan、review diffs,并且只在 checks 通过后 publish。
图说:先把 Claude Code 当成 repo-aware operator,而不是 generic content writer。
SEO/GEO cockpit 应该放什么
在网站 repository 里建立这个 folder structure:
seo-geo/
briefs/
exports/
gsc/
bing/
ga4/
prompt-library/
reports/
screenshots/
qa/
CLAUDE.md
每个 folder 都有工作。briefs/ 存 page briefs。exports/ 存 Google Search Console、Bing Webmaster Tools、GA4、SERP APIs 或 AI visibility tools 的 CSVs。prompt-library/ 存你用来测 ChatGPT、Perplexity、Gemini、Google AI Overviews、Felo Search 和其他 answer surfaces 的问题。qa/ 存 launch gates。
这很重要,因为 Claude Code 在能 inspect real files 并产生可 review diff 时最强。不要把十个 dashboards 贴进 chat。把 data 放进 files,请 Claude read files。
第一个 prompt:先 inspect,不要先改东西
在 fresh repository 里使用这个 prompt:
I want to use Claude Code as an SEO/GEO workflow cockpit for this website.
Do not edit files yet. First inspect the repository and tell me:
1. What framework the site uses.
2. Where pages, metadata, routes, components, and content files live.
3. Whether the site has sitemap, robots.txt, schema, canonical URLs, and analytics.
4. Where I should store SEO/GEO briefs, exports, prompt libraries, QA reports, and screenshots.
5. What commands I should run for install, lint, typecheck, test, and build.
6. The safest first workflow to improve one page without breaking production.
Return a cockpit setup plan and wait for approval.
如果 Claude 直接开始 edits,请停下来要求 plan。Plan 应该命名 files 和 commands。如果它只说「improve SEO」但没有说 metadata 存在哪里,这个 plan 还不够 specific。
Weekly cockpit routine
实用 weekly routine 可以像这样:
| 步骤 | 输入 | Claude Code 输出 | 人工核准点 |
|---|---|---|---|
| 1. 读 performance | GSC/Bing/GA4 exports | Opportunity list | 确认 target pages |
| 2. 读 visibility | AI prompt snapshots | Mention/citation gaps | 确认 priority prompts |
| 3. 检查页面 | 来源档案和 rendered page | Diagnosis | 核准 edit scope |
| 4. 编辑 | Page file、metadata、schema | Diff | 审核 content claims |
| 5. 验证 | Build/lint/test | Pass/fail report | 核准 deploy |
| 6. 记录 | Report markdown | Next action queue | 指派 owner |
要求 Claude 保存 report:
Create seo-geo/reports/YYYY-MM-DD-weekly-review.md.
Include pages checked, data files used, decisions made, diffs created, commands run, risks, and next actions. Do not claim improvements until we have post-change data.
什么让它是 Claude Code-specific
Cockpit 应该刻意使用 Claude Code features:
CLAUDE.md存 persistent project instructions。- VS Code extension 做 inline diff review 和 selected-file context。
- Subagents 处理 noisy research,避免淹没 main conversation。
- Hooks 在 risky edits 前或 file changes 后做 deterministic checks。
- MCP 控制 external systems 和 APIs 的 access。
- GitHub Actions 在 changes 进 GitHub 后用
@claude做 PR review。
这和 generic AI writing workflow 不同。Claude Code 在这里有用,是因为它能把 strategy 连到 actual repository files、validation commands 和 reviewable diffs。
初学者安全规则:one page、one diff、one report
第一天不要要求 Claude Code「optimize the whole site」。用这个 starter task:
Pick one existing page that has commercial or GEO value.
Use available metadata, content, and exports to propose a safe improvement.
Only edit that one page and any directly related metadata/schema file.
Run the build command.
Write a report explaining what changed, why it should help, and what data we need to check later.
这让 workflow 保持 reviewable。初学者常出问题,是因为让 agent 在一个 giant task 里同时碰 navigation、schema、copy、redirects 和 deployment settings。
Cockpit QA checklist
在真正使用 cockpit 做 SEO/GEO work 前,确认:
| 检查 | 通过条件 |
|---|---|
| Repository map | Claude 能解释页面、component、metadata 和 build 位置 |
| CLAUDE.md | Project rules 包含 SEO/GEO standards 和 approval boundaries |
| Data folders | Exports 和 prompt snapshots 使用 日期化档名 |
| Validation | Build/lint/typecheck commands 已 documented |
| Diff review | Claude 会 摘要 changed files 和 风险假设 |
| Measurement | 每个 change 都有 后续 metric 或 prompt 要检查 |
FAQ
Claude Code 可以自动 publish SEO changes 吗?
它可以 edit files 并协助 deployment workflows,但初学者应该把 publishing 放在人类 review 后。让 Claude 准备 diffs、reports 和 PR comments;production changes 自己核准。
这只适合 developers 吗?
不是。如果 website 在 repository 里,而且 team 同意 review steps,marketer 也能用这套 workflow。关键是要求 plans、reports 和 safe diffs。
我该用 Claude Code 还是 CMS AI writer?
当 SEO/GEO change 会碰 code、metadata、schema、routing、deployment 或 reusable page templates 时,用 Claude Code。只有需要 draft copy 时,用 CMS AI writer。
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
下一篇
上一篇: 如何用 Claude Code 做 SEO Automation
下一篇: 如何把 CLAUDE.md 和 Memory 用在 SEO/GEO Workflows
Sources and notes
- Anthropic Claude Code docs: Overview 、 Memory 、 VS Code integration 、 Skills 、 Subagents 、 Hooks 、 MCP 与 GitHub Actions 。
Author: Nina Patel, Auspia Organic Growth Strategist for 250+ Content Programs。Nina 撰写 practical growth systems,连结 content、tooling 和 measurement。