agentleFS
01clauding01clauding/claude-seo-skill/skills/seo-data-tools/SKILL.md

seo-data-tools

Skill4 starsChanged 9 months agoMITView on GitHub

SEO data platform integration guide covering Google Search Console API, GA4 Data API, PageSpeed Insights API v5, CrUX API, and third-party data tools (Bright Data SERP, DataForSEO). Provides API usage patterns, data analysis methodologies, and reporting automation. Use when user says "Search Console", "GSC", "GA4", "analytics", "PageSpeed API", "CrUX", "SERP data", "DataForSEO", "Bright Data", or "SEO data".

  • Reads credentials

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check for manual actions: spam, unnatural links, thin content, cloaking

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

seo-data-tools — SEO Data Platform Integration

Google Search Console API (2025-2026)

Key Capabilities

  • Search Performance API: Query-level clicks, impressions, CTR, position
  • URL Inspection API: Real-time index status, crawl info, rich results
  • Sitemaps API: Submit, delete, list sitemaps programmatically
  • Links API: Internal and external link reports

GSC 2025 Updates (December 2025)

FeatureDescription
AI-powered config suggestionsGSC recommends fixes based on site patterns
Brand vs non-brand filtersNative split in Search Performance
Hourly API data granularityAPI now supports hourly breakdowns (previously daily)
Search Appearance expansionWeb Stories, Video, FAQ, Product filters
Recommendations panelProactive improvement suggestions

Search Performance API Usage

POST https://searchconsole.googleapis.com/webmasters/v3/sites/{siteUrl}/searchAnalytics/query

{
  "startDate": "2026-01-01",
  "endDate": "2026-03-01",
  "dimensions": ["query", "page", "device", "country"],
  "dimensionFilterGroups": [{
    "filters": [{
      "dimension": "query",
      "operator": "notContains",
      "expression": "brand-name"
    }]
  }],
  "rowLimit": 25000,
  "dataState": "final"
}

Brand vs Non-Brand Analysis

Split queries into brand (containing brand name/variations) and non-brand to measure:

  • Brand queries: Brand awareness, navigational intent health
  • Non-brand queries: SEO effectiveness, content discoverability
  • Ratio benchmark: Healthy sites have 60-80% non-brand traffic

URL Inspection API

POST https://searchconsole.googleapis.com/v1/urlInspection/index:inspect

{
  "inspectionUrl": "https://example.com/page",
  "siteUrl": "https://example.com/"
}

Key fields to check:

  • indexStatusResult.verdict: PASS / NEUTRAL / FAIL
  • indexStatusResult.coverageState: "Submitted and indexed" / "Crawled - currently not indexed"
  • mobileUsabilityResult.verdict: Mobile friendliness status
  • richResultsResult: Structured data validation

Index Coverage Report Categories

CategoryMeaningAction
ValidIndexed, no issuesMonitor
Valid with warningsIndexed but has issuesReview warnings
ErrorNot indexed due to errorsFix immediately
ExcludedIntentionally or unintentionally excludedVerify intent

Common Excluded reasons:

  • "Crawled - currently not indexed" → Content quality issue
  • "Discovered - currently not indexed" → Crawl budget issue
  • "Duplicate without user-selected canonical" → Canonical conflict
  • "Blocked by robots.txt" → Check robots.txt rules
  • "Page with redirect" → Verify redirect chain

Manual Actions & Security

  • Check for manual actions: spam, unnatural links, thin content, cloaking
  • Security issues: malware, deceptive pages, harmful downloads
  • Both require immediate remediation + reconsideration request

Google Analytics 4 (GA4) Data API

SEO-Specific GA4 Configuration

Key Reports for SEO

ReportDimensionsMetricsPurpose
Landing PagelandingPage, sessionSourcesessions, engagementRate, conversionsTop organic entry points
Organic PerformancesessionDefaultChannelGroup (filter: Organic)users, sessions, engagementRateOverall organic health
Content EngagementpagePath, pageTitlescreenPageViews, averageSessionDuration, scrollsContent quality signals
Geographiccountry, citysessions, conversionsLocal SEO validation
DevicedeviceCategorysessions, bounceRate, engagementRateMobile vs desktop performance

GA4 Data API v1beta

POST https://analyticsdata.googleapis.com/v1beta/properties/{propertyId}:runReport

{
  "dateRanges": [{"startDate": "30daysAgo", "endDate": "today"}],
  "dimensions": [
    {"name": "landingPage"},
    {"name": "sessionDefaultChannelGroup"}
  ],
  "metrics": [
    {"name": "sessions"},
    {"name": "engagementRate"},
    {"name": "conversions"}
  ],
  "dimensionFilter": {
    "filter": {
      "fieldName": "sessionDefaultChannelGroup",
      "stringFilter": {"value": "Organic Search"}
    }
  },
  "orderBys": [{"metric": {"metricName": "sessions"}, "desc": true}],
  "limit": 100
}

Key SEO Metrics in GA4

MetricGA4 NameSEO Relevance
Engagement RateengagementRateContent quality proxy (replaces bounce rate)
Avg Engagement TimeaverageSessionDurationDwell time signal
Scroll Depthscrolls (event)Content consumption depth
ConversionsconversionsSEO ROI measurement
Views per SessionscreenPageViewsPerSessionInternal linking effectiveness

GA4 + GSC Cross-Analysis

Link GA4 and GSC to trace the full funnel:

  1. GSC: Query → Impressions → Clicks → CTR → Position
  2. GA4: Landing Page → Engagement Rate → Pages/Session → Conversion
  3. Combined insight: Which queries drive engaged traffic that converts?

BigQuery Export (Large-Scale Analysis)

  • Enable GA4 → BigQuery export for raw event-level data
  • SQL queries for: content decay analysis, user journey mapping, conversion attribution
  • Cost: ~$5-20/month for most sites

GA4 SEO Dashboard Template (Looker Studio)

Essential widgets:

  1. Organic Sessions trend (30/90/365 days)
  2. Top Landing Pages by engagement rate
  3. Brand vs non-brand organic traffic (requires GSC link)
  4. Device split for organic traffic
  5. Conversion funnel from organic entry
  6. Content engagement heatmap (engagement rate × pageviews)
  7. Geographic organic performance

PageSpeed Insights API v5

API Endpoint

GET https://www.googleapis.com/pagespeedonline/v5/runPagespeed
  ?url=https://example.com
  &strategy=mobile
  &category=performance
  &category=accessibility
  &category=best-practices
  &category=seo
  &key={API_KEY}

Lab Data vs Field Data

AspectLab Data (Lighthouse)Field Data (CrUX)
SourceSimulated environmentReal users (Chrome)
MetricsLCP, TBT, CLS, SI, FCPLCP, INP, CLS, FCP, TTFB
When to useDebugging, pre-launchRanking signal, trend analysis
AvailabilityAlways (any URL)Only for URLs with sufficient traffic
Latency10-30s per testInstant (28-day rolling)

Batch Testing Script Pattern

# Test multiple URLs against PSI API
urls=("https://example.com" "https://example.com/about" "https://example.com/blog")
for url in "${urls[@]}"; do
  curl -s "https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=$url&strategy=mobile&key=$KEY" \
    | jq '{url: .id, performance: .lighthouseResult.categories.performance.score, lcp: .loadingExperience.metrics.LARGEST_CONTENTFUL_PAINT_MS}'
done

Lighthouse CI Integration

# .github/workflows/lighthouse-ci.yml
- name: Lighthouse CI
  uses: treosh/lighthouse-ci-action@v12
  with:
    urls: |
      https://example.com/
      https://example.com/about
    budgetPath: ./lighthouse-budget.json
    uploadArtifacts: true

Performance Budget Example

[{
  "path": "/*",
  "timings": [
    {"metric": "largest-contentful-paint", "budget": 2500},
    {"metric": "cumulative-layout-shift", "budget": 0.1},
    {"metric": "total-blocking-time", "budget": 200}
  ],
  "resourceSizes": [
    {"resourceType": "script", "budget": 300},
    {"resourceType": "image", "budget": 500},
    {"resourceType": "total", "budget": 1500}
  ]
}]

CrUX API (Chrome User Experience Report)

API Endpoint

POST https://chromeuxreport.googleapis.com/v1/records:queryRecord?key={API_KEY}

{
  "url": "https://example.com/page",
  "formFactor": "PHONE",
  "metrics": [
    "largest_contentful_paint",
    "interaction_to_next_paint",
    "cumulative_layout_shift",
    "experimental_time_to_first_byte"
  ]
}

CrUX vs PSI

  • CrUX: Field data only, 28-day rolling, real user metrics, includes INP
  • PSI: Lab + field data, on-demand, simulated metrics
  • CrUX History API (2024): 25 weekly data points for trend analysis
  • CrUX Vis (Nov 2025): Replaced old Looker Studio CrUX Dashboard

LCP Subparts (Feb 2025 CrUX Addition)

CrUX now exposes 4 LCP subparts for targeted optimization:

  • TTFB, Resource Load Delay, Resource Load Time, Element Render Delay

Third-Party Data Tools

Bright Data SERP API

Commercial SERP scraping service. Analysis guidance:

SERP Snapshot Analysis

  • SERP feature distribution: % of queries with AI Overviews, Featured Snippets, PAA, Video, Image packs
  • Position tracking: Rank position per keyword over time
  • Local SERP variation: Compare results across geos/devices
  • Competitor SERP share: Which domains appear most for your target queries

SERP Data Processing Pattern

Input: SERP JSON snapshots
Analysis:
1. Parse organic results → position, URL, title, snippet
2. Identify SERP features present → AI Overview, Featured Snippet, PAA, Video
3. Calculate domain share of voice → your domain vs competitors
4. Track position changes over time → trending up/down/stable
5. Identify SERP feature opportunities → queries where you rank but don't have the feature

DataForSEO API

Comprehensive SEO data provider. Analysis guidance:

Key Endpoints

EndpointUse Case
SERP APIReal-time SERP results for any keyword/location
Keywords DataSearch volume, CPC, competition, trends
Backlinks APILink profile analysis, referring domains
On-Page APITechnical SEO crawl data
Domain AnalyticsDomain authority, traffic estimates

Keyword Difficulty Framework

ScoreDifficultyTypical Requirements
0-20EasyQuality content, basic on-page SEO
21-40ModerateStrong content + some backlinks
41-60HardAuthority content + significant backlinks
61-80Very HardDomain authority + comprehensive content strategy
81-100Extremely HardYears of authority building + PR + brand signals

Domain Authority Benchmarks

DA RangeTypical Site Profile
0-20New sites, personal blogs
21-40Established blogs, small businesses
41-60Medium businesses, popular niche sites
61-80Large companies, major publications
81-100Wikipedia, Google, Amazon-tier

Competitor Data Collection

Backlink Monitoring via DataForSEO

POST https://api.dataforseo.com/v3/backlinks/backlinks/live

{
  "targets": ["competitor1.com", "competitor2.com"],
  "mode": "as_is",
  "filters": ["new_lost_date", ">", "2026-02-01"],
  "order_by": ["rank,asc"],
  "limit": 100
}

Key fields: url_from, domain_from, domain_from_rank, anchor, is_new, first_seen

Competitor Content Monitoring

Detect new competitor pages by diffing their sitemap weekly:

# Fetch and diff competitor sitemaps
curl -s "https://competitor.com/sitemap.xml" | grep -oP '<loc>\K[^<]+' > sitemap_this_week.txt
diff sitemap_last_week.txt sitemap_this_week.txt | grep "^>" | sed 's/^> //'
# Output: list of new URLs added this week

SERP Competitor Matrix

Track multiple competitors across keyword portfolio:

KeywordYour PosComp AComp BComp CSERP Features
[kw1]#3#1#5#8AIO, PAA
[kw2]#7#2#1#12FS, Video

Build this matrix by querying DataForSEO SERP API or Bright Data for each target keyword, extracting domain positions.

Competitor Intelligence Automation

TaskFrequencyAPIOutput
New backlinksWeeklyDataForSEO BacklinksProspect list for outreach
New contentWeeklySitemap diffContent gap opportunities
Ranking changesDailySERP API batchPosition delta matrix
SERP feature winsWeeklySERP APIFeature opportunity map
Technical changesMonthlyOn-Page APISpeed/schema comparison

Cross-reference: seo-backlinks skill for backlink analysis and outreach strategy. Cross-reference: seo-monitor skill for alert configuration.


Data Cross-Referencing Framework

4-Source Validation

For reliable SEO insights, cross-reference data from multiple sources:

GSC (queries + clicks) ──┐
                         ├── Cross-reference → Validated Insights
GA4 (engagement + conv) ─┤
                         ├── Anomaly detection → Flag discrepancies
PSI/CrUX (performance) ──┤
                         ├── Trend correlation → Cause-effect analysis
SERP data (rankings) ────┘

Common Cross-Analysis Patterns

  1. Traffic drop diagnosis: GSC impressions stable but clicks down → CTR issue → check title/description. GSC impressions down → ranking drop → check SERP changes
  2. Content quality validation: GA4 high engagement + GSC rising impressions = content working. GA4 low engagement + GSC stable = content quality issue
  3. Performance impact: CrUX LCP degradation → check if GA4 engagement dropped simultaneously → quantify performance-revenue impact
  4. Ranking correlation: SERP position change → correlate with CrUX CWV changes → identify performance-ranking relationship

Scoring

CategoryWeight
GSC Integration30%
GA4 Configuration25%
Performance APIs (PSI + CrUX)25%
Third-Party Data Utilization10%
Cross-Source Analysis10%

Output Format

Generate SEO-DATA-AUDIT.md with:

  1. Data Integration Score (0-100)
  2. GSC Configuration Status (API access, reports, alerts)
  3. GA4 SEO Setup (organic tracking, events, conversions)
  4. Performance Monitoring (PSI/CrUX integration status)
  5. Third-Party Tool Usage (what's available, what's missing)
  6. Cross-Reference Gaps (data sources not connected)
  7. Automation Opportunities (reporting, alerting, CI/CD)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.