agentleFS
zubair-trabzadazubair-trabzada/dataforseo-claude/seo/SKILL.md

seo

Skill149 starsChanged 7 months agoMITView on GitHub

Full SEO toolkit for Claude Code, powered by the DataForSEO API. Replaces the data layer of an SEO agency: keyword research, competitor analysis, rank tracking, backlink audits, technical site crawls, content gap analysis, and client-ready PDF reports — all with real Google search data, not scraping. Use when the user says "seo", "keyword research", "rank check", "backlinks", "competitor analysis", "site audit", "content gap", "compare domains", or passes a domain / URL / keyword for SEO analysis.

  • Reads credentials

173 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use seo-agentic, orch-pipeline and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AgriciDanielSkill

    seo-agentic

    Audit and fix agent readiness: the Lighthouse Agentic Browsing fraction, accessibility tree for agents, robots.txt and Content-Signal for AI agents, WAF treatment of agent traffic, llms.txt, Markdown delivery, ai-catalog.json, /.well-known discovery files, and WebMCP tools. Use when the user asks whether AI agents can use or browse the site, or about llms.txt or WebMCP. Exclude AI citability and brand signals (seo-geo) and commerce protocol depth (seo-ecommerce).

    Also in 6 projects that use this

  • renepfSkill

    orch-pipeline

    Shared orchestration engine for the orch-* skill family. Defines the gated Research-Plan-TDD-Review-Commit pipeline, the size classifier, the agent map, and the two human gates that the orch-* operation skills delegate to. Not usually invoked directly.

    Also in 5 projects that use this

  • timruebenachSkill

    seo-maps

    Maps intelligence for local SEO — geo-grid rank tracking, GBP profile auditing via API, review intelligence across Google/Tripadvisor/Trustpilot, cross-platform NAP verification (Google/Bing/Apple/OSM), competitor radius mapping, and LocalBusiness schema generation from API data. Three-tier capability: free (Overpass + Geoapify), DataForSEO (full intelligence), DataForSEO + Google (maximum coverage). Use when user says "maps", "geo-grid", "rank tracking", "GBP audit", "review velocity", "competitor radius", "maps analysis", "local rank tracking", "Share of Local Voice", or "SoLV".

    Also in 19 projects that use this

  • gromov0737Skill

    seo-image-gen

    Generate SEO-focused images such as OG cards, hero images, schema assets, product visuals, and infographics. Use when image generation is part of an SEO workflow or content publishing task.

    Also in 17 projects that use this

  • timruebenachSkill

    seo-sxo

    Search Experience Optimization: reads Google SERPs backwards to detect page-type mismatches, derives user stories from search intent signals, and scores pages from multiple persona perspectives. Identifies why well-optimized pages fail to rank by analyzing what Google rewards for each keyword. Use when user says "SXO", "search experience", "page type mismatch", "SERP analysis", "user story", "persona scoring", "why isn't my page ranking", "intent mismatch", or "wireframe".

    Also in 19 projects that use this

  • megastepSkill

    seo-sitemap

    Analyze existing XML sitemaps or generate new ones with industry templates. Validates format, URLs, and structure. Use when user says "sitemap", "generate sitemap", "sitemap issues", or "XML sitemap".

    Also in 28 projects that use this

  • +2 more from timruebenach

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 6 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 160 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before doing anything with a /seo ...

    line 23
  2. Distinctive:

    Step 3b — If credentials are NOT configured: STOP. Do not run the requested command.

    line 41
  3. Distinctive:

    Instead, paste exactly this setup wizard to the user:

    line 42
  4. Very specific:

    Write them to ~/.claude/skills/seo/.env using this format:

    line 74
  5. Distinctive:

    Run a verification call (cheap — ~$0.001):

    line 87
  6. Distinctive:

    Important: Never echo the credentials back to the user, never include them in any tool output, and never commit them to git.

    line 102
  7. Very specific:

    Add credentials to ~/.claude/skills/seo/.env:

    line 132
  8. Very specific:

    All scripts below live at ~/.claude/skills/seo/scripts/ and have shebangs pinned to the skill's isolated venv.

    line 146
  9. Very specific:

    Write it to ~/.claude/skills/seo/output/<domain>-audit.json.

    line 203
  10. Distinctive:

    Always include CPC so the user sees commercial value.

    line 215
  11. Very specific:

    Run overview, ranked (limit 50), and summary for both domains in parallel, plus an intersect call to find shared keywords.

    line 292
  12. Distinctive:

    Always print a tight executive summary first (≤8 lines), then the detail

    line 312
  13. Very specific:

    All scripts use the live endpoint variants (synchronous, no polling) except on_page/site which requires a true crawl

    line 320
  14. Very specific:

    Default location is United States, language en — pass --location / --language to override (e.g.

    line 322

“Common” is measured: kept by at least 6 in 10 of the 160 edited versions of this file we could read. “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 Agency Killer — Claude Code Skill (April 2026)

Philosophy: One command in, real Google data out. No browsing, no scraping, no guesswork — every metric below comes straight from DataForSEO's live APIs.


Phase 0: First-Run Setup Check (MANDATORY — run before ANY command)

Before doing anything with a /seo ... request, run this check. Do not skip it, even if the user just wants a quick command.

Step 1 — Read the credentials file:

cat ~/.claude/skills/seo/.env 2>/dev/null

Step 2 — Decide if credentials are configured:

The .env is NOT configured if any of these are true:

  • The file doesn't exist
  • DATAFORSEO_LOGIN is missing or contains the literal string your_login_email_here
  • DATAFORSEO_PASSWORD is missing or contains the literal string your_api_password_here

Step 3a — If credentials ARE configured: continue to the requested command, no message needed.

Step 3b — If credentials are NOT configured: STOP. Do not run the requested command. Instead, paste exactly this setup wizard to the user:

🔧 DataForSEO API Setup Required

This skill needs DataForSEO API credentials to fetch real Google SEO data.
One-time setup, takes 60 seconds:

  Step 1 — Sign up free (includes $1 trial credit, ~10 full audits):
           https://l.dataforseo.com/4epETnH

  Step 2 — After verifying your email, open API Access:
           https://app.dataforseo.com/api-access

  Step 3 — Copy your API Login (your email) and API Password
           (the long alphanumeric string under "API password")

  Step 4 — Paste both back to me in this exact format:

           login: your_email@example.com
           password: 1adc9025dc1a3e86

I'll save them securely to ~/.claude/skills/seo/.env (chmod 600) and run
your original command immediately after.

Then WAIT for the user's reply with credentials.

Step 4 — When the user pastes credentials:

  1. Parse login: and password: from their message (handle Login:, Password:, email-only, or just two lines as well — be lenient)
  2. Write them to ~/.claude/skills/seo/.env using this format:
DATAFORSEO_LOGIN=<their_login>
DATAFORSEO_PASSWORD=<their_password>
  1. Lock down permissions:
chmod 600 ~/.claude/skills/seo/.env
  1. Run a verification call (cheap — ~$0.001):
~/.claude/skills/seo/scripts/keyword_research.py volume "test" 2>&1
  1. Interpret the result:
ResultTell the user
Real JSON with search volume✅ Credentials verified. Running your audit now... then run the original command
Status 40104 — Please verify your account⚠️ Credentials work but DataForSEO needs you to verify your account first. Visit https://app.dataforseo.com/ and complete verification (usually email click + payment method on file). Then say "continue" and I'll retry.
HTTP 401 or 403 (not 40104)🔴 Those credentials didn't work. Common fix: make sure you copied the API password (long alphanumeric string from https://app.dataforseo.com/api-access), not your account login password.
Anything elseShow the raw error, suggest the user paste it back so we can debug

Important: Never echo the credentials back to the user, never include them in any tool output, and never commit them to git.


Quick Reference

CommandWhat It Does
/seo prospect <niche> <city>Find 30 local-business SEO prospects ranked by closeability score
/seo email <domain>Draft personalized cold email from a saved audit's findings
/seo audit <domain>Full SEO audit with parallel subagents → composite SEO Score (0-100) + PDF
/seo quick <domain>60-second snapshot — top metrics, no subagents
/seo keywords <seed>Keyword research (volume, CPC, difficulty, intent, related, long-tail)
/seo technical <domain>Technical site audit (On-Page API: speed, schema, errors, redirects)
/seo competitors <domain>Find competitors, get SERP overlap, content gap
/seo content <domain>Content quality + topical authority + missing topics
/seo backlinks <domain>Backlink profile, top referring domains, anchor text, toxicity
/seo rankings <domain> <keywords...>On-demand rank check across keyword set
/seo content-gap <you> <competitor>Keywords competitors rank for that you don't
/seo compare <domain1> <domain2>Head-to-head domain comparison
/seo watchlist add/list/checkTrack multiple domains/keywords across runs
/seo report <domain>Markdown deliverable
/seo report-pdf <domain>Client-ready PDF report from saved audit JSON

Setup

  1. Sign up at https://l.dataforseo.com/4epETnH (free trial includes $1 credit).
  2. Add credentials to ~/.claude/skills/seo/.env:
DATAFORSEO_LOGIN=your_login_email
DATAFORSEO_PASSWORD=your_api_password

The installer creates this file from .env.example and the shared client at scripts/dataforseo_client.py reads it.


How To Run Each Command

All scripts below live at ~/.claude/skills/seo/scripts/ and have shebangs pinned to the skill's isolated venv. Call them directly — no python3 prefix.

/seo quick <domain>

A 60-second snapshot. Run these three calls in parallel and synthesize:

~/.claude/skills/seo/scripts/domain_overview.py overview --target <domain>
~/.claude/skills/seo/scripts/backlinks.py summary --target <domain>
~/.claude/skills/seo/scripts/domain_overview.py ranked --target <domain> --limit 25

Produce a 5-line summary: estimated organic traffic, total keywords ranking, backlink count, top 5 keywords by volume, and one headline opportunity.

/seo prospect <niche> <city> — Find SEO clients

~/.claude/skills/seo/scripts/prospect_finder.py find \
    --niche "<niche>" \
    --city "<city + state>" \
    --limit 30 \
    --out ~/.claude/skills/seo/output/<niche>-<city>-prospects.json

Returns 30 local businesses ranked by closeability score (0-100) — the ones most likely to need (and pay for) SEO help. See the dedicated seo-prospect sub-skill for full output formatting.

/seo email <domain> — Draft cold outreach

Reads the saved audit JSON for the domain and drafts a personalized cold email that references specific findings (current ranking, missing meta tags, estimated traffic value of a single opportunity). No new API calls — pure synthesis from the audit data. See the dedicated seo-email sub-skill.

Pre-requisite: /seo audit <domain> must have run first.

/seo audit <domain> — Full Audit (Parallel Subagents)

Delegate to the five specialist subagents in parallel using the Agent tool:

SubagentWhat it produces
seo-keywordsKeyword Score + top opportunities
seo-technicalTechnical Score + crawl issues
seo-competitorsCompetitive Score + top 10 competitors + SERP overlap
seo-contentContent Score + content gap topics
seo-backlinksAuthority Score + backlink profile + toxicity flags

Each subagent calls the appropriate scripts, summarizes findings, and returns a structured block. Then:

  1. Compute the composite SEO Score as a weighted average: overall = 0.25*keywords + 0.25*technical + 0.20*competitors + 0.15*content + 0.15*authority
  2. Build an audit JSON object matching schema/audit_input.example.json.
  3. Write it to ~/.claude/skills/seo/output/<domain>-audit.json.
  4. Offer to generate the PDF: /seo report-pdf <domain>.

/seo keywords <seed>

~/.claude/skills/seo/scripts/keyword_research.py related "<seed>" --limit 200
~/.claude/skills/seo/scripts/keyword_research.py suggestions "<seed>" --limit 100

Group results by intent (informational, commercial, transactional, navigational). Surface the 20 best opportunities ranked by volume / (difficulty + 1). Always include CPC so the user sees commercial value.

/seo technical <domain>

~/.claude/skills/seo/scripts/on_page_audit.py site --target <domain> --max-crawl-pages 100

This kicks off a real crawl and waits for results (can take 2-5 minutes for 100 pages). When complete, group issues by severity (critical, high, medium, low) and produce a prioritized fix list. Always include estimated impact.

For a quick single-page audit:

~/.claude/skills/seo/scripts/on_page_audit.py page --url <url>

/seo competitors <domain>

~/.claude/skills/seo/scripts/domain_overview.py competitors --target <domain> --limit 20

For the top 5 competitors, also pull their ranked keywords and intersect with the user's domain to identify SERP overlap and content gaps. Output:

  • Top 10 competitors table (domain, organic keywords, traffic estimate)
  • Shared keywords vs. unique keywords for each competitor
  • 3 specific competitors to study most closely (and why)

/seo content <domain>

~/.claude/skills/seo/scripts/domain_overview.py ranked --target <domain> --limit 200

Cluster the ranked keywords into topics. Identify:

  • Strong topics (5+ keywords ranking top 10)
  • Weak topics (lots of keywords, none top 10 — opportunity)
  • Missing topics (competitors have them, you don't — use content_gap)

/seo backlinks <domain>

~/.claude/skills/seo/scripts/backlinks.py summary --target <domain>
~/.claude/skills/seo/scripts/backlinks.py refdomains --target <domain> --limit 50
~/.claude/skills/seo/scripts/backlinks.py anchors --target <domain> --limit 30

Report on: total backlinks, referring domains, dofollow ratio, top anchors (flag over-optimization), top referring domains by rank, and any toxicity indicators (spam score, suspicious patterns).

/seo rankings <domain> <keyword1> <keyword2> ...

~/.claude/skills/seo/scripts/serp_check.py rank --domain <domain> --keywords kw1 kw2 ...

Returns position (or "not in top 100") for each keyword. Group by:

  • 🟢 Position 1-3 (winning)
  • 🟡 Position 4-10 (page 1 — fight for top 3)
  • 🟠 Position 11-30 (close — push to page 1)
  • 🔴 Position 31-100 / not ranking (long-haul or pivot)

/seo content-gap <you> <competitor>

~/.claude/skills/seo/scripts/domain_overview.py content_gap --you <you> --competitors <comp>

Returns keywords the competitor ranks for and you don't. Sort by search volume × ranking position (closer to page 1 = easier wins for them).

/seo compare <domain1> <domain2>

Run overview, ranked (limit 50), and summary for both domains in parallel, plus an intersect call to find shared keywords. Output a side-by-side comparison table covering keywords, traffic, backlinks, referring domains, top shared keywords, and a verdict.

/seo report-pdf <domain>

~/.claude/skills/seo/scripts/generate_pdf_report.py \
    --input ~/.claude/skills/seo/output/<domain>-audit.json \
    --output ~/.claude/skills/seo/output/<domain>-report.pdf

Requires that /seo audit ran first and saved the JSON. Open the PDF when done.


Output Conventions

  • Save all intermediate JSON to ~/.claude/skills/seo/output/<domain>-<command>.json
  • Always print a tight executive summary first (≤8 lines), then the detail
  • Use score badges: 🟢 80+, 🔵 60-79, 🟡 40-59, 🔴 <40
  • End every audit with a "Top 3 Actions This Week" section

DataForSEO API Notes

  • All scripts use the live endpoint variants (synchronous, no polling) except on_page/site which requires a true crawl
  • Default location is United States, language en — pass --location / --language to override (e.g. --location "United Kingdom" --language en)
  • A typical full audit costs ~$0.10-0.30 in DataForSEO credits
  • The shared client is at scripts/dataforseo_client.py

When NOT To Use This Skill

  • AI search visibility (ChatGPT, Perplexity, Gemini citations) → use /geo instead
  • Google Business Profile / local pack tracking → DataForSEO has it but a dedicated local-SEO tool would be a better fit
  • Pure content writing (no data needed) → use a content skill directly

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.