google-search-console · acedatacloud — скилл для Claude Code: Search Console в чате
Скилл тянет данные Google Search Console через API v1: запросы, страницы, CTR, позиции, сайты, карты сайта и проверку индексации.
Apache-2.0 188 установок ★ 17 обновлён 2026-10-25
npx skills add AceDataCloud/Skills --skill google-search-console -a claude-codeЧто делает google-search-console
Скилл превращает агента в тонкий клиент Search Console API v1: запросы уходят через curl, ответы разбираются через jq. Авторизация — bearer-токен из переменной GOOGLE_SEARCH_CONSOLE_TOKEN с областью webmasters.readonly, то есть только чтение. Если переменной нет или токен протух, вызов вернёт 401 и подключение придётся переустанавливать.
Что можно спросить: список подтверждённых сайтов с уровнями доступа, аналитику поиска по измерениям query, page, country, date (клики, показы, CTR, средняя позиция), отправленные карты сайта с ошибками и проверку индексации отдельного URL. Начинать стоит со списка сайтов: из него берётся siteUrl, и дальше его нужно кодировать в URL — https%3A%2F%2Fexample.com%2F или sc-domain%3Aexample.com. Ошибка 403 означает, что у аккаунта токена нет прав на этот сайт.
Данные отстают примерно на 2–3 дня, поэтому endDate лучше ставить на пару дней назад, иначе последние строки придут пустыми. ctr приходит долей от 0 до 1, position — средний ранг, где меньше значит лучше.
Какие задачи решает
- вытащить топ-запросы по кликам за последние 28 дней
- найти страницы, просевшие по средней позиции
- проверить, попал ли URL в индекс
- посмотреть ошибки в отправленных картах сайта
- сверить подтверждённые сайты и уровни доступа к ним
Примеры запросов агенту
- Покажи топ-10 запросов по кликам за последние 28 дней для
sc-domain:example.com. - Проверь через Search Console, проиндексирована ли страница
https://example.com/page. - Какие карты сайта отправлены и есть ли в них ошибки?
Как установить google-search-console
1Через Skills CLI (Vercel)
npx skills add AceDataCloud/Skills --skill google-search-console -a claude-code2Вручную: положить файлы
~/.claude/skills/google-search-console/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/google-search-console/
1Через Skills CLI (Vercel)
npx skills add AceDataCloud/Skills --skill google-search-console -a codex2Вручную: положить файлы
.agents/skills/google-search-console/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add AceDataCloud/Skills --skill google-search-console -a cursor2Вручную: положить файлы
.cursor/skills/google-search-console/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install AceDataCloud/Skills skills/google-search-console2Вручную: положить файлы
.github/skills/google-search-console/SKILL.md1Через Skills CLI (Vercel)
npx skills add AceDataCloud/Skills --skill google-search-console -a gemini-cli2Командой платформы
gemini skills install https://github.com/AceDataCloud/Skills --path skills/google-search-consoleВручную: положить файлы
.devin/skills/google-search-console/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add AceDataCloud/Skills --skill google-search-console -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о google-search-console
Как установить google-search-console в Claude Code?
Выполните npx skills add AceDataCloud/Skills --skill google-search-console -a claude-code. Скилл окажется в ~/.claude/skills/google-search-console/SKILL.md.
Что делает google-search-console?
Ходит в Search Console API v1 через curl и jq: отдаёт список сайтов, аналитику поиска по запросам, страницам, странам и датам, отправленные карты сайта и статус индексации URL.
Какие права нужны токену и почему приходит 403?
Достаточно области webmasters.readonly, скилл только читает. Код 403 значит, что аккаунт, которому выдан токен, не владеет этим сайтом и не подтвердил его в Search Console.
Исходный текст
SKILL.md · Apache-2.0
---
name: google-search-console
description: Query Google Search Console via the Search Console API v1 — search analytics (clicks / impressions / CTR / position), sites, sitemaps and URL inspection. Use when the user mentions Search Console, organic search performance, top queries / pages, indexing status, or sitemaps.
when_to_use: |
Trigger when the user wants Search Console data — top queries or
pages by clicks / impressions / CTR / position, performance by date
or country, the list of verified sites, sitemaps, or URL inspection.
Read-only (`webmasters.readonly`). List sites first to get the
property URL.
connections: [google/search-console]
allowed_tools: [Bash]
license: Apache-2.0
metadata:
author: acedatacloud
version: "1.0"
---
Query **Google Search Console** via `curl + jq`. The user's OAuth bearer token is
in `$GOOGLE_SEARCH_CONSOLE_TOKEN` (scope `webmasters.readonly`); every call needs
`Authorization: Bearer $GOOGLE_SEARCH_CONSOLE_TOKEN`. Base:
`https://searchconsole.googleapis.com`.
Failures are `{"error":{"code","message","status"}}` — show verbatim. `401` =
re-install. `403` = the token's account doesn't own/verify that site.
```bash
AUTH="Authorization: Bearer $GOOGLE_SEARCH_CONSOLE_TOKEN"
# Verified sites (siteUrl is the property — URL-encode it in later calls)
curl -sS -H "$AUTH" "https://searchconsole.googleapis.com/webmasters/v3/sites" \
| jq '.siteEntry[] | {siteUrl, permissionLevel}'
```
## Search analytics
```bash
# Top queries by clicks for the last 28 days. siteUrl must be URL-encoded
# (https%3A%2F%2Fexample.com%2F or sc-domain%3Aexample.com).
SITE="https%3A%2F%2Fexample.com%2F"
curl -sS -X POST -H "$AUTH" -H "Content-Type: application/json" -d '{
"startDate":"2026-05-24","endDate":"2026-06-21",
"dimensions":["query"],"rowLimit":10
}' "https://searchconsole.googleapis.com/webmasters/v3/sites/$SITE/searchAnalytics/query" \
| jq '.rows[] | {query: .keys[0], clicks, impressions, ctr, position}'
```
Swap `dimensions` for `["page"]`, `["country"]`, `["date"]`, or combine
`["query","page"]`. Add `"dimensionFilterGroups"` to filter by page/country.
## Sitemaps & URL inspection
```bash
# Submitted sitemaps
curl -sS -H "$AUTH" "https://searchconsole.googleapis.com/webmasters/v3/sites/$SITE/sitemaps" \
| jq '.sitemap[] | {path, lastDownloaded, errors, warnings}'
# Is a URL indexed?
curl -sS -X POST -H "$AUTH" -H "Content-Type: application/json" \
-d '{"inspectionUrl":"https://example.com/page","siteUrl":"https://example.com/"}' \
"https://searchconsole.googleapis.com/v1/urlInspection/index:inspect" \
| jq '.inspectionResult.indexStatusResult | {verdict, coverageState, lastCrawlTime}'
```
## Gotchas
- **Two property shapes:** URL-prefix (`https://example.com/`) vs Domain
(`sc-domain:example.com`). Use exactly the `siteUrl` from the sites list,
URL-encoded.
- Data lags ~2–3 days; the most recent dates may be partial/empty — set `endDate`
a couple days back for stable numbers.
- `ctr` is 0–1, `position` is average rank (lower = better).
© acedatacloud · Apache-2.0 · AceDataCloud/Skills
Похожие скиллы
Все скиллы по теме «SEO и GEO» →Сначала — google-search-console от других авторов.