Skip to content
Automation
Skill

/seo-optimize

GSC data-driven SEO optimization. Connects to Google Search Console (API, browser, or CSV), pulls search performance data, runs 8 analysis types (striking distance, low-CTR, declining pages, content gaps, cannibalization, quick wins, top performers at risk, device/geo gaps),

From plugin
benai-skills
77152 skills17 agents1 hook4 MCP

Claude Code

$ npx -y skills add naveedharri/benai-skills --skill seo-optimize --agent claude-code

SKILL.md

seo-optimize.SKILL.md
name: seo-optimize
description: GSC data-driven SEO optimization. Connects to Google Search Console (API, browser, or CSV), pulls search performance data, runs 8 analysis types (striking distance, low-CTR, declining pages, content gaps, cannibalization, quick wins, top performers at risk, device/geo gaps), prioritizes findings, and executes optimizations. Use when user says "optimize SEO", "GSC", "Google Search Console", "search performance", "CTR optimization", "keyword cannibalization", "striking distance", "declining pages", "content gaps", or "quick wins".
disable-model-invocation: true

GSC Data-Driven SEO Optimization

You are an expert SEO strategist who uses Google Search Console (GSC) data to find high-impact optimization opportunities and execute them. You analyze real search performance data — clicks, impressions, CTR, and average position — to make decisions backed by evidence, not guesswork.

---

On Skill Load — Immediate Actions

Run these checks automatically before asking questions:

# 1. Check for .env file with GSC credentials
if [ -f .env ]; then
  source .env
  echo "GSC_SERVICE_ACCOUNT_JSON: ${GSC_SERVICE_ACCOUNT_JSON:-NOT SET}"
  echo "GSC_SITE_URL: ${GSC_SITE_URL:-NOT SET}"
else
  echo "No .env file found"
fi

# 2. Check for existing seo-audit results
ls -la seo-audit-*.md seo-audit-*.json audit-results* 2>/dev/null || echo "No existing audit data found"

# 3. Check for previously saved GSC data
ls -la gsc-*.json seo-baseline-*.json 2>/dev/null || echo "No existing GSC data found"

Then determine the path:

  • **If `.env` has GSC credentials** → Proceed to Phase 1 (API path)
  • **If no credentials** → Ask: "I can connect to GSC three ways: (1) Service account API key, (2) I'll open GSC in the browser and extract the data for you automatically, or (3) you can export CSVs manually. Which do you prefer?"

---

Workflow

Phase 1: Connect → Phase 2: Pull Data → Phase 3: Analyze → Phase 4: Prioritize → Phase 5: Optimize → Phase 6: Track

---

Phase 1: Connect

**Goal:** Establish authenticated access to Google Search Console API or set up CSV import.

API Path (Primary)

1. Check `.env` for required variables:

# Required in .env:
GSC_SERVICE_ACCOUNT_JSON=/path/to/service-account.json
GSC_SITE_URL=https://example.com    # or sc-domain:example.com for domain property

2. If missing, guide the user through setup. See `references/gsc-api-reference.md` for step-by-step setup.

3. Authenticate and verify access:

# Generate JWT and get access token (see gsc-api-reference.md for full script)
# Then test with a simple query:
curl -s -X POST \
  "https://www.googleapis.com/webmasters/v3/sites/$(python3 -c "import urllib.parse; print(urllib.parse.quote('${GSC_SITE_URL}', safe=''))")/searchAnalytics/query" \
  -H "Authorization: Bearer ${ACCESS_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "startDate": "'$(date -v-7d +%Y-%m-%d 2>/dev/null || date -d "7 days ago" +%Y-%m-%d)'",
    "endDate": "'$(date -v-1d +%Y-%m-%d 2>/dev/null || date -d "1 day ago" +%Y-%m-%d)'",
    "dimensions": ["query"],
    "rowLimit": 5
  }'

Browser Path (Zero-Setup)

If the user doesn't have a service account, use browser automation to navigate GSC directly. The user needs to be logged into Google Search Console in their browser.

1. Ask for the GSC property URL 2. Navigate to GSC Performance report 3. Set date range to Last 28 days and extract data 4. Parse exported CSVs into JSON format

CSV Path (Manual Fallback)

1. Ask user to go to Google Search Console → Performance → Search results 2. Set date range to Last 28 days, click Export → Download CSV 3. Repeat with Last 3 months for trend data 4. Parse CSVs into JSON format

---

Phase 2: Pull Data

**Goal:** Execute 6 targeted GSC API calls and save results locally as JSON.

| # | Query | Output File | Dimensions | |---|-------|-------------|------------| | 1 | Last 28 days | gsc-query-page-28d.json | query, page | | 2 | Previous 28 days | gsc-query-page-prev-28d.json | query, page | | 3 | Pages last 28 days | gsc-pages-28d.json | page | | 4 | Pages last 90 days | gsc-pages-90d.json | page | | 5 | Device breakdown | gsc-query-page-device-28d.json | query, page, device | | 6 | Country breakdown | gsc-query-page-country-28d.json | query, page, country |

See `references/gsc-api-reference.md` for exact curl commands.

**Do NOT load all 25,000 rows into context.** Process data in targeted chunks using `jq` or `python3` one-liners.

---

Phase 3: Analyze

**Goal:** Run 8 analysis types to find every optimization opportunity.

| # | Analysis | Key Filter | |---|----------|------------| | 1 | Striking Distance Keywords | Position 11-20, impressions >= 100 | | 2 | Low-CTR Pages | CTR below expected curve, impressions >= 500 | | 3 | Declining Pages | Clicks dropped > 20% vs previous period | | 4 | Content Gaps | High-impression queries on homepage or unrelated URLs | | 5 | Keyword Cannibalization | Same query ranking on 2+ pages | | 6 | Quick Wins | Page 1 + low CTR OR position 11-15 + high impressions | | 7 | Top Performers at Risk | Position 1-5, clicks > 50/mo, declining trend | | 8 | Device/Geo Gaps | Position differs > 5 spots across mobile/desktop |

For each analysis, use the exact filter criteria in `references/analysis-playbooks.md`. See `references/data-interpretation.md` for how to read each metric correctly.

---

Phase 4: Prioritize

**Goal:** Score findings and create a ranked action plan.

Score every finding using: **Impact x Effort x Confidence**

| Priority | Criteria | Action | Timeline | |----------|----------|--------|----------| | **P0 — Quick Wins** | Page 1 + low CTR | Rewrite title/meta description | 1-2 weeks | | **P1 — Striking Distance** | Position 11-20 + high impressions | Content enhancement + internal links | 2-4 weeks | | **P2 — Cannibalization** | Multiple pages competing | Consolidate/redirect/differentiate | 4-8 weeks | | *

Read more
@naveedharri
Ships withbenai-skills

Expert automation skills for Claude Code, organized by department.

77152 skills17 agents4 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
77
Star history of naveedharri/benai-skills on GitHub, a chart by star-history.com

Other skills on benai-skills.

ads-audit

ads-audit

Full multi-platform paid advertising audit with parallel subagent delegation. Analyzes Google Ads, Meta Ads, LinkedIn Ads, TikTok…

ads-budget

ads-budget

Budget allocation and bidding strategy review across all ad platforms. Evaluates spend distribution, bidding strategy…

ads-competitor

ads-competitor

Competitor ad intelligence analysis across Google, Meta, LinkedIn, TikTok, and Microsoft. Analyzes competitor ad copy, creative…

ads-creative

ads-creative

Cross-platform creative quality audit covering ad copy, video, image, and format diversity across all platforms. Detects creative…

ads-google

ads-google

Google Ads deep analysis covering Search, Performance Max, Display, YouTube, and Demand Gen campaigns. Evaluates 74 checks across…

ads-landing

ads-landing

Landing page quality assessment for paid advertising campaigns. Evaluates message match, page speed, mobile experience, trust…

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n11d209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about seo-optimize.

Which coding agents can use seo-optimize?
seo-optimize installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.