/seo-os:setupfrom seo-os
Walks through connecting Google Search Console and GA4 to Claude Code with OAuth, detecting and routing around known Google auth failure modes.
Ships in seo-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Walk the user from zero to a verified live Search Console + GA4 connection. You know the failure modes in advance — detect them and route around them instead of letting the user hit walls.
which npx, which uvx, which gcloud. Missing npx → they need Node. Missing uvx → GA4 server can't run; offer brew install uv (ask before installing). Missing gcloud → offer brew install google-cloud-sdk (~500MB, ask before installing).~/.config/gcloud/application_default_credentials.json exists, test it immediately:
TOKEN=$(gcloud auth application-default print-access-token) && curl -s -H "Authorization: Bearer $TOKEN" "https://www.googleapis.com/webmasters/v3/sites"
If it returns a siteEntry, skip to Step 4 (verify). If it returns a scope error, the existing ADC lacks the webmasters scope — proceed to re-auth.Have the user create (or pick) a project at console.cloud.google.com. Then enable four APIs. If gcloud CLI is authed, do it for them; otherwise give the console URLs:
searchconsole.googleapis.comanalyticsdata.googleapis.comanalyticsadmin.googleapis.comcloudresourcemanager.googleapis.com (needed for set-quota-project)Shell gotcha if you script this: in zsh, $var:enable silently mangles the URL (:e is a zsh modifier). Always write ${var}:enable.
Do NOT default to the service-account route. As of mid-2026 Google has a confirmed, unfixed bug: newly-created service accounts cannot be added to Search Console or GA4 — the UI rejects them with "Failed to add user: email not found." It is not user error; do not let the user retry-loop on it. (When Google fixes it, the SA route becomes the cleaner choice for teams/agencies.)
Run the OAuth flow:
gcloud auth application-default login \
--scopes=https://www.googleapis.com/auth/webmasters.readonly,https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform
Expected failure — "This app is blocked" in the browser: Google blocks gcloud's generic client from sensitive scopes on many accounts. The fix is the user's own OAuth client. The audience setting depends on their account type — ask which they have before guiding them:
~/.seo-os/oauth-client.json, chmod 600, then re-run:
gcloud auth application-default login --client-id-file=$HOME/.seo-os/oauth-client.json \
--scopes=https://www.googleapis.com/auth/webmasters.readonly,https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform
External-audience notes (personal Gmail path):
After auth succeeds: gcloud auth application-default set-quota-project <project-id>.
Permission boundaries (non-negotiable): the user types their own Google password, approves the OAuth consent screen themselves, clicks any "I agree" checkbox themselves, and makes any org-policy or user-permission change themselves. You prepare everything; they click the consequential buttons.
Newer Workspace orgs enforce iam.disableServiceAccountKeyCreation. To mint a key the user must grant themselves "Organization Policy Administrator" at the org level, then override that policy → enforcement Off, scoped to this one project. They can re-enable enforcement afterward — existing keys keep working. These are security changes: the user clicks, you navigate.
siteOwner/siteFullUser.https://analyticsadmin.googleapis.com/v1beta/accountSummaries and confirm their property appears. Record the properties/XXXXXXXXX id.gsc and ga4 MCP servers connect at session start./seo-os:dashboard as the first run.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (mikefutia/seo-consultant) — no native marketplace selected
npx claudepluginhub p/mikefutia-seo-os9 skills in this plugin
/backlinksBacklink Cleanup + OutreachFlag toxic backlinks for review and rank outreach targets by DR × relevance, from Ahrefs MCP or CSV exports. Trigger on "backlinks", "toxic links", "link cleanup", "outreach targets", or /seo-os:backlinks./content-from-dataContent From DataDraft content from real GSC gaps — headings from actual query phrasings, entities, internal links included. Trigger on "content from data", "write the post for [topic/cluster]", "fill the gap", or /seo-os:content-from-data./dashboardSEO DashboardBuild a self-contained HTML SEO dashboard from live GSC + GA4 data — health score, branded-dependency donut, quick wins, 3 priorities. Trigger on "seo dashboard", "build my dashboard", or /seo-os:dashboard./intent-mapIntent MapCluster keywords into a hub-and-spoke content map with intent labels, gaps, and cannibalization flags. Trigger on "intent map", "keyword map", "content map", "cluster my keywords", or /seo-os:intent-map./internal-linksInternal LinksFind orphan pages and money-page link gaps, output a paste-ready link insertion list. Trigger on "internal links", "orphan pages", "link gaps", or /seo-os:internal-links./monday-reportMonday ReportWeek-over-week SEO movement from GSC + GA4 with exactly 3 priorities. Trigger on "monday report", "weekly seo report", "how did last week go", or /seo-os:monday-report.Other plugins' skills for the same job