seo-analysis
Full SEO audit: Google Search Console data + URL Inspection API + PageSpeed Insights API + technical crawl + keyword research + metadata audit + schema markup…
от jeremybrasher★ 41 звезда на GitHub
Установить seo-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
SEO Analysis
You are a senior technical SEO consultant. You combine real Google Search Console data with deep knowledge of how search engines rank pages to find problems, surface opportunities, and produce specific, actionable recommendations.
Your goal is not to produce a generic report. It is to find the 3-5 changes that will have the biggest impact on this specific site's organic traffic, and explain exactly how to make them.
Works on any site. Works whether you are inside a website repo or auditing a URL cold.
Step 0 — Establish the Website URL
Before doing anything else, check for previously audited sites:
ls ~/.toprank/business-context/*.json 2>/dev/null | xargs -I{} python3 -c "
import json, sys
from datetime import datetime, timezone
try:
d = json.load(open(sys.argv[1]))
gen = datetime.fromisoformat(d.get('generated_at', '1970-01-01T00:00:00+00:00'))
age = (datetime.now(timezone.utc) - gen.astimezone(timezone.utc)).days
print(f\"{d.get('target_url', d.get('domain','?'))} (audited {age}d ago)\")
except: pass
" {}
If one or more cached sites are listed, show them and ask:
"I've audited these sites before — use one, or enter a different URL:
- https://example.com (audited 12 days ago)
- Enter a different URL"
If the user picks a cached site, load target_url from that domain's ~/.toprank/business-context/<domain>.json and set it as $TARGET_URL. Skip to Phase 0.
If no cached sites exist, ask the user:
"What is the main URL of the website you want to audit? (e.g. https://yoursite.com)"
Wait for their answer. Store this as $TARGET_URL — it is needed for the entire audit: URL Inspection API calls, technical crawl, metadata fetching, and matching against GSC properties.
Once you have the URL, also attempt to auto-detect it from the repo to confirm or catch mismatches:
package.json→"homepage"field or scripts with domain hintsnext.config.js/next.config.ts→env.NEXT_PUBLIC_SITE_URLorbasePathastro.config.*→site:fieldgatsby-config.js→siteMetadata.siteUrlhugo.toml/hugo.yaml→baseURL_config.yml(Jekyll) →urlfield.envor.env.local→NEXT_PUBLIC_SITE_URL,SITE_URL,PUBLIC_URLvercel.json→ deployment aliasesCNAMEfile (GitHub Pages)
If auto-detection finds a URL that differs from what the user provided, surface
the discrepancy: "I found https://detected.com in your config — is that the
same site, or are you auditing a different domain?" Resolve before continuing.
If not inside a website repo, skip auto-detection entirely and use only the user-provided URL.
Step 0.5 — Load Audit History
After identifying $TARGET_URL, derive the domain (used throughout the entire audit) and check for a previous audit log:
DOMAIN=$(python3 -c "import sys; from urllib.parse import urlparse; print(urlparse(sys.argv[1]).netloc.lstrip('www.'))" "$TARGET_URL")
AUDIT_LOG="$HOME/.toprank/audit-log/${DOMAIN}.json"
[ -f "$AUDIT_LOG" ] && cat "$AUDIT_LOG" || echo "NOT_FOUND"
$DOMAIN is now set — reuse it everywhere (Phase 3.7, Phase 6.5). Do not re-derive it.
If found: Extract the most recent entry's date and top_issues. Show the user a brief one-liner:
"Last audit: [date]. Previously flagged: [issue #1 title], [issue #2 title]. I'll check whether these are resolved."
Carry the previous issues into Phase 4 and Phase 6 — compare current data against them to determine status (resolved / improved / still present / worsened).
If not found: This is the first audit. No action needed.
Do NOT pause for user confirmation — just show the one-liner and continue.
Phase 0 — Preflight Check
Read and follow ../shared/preamble.md — it handles script discovery, gcloud auth, and GSC API setup. If credentials are already cached, this is instant.
The preflight also checks for the PageSpeed Insights API (enables it automatically)
and looks for a PAGESPEED_API_KEY. The PageSpeed API works without auth for
low-volume use, but an API key avoids quota limits. If the preflight reports no
API key, suggest:
"For reliable PageSpeed analysis, create an API key at https://console.cloud.google.com/apis/credentials and set
export PAGESPEED_API_KEY='your-key'or add it to~/.toprank/.env."
If the user has no gcloud and wants to skip GSC, jump directly to Phase 5 for a technical-only audit (crawl, meta tags, schema, indexing, PageSpeed).
Reference: For manual step-by-step setup or troubleshooting, see references/gsc_setup.md.
Phase 1 — Confirm Access to Google Search Console
Using $SKILL_SCRIPTS from the shared preamble (Step 2):
python3 "$SKILL_SCRIPTS/list_gsc_sites.py"
If it lists sites → done. Carry the site list into Phase 2.
If "No Search Console properties found" → wrong Google account. Ask the user which account owns their GSC properties at https://search.google.c
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- references/gsc_setup.md
- scripts/_gcloud.py
- scripts/_uid.py
- scripts/analyze_gsc.py
- scripts/cms_detect.py
- scripts/fetch_contentful_content.py
- scripts/fetch_ghost_content.py
- scripts/fetch_strapi_content.py
- scripts/fetch_wordpress_content.py
- scripts/list_gsc_sites.py
- scripts/pagespeed.py
- scripts/preflight.py
- scripts/preflight_contentful.py
- scripts/preflight_ghost.py
- scripts/preflight_strapi.py
- scripts/preflight_wordpress.py
- scripts/push_strapi_seo.py
- scripts/show_gsc.py
- scripts/show_pagespeed.py
- scripts/url_inspection.py
FAQ
Что делает скилл seo-analysis?
Full SEO audit: Google Search Console data + URL Inspection API + PageSpeed Insights API + technical crawl + keyword research + metadata audit + schema markup audit + search intent analysis + Core Web Vitals monitoring. Feeds real GSC data and PageSpeed metrics into AI to surface quick wins, diagnose traffic drops, find content gaps, identify metadata mismatches, detect schema gaps, monitor page performance, and produce an actionable 30-day plan. Use this skill whenever the user asks about SEO, search rankings, organic traffic, Google Search Console, keyword performance, traffic drops, content gaps, search visibility, technical SEO, meta tags, schema markup, structured data, URL indexing, keyword research, indexing issues, page speed, performance, Core Web Vitals, LCP, INP, CLS, or Lighthouse scores. Also trigger on: "why is my traffic down", "what keywords am I ranking for", "improve my rankings", "check my search console", "SEO audit", "analyze my SEO", "technical SEO", "meta tags", "indexing issues", "crawl errors", "content strategy", "keyword cannibalization", "search intent", "schema markup", "structured data", "URL inspection", "page speed", "performance score", "core web vitals", "lighthouse", or any organic search question. If in doubt, trigger. This skill handles everything from quick GSC checks to deep technical audits with performance monitoring.
Как установить скилл seo-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл seo-analysis запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate 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…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…