setup
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "set up Google telemetry", "authenticate Google Analytics CLI", "connect Search Console CLI", "fix Google…
от fcakyon★ 1 223 звезды на GitHubОб этом скилле
Set up Google telemetry
Make the requested Analytics or Search Console read command work. Inspect installed tools and existing access before involving the user. Setup for one service does not require access to the other.
Check tools
These are third-party CLI wrappers around Google's official client libraries, not Google-supported products. Versions checked on 2026-11-08. Install only the CLI the requested service needs, and only when --version fails.
google-analytics-cli --version
google-search-console-cli --version
npm install --global [email protected]
npm install --global [email protected]
Sources: Analytics CLI, Search Console CLI. Recheck releases and help before upgrading.
Existing access first
Run the requested service's discovery call before creating anything:
google-analytics-cli accounts
google-search-console-cli sites
accounts lists every GA account and property the identity can read. sites lists Search Console properties with the identity's permission level.
Diagnose failures
Errors print as JSON on stderr with exit code 1. Report a redacted message.
Could not load the default credentials: no credential source is set. Both CLIs read--credentials <path>, then GA's--profileorGA_CLI_PROFILE, thenGOOGLE_APPLICATION_CREDENTIALS, then~/.config/<cli-name>/credentials.json, then Application Default Credentials (ADC). Look for an existing key or ADC login along that chain. Check file presence, permissions and the JSONtypefield (service_accountorauthorized_user) without displaying secret fields. A desktop OAuth client JSON (installed) is login configuration, not a credential. A stale higher-priority file can hide a working login.invalid_grant: the OAuth login expired or was revoked. Renew that identity after approval.- Insufficient scopes: request only the missing read scope after consent.
- API disabled or quota project errors: enable the API named in the error in the Cloud project that owns the credential.
- GA
7 PERMISSION_DENIEDor Search Console403 User does not have sufficient permission for site: the identity works but the property is not shared with it, or the ID is wrong. - An empty discovery list or report: authentication worked. Check sharing, dates, filters, property and processing delay instead of logging in again.
A gcloud auth login session, a browser session, an API key, a GTM container ID or a Measurement Protocol secret cannot read reports.
Service account setup
Prefer a dedicated service account whose JSON key does not expire and sees only what is shared with it. Creating the account, its key and each property grant requires the user's approval.
- In the Google Cloud project that will own the identity, enable the APIs the request needs: Google Analytics Admin API and Google Analytics Data API for Analytics, Google Search Console API for Search Console.
- Create a service account such as
google-telemetry-readerwith no project roles. Reporting access comes from GA and Search Console, not Cloud IAM. - Create a JSON key. If the organization policy
iam.disableServiceAccountKeyCreationblocks it, use the user OAuth setup below instead of weakening the policy. - Move the key to a private path such as
~/.config/<org>/google-telemetry-sa.jsonwith mode 600, and point the CLIs at it withGOOGLE_APPLICATION_CREDENTIALS. - In GA Admin, open Account access management for each account, add the service account email as Marketer with No Cost Metrics and No Revenue Metrics left unchecked so CLI and API calls can read cost/revenue metrics and manage audiences, key events, attribution models, lookback windows, and events (choose Editor if custom dimensions or data streams must also be edited via API, or Viewer with both restrictions ticked for strict read-only accounts), and untick Notify. An account-level grant covers its current and future properties. Granting requires the Administrator role. Google-managed accounts such as Chrome Web Store developer properties cannot be shared this way, so use user OAuth for them.
- In Search Console, open Settings, then Users and permissions, for each property and add the service account email as Restricted. Restricted is enough for Search Analytics, sitemaps and URL inspection.
User OAuth setup
Use this when a service account is not allowed or cannot be granted access. Reuse an approved desktop OAuth client. Request analytics.readonly for Analytics and webmasters.readonly for Search Console, both only when both services are needed. gcloud ADC login additionally requires cloud-platform, so explain that extra scope before consent. Do not overwrite an existing shared ADC login without checking its user and scopes.
gcloud auth application-default login \
--client-id-file=/privat
Установить setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл setup?
This skill should be used when the user asks to "set up Google telemetry", "authenticate Google Analytics CLI", "connect Search Console CLI", "fix Google telemetry credentials", or a Google Analytics or Search Console reporting command fails because authentication or property access is missing.
Как установить скилл setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic