google-search-console
它能做什么
这项技能列出 Search Console 中一些会给出自信但错误答案的陷阱,尤其是涉及近期日期的情况。它适合报告自然搜索表现的 SEO 团队和智能体。
适用场景
- ✓当你从 Search Console 报告自然点击、展示或排名的时候。
- ✓当你被问到过去几周的搜索流量是上升还是下降时。
- ✓当你需要检查某个网站的索引状态的时候。
技能链接
https://github.com/superdesigndev/treg/blob/main/.agents/skills/google-search-console/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的自然搜索流量这个月下降了吗?请帮我在 Search Console 中查一下。”
每周 5 个新技能,1 分钟读完。
工作原理
在判断趋势之前,智能体会排除仍不完整的最近几天,并检查它所使用的网站资源。在报告明显变化之前,它还会与分析数据进行交叉核对。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Search Console via treg — what will silently mislead you
You already know the Search Console API. This file is only the things that return a plausible
wrong answer with no error. Verified live on 2026-07-22 against sc-domain:example.com, with
each trap confirmed by watching three independent agents.
Site id: treg connections ls → resource_ref. If it's empty, no site is pinned — list them
with treg connections resources <id> and say which one you chose and why. Don't present an
inferred site as configured, and don't report the blank as a fault — it isn't one.
When nothing is pinned and the question doesn't name a site, pick the site whose domain matches
the question and state that you inferred it. Note that subdomains are separate properties, so
sc-domain:example.com and sc-domain:app.example.com are different answers — say which you used.
1. Recent days are incomplete — do not report them as a trend
3 of 3 agents concluded "organic traffic is down ~47%". It wasn't.
GSC lags ~2–3 days and simply omits missing days — a 14-day request returns 11–12 rows with no warning. Worse, the newest present days read low. The tail looked like this:
07-15: 640 07-16: 610 07-17: 500 07-18: 520 07-19: 430 ← last 3 days incomplete
Cross-checked against GA4 organic sessions for the same dates, the decline does not exist — and GA4 shows 07-20 and 07-21 recovering to 746 and 849, days GSC hasn't reported at all.
Two rules:
- End ranges ≥3 days before today, and never start a window on a local peak.
- Before calling any GSC trend real, cross-check GA4 organic sessions for the same dates. Two independent sources disagreeing means the GSC tail is an artifact.
2. Dimension sums do NOT equal site totals
Illustrative (the point is that dimension sums miss the true total, not the absolutes):
| Grouped by | Rows | Impressions | vs true total |
|---|---|---|---|
query |
4,219 | ~31% — loses ~69% | |
page |
1,161 | ~151% — overcounts ~51% | |
date |
28 | (true total) | 100% ✅ |
| (none) | 1 | (true total) | 100% ✅ |
query undercounts because Google drops anonymised rare queries; page overcounts because one
SERP impression showing several of your pages counts once per page. (Numbers measured;
mechanisms are the standard explanation, not measured.)
Never sum a dimension to report a total — especially for "how much traffic do my top queries drive?", where summing understates organic traffic by ~69% with total confidence.
3. searchAppearance cannot be combined with any other dimension
Fails loudly with a 400: "Cannot group by search appearance dimension together with another dimension." Query it alone — and note that a sparse result there is a correct answer, not a bug.
4. Two API surfaces on one host
webmasters/v3/...— search analytics, sitemapsv1/urlInspection/index:inspect— URL Inspection
Guessing webmasters/v3/urlInspection/... returns a Google HTML 404, not a JSON error. Two of
three agents hit this. The HTML-vs-JSON tell is worth knowing generally: HTML means the path never
routed.
Everything else
Standard API. ctr is a fraction (0.0882 = 8.82%); position is an average, so don't average it
across rows. rowLimit accepts 25000 (default reported as 1000 — unverified). Sitemap
contents[].indexed returned "0" for a fully-indexed site with 1,079 URLs — use URL Inspection
for real index status. Subdomains are separate properties.
Both sc-domain:example.com and sc-domain%3Aexample.com work in the path — verified via the
audit log. Encoding is optional; don't debug a 403 by adding it.
⚠️ Unverified: URL-prefix properties (https://example.com/, trailing slash) — none available
to test. A 403 is reported to usually mean the wrong property form rather than missing permission.
Writes (PUT/DELETE on sitemaps) change what Google crawls. Untested by design — get an
explicit target and human go-ahead first.
- Search Analytics query: https://developers.google.com/webmaster-tools/v1/searchanalytics/query
- URL Inspection: https://developers.google.com/webmaster-tools/v1/urlInspection.index/inspect
- Freshness & anonymisation: https://support.google.com/webmasters/answer/7576553
常见问题
为什么近几天的数据看起来很低?
该技能说明,Search Console 有两到三天的延迟,最新的几天数据往往不完整。
子域名属于同一个资源吗?
不属于。该技能说明,子域名是独立的资源,回答时应注明所用的是哪一个。
如果没有设置网站怎么办?
该技能要求列出网站,选择匹配的域名,并说明该选择是推断得出的。
详情
作者的原始描述
Traps to avoid when querying Google Search Console through treg — cases where the API returns a confident wrong answer instead of an error, especially around totals and recent-date trends. Use whenever answering questions about organic search clicks, impressions, rankings, or index status.
repo: superdesigndev/treg
热度
- GitHub 星标
- 7.0k
- 排名
- #13699
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
code-quality
7.0k教你的智能体遵循清晰的代码规范:用工具强制执行规则,少写注释,让测试能够失败,并保持文档简短。
google-ads
7.0k帮你的智能体安全地生成 Google Ads 报告并进行修改,避免常见的 API 版本和预算错误,以免浪费资金。
google-analytics
7.0k帮你的智能体从 Google Analytics 4 获取准确的流量、转化和收入数据,避免不完整的日期和虚假的零值。
portrait-clone
7.0k帮你的智能体把一个人的参考照片转换为一份详细的 JSON 图像提示词,并固定每个视觉选择,使结果保持一致。