Agent skill

SEO Competitor Analysis with DataForSEO

by zubair-trabzada in zubair-trabzada/dataforseo-claude

Finds a domain's real SEO competitors through DataForSEO Labs, ranked by SERP overlap, with shared keywords, traffic estimates and a 0-100 competitive score.

MITAuto-check: notesMarketing & SEO

Install SEO Competitor Analysis with DataForSEO

skills CLI
$ npx skills add zubair-trabzada/dataforseo-claude --skill seo-competitors -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zubair-trabzada/dataforseo-claude seo-competitors --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zubair-trabzada/dataforseo-claude.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/seo-competitors .claude/skills/seo-competitors && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
seo-competitors
GitHub stars
165
Token cost
~957 tokens
SKILL.md length
340 words
Files
1
Skills in repo
16
Repo updated
First seen
Licence
MIT

At a glance

Finds a domain's real SEO competitors through DataForSEO Labs, ranked by SERP overlap, with shared keywords, traffic estimates and a 0-100 competitive score.

  • Works in 7 steps: Parse login: and password: from their… → Write them to ~/.claude/skills/seo/.env → chmod 600 ~/.claude/skills/seo/.env → …
  • Finding which domains truly compete with yours in search results
  • SKILL.md covers Phase 0: Credential Preflight…, Run, What to surface and Competitive Score (0-100), plus 1 more section
  • Needs DATAFORSEO_PASSWORD

What it does

Before anything else the skill runs a shared preflight script. If DataForSEO credentials are missing, the agent shows a setup wizard, waits for you to paste a login and API password, saves them to a private `.env` file under the skills folder with restricted permissions, and checks them with a test call, handling the account-verification error separately. It is told never to echo, log or commit the credentials.

The analysis calls `domain_overview.py competitors` for the target domain, then pulls keyword intersections for the top five rivals. The report is a top-10 table of domain, common keywords, the rival's unique keywords, estimated traffic and domain rank, kept in the API's SERP overlap order, followed by overlap analysis for the top three and a Competitive Score from 0 to 100 showing how dominant the target is in its category. A run costs roughly five to eight cents of API usage.

When your agent uses it

  • Finding which domains truly compete with yours in search results
  • Quantifying the keyword gap against the top competitors
  • Preparing the competitor section of an SEO audit

Example prompts

  • “Who are the real SEO competitors for acme-plumbing.com?”
  • “Show shared and unique keywords between my site and its top three competitors.”
  • “Give me a competitive score for my domain within its category.”

Requirements

  • A DataForSEO API login and password
  • The shared seo skill scripts installed under `~/.claude/skills/seo/`
  • Pre-approved tools (allowed-tools): Bash, Write

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Parse login: and password: from their message.
  2. Write them to ~/.claude/skills/seo/.env
  3. chmod 600 ~/.claude/skills/seo/.env
  4. Run a verification call: ~/.claude/skills/seo/scripts/keyword_research.py volume "test"
  5. If verification succeeds (real JSON returned): tell the user "✅ Credentials verified. Running your command now..." and proceed with the…
  6. If status 40104 — Please verify your account: tell the user to verify their account at https://app.dataforseo.com/, then say "continue" to…
  7. If any other auth error: ask them to double-check the API password (the long alphanumeric string from…

What it can do on your machine

Read from SKILL.md and the folder at commit 67ac4f0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Write

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • dataforseo.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • DATAFORSEO_PASSWORD

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

SEO Competitor Analysis with DataForSEO loads about 957 tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 340 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~957

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:29
    2. Write them to `~/.claude/skills/seo/.env`:
  • NoteMentions a .env fileSKILL.md:34
    3. `chmod 600 ~/.claude/skills/seo/.env`
  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Write

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from zubair-trabzada/dataforseo-claude at commit 67ac4f0, republished under its MIT licence (© zubair-trabzada). 340 words, ~957 tokens.

Download SKILL.mdSave it as .claude/skills/seo-competitors/SKILL.md (or your agent's skills folder).
name
seo-competitors
description
Identify true SEO competitors and quantify the gap, powered by the DataForSEO Labs API. Returns the top 10 competing domains by SERP overlap, with shared and unique keywords, traffic estimates, and a Competitive Score (0-100) showing how dominant the target is in its category.
allowed-tools
Bash, Write

Phase 0: Credential Preflight (REQUIRED — run BEFORE anything else)

Before running any of the steps below, always invoke the shared preflight check:

bash
~/.claude/skills/seo/scripts/preflight.sh

If exit code is 0: credentials are configured — proceed with the rest of this skill silently.

If exit code is 2: the script prints the DataForSEO setup wizard to stdout. STOP, display that wizard to the user verbatim, and wait for them to paste credentials in this format:

login: their_email@example.com
password: their_api_password_here

When they reply:

  1. Parse login: and password: from their message.
  2. Write them to ~/.claude/skills/seo/.env:
    DATAFORSEO_LOGIN=<login>
    DATAFORSEO_PASSWORD=<password>
  3. chmod 600 ~/.claude/skills/seo/.env
  4. Run a verification call: ~/.claude/skills/seo/scripts/keyword_research.py volume "test"
  5. If verification succeeds (real JSON returned): tell the user "✅ Credentials verified. Running your command now..." and proceed with the original request.
  6. If status 40104 — Please verify your account: tell the user to verify their account at https://app.dataforseo.com/, then say "continue" to retry.
  7. If any other auth error: ask them to double-check the API password (the long alphanumeric string from https://app.dataforseo.com/api-access — not their account login password).

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


SEO Competitor Analysis Skill

Powered by: DataForSEO API — Labs competitors_domain + Labs domain_intersection. Cost: ~$0.05-0.08 per run.

Run

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

For each of the top 5 competitors, also pull intersection (shared keywords):

bash
~/.claude/skills/seo/scripts/domain_overview.py intersect --you <domain> --competitor <competitor>

What to surface

Top 10 competitors table
RankDomainCommon keywordsTheir unique keywordsEst. trafficDomain rank

The DataForSEO competitors endpoint already ranks them by SERP overlap with your target — keep that order.

SERP overlap analysis

For the top 3 competitors:

  • How many keywords does the target share with them? (intersect call)
  • What's the average position gap? (you at #15, them at #4 = -11 gap)
  • Any keywords where the target outranks the competitor? (rare wins to defend)
Strategic groupings
  • Direct competitors — share 30%+ of keywords
  • Adjacent competitors — share 10-30% (worth monitoring, not chasing)
  • Aspirational — much higher domain rank, shared keywords < 10% (long-term)

Competitive Score (0-100)

How dominant is the target in its competitive set?

competitive_score = 100 * (target_traffic / max(sum_of_top_10_traffic, 1))

Capped at 100. Above 30 = strong, 10-30 = mid-tier, <10 = challenger.

Return JSON shape

json
{
  "competitive_score": 24,
  "competitors": [
    {"domain": "...", "common_keywords": 1234, "unique_keywords": 5678, "traffic": 99999, "rank": 421},
    ...
  ],
  "serp_overlap": {
    "<competitor>": {"shared": 234, "avg_gap": -8.4, "wins": 12}
  },
  "strategic_groups": {
    "direct": ["a.com", "b.com"],
    "adjacent": ["c.com"],
    "aspirational": ["d.com"]
  }
}

© zubair-trabzada, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/seo-competitors of zubair-trabzada/dataforseo-claude.

Open the folder on GitHubat commit 67ac4f0

Compare with similar skills

SEO Competitor Analysis with DataForSEO next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

SEO Competitor Analysis with DataForSEO compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
SEO Competitor Analysis with DataForSEO this skillzubair-trabzada/dataforseo-claude165—~957Automated safety check: NotesMIT
SEO Competitorrampstackco/claude-skills945—~1.8kAutomated safety check: PassMIT
Semrush Toolgarrettjsmith/localseoskills121—~1.6kAutomated safety check: PassMIT
Evaluate Skillevery-app/open-seo23k—~1.8kAutomated safety check: NotesMIT
SEO Content Brief GeneratorAgriciDaniel/claude-seo19k2 repos~2.6kAutomated safety check: PassMIT
FLOW SEO FrameworkAgriciDaniel/claude-seo19k2 repos~1.4kAutomated safety check: PassMIT

Similar skills

  • SEO Competitor

    rampstackco/claude-skills

    Run a competitive SEO analysis comparing the user's site to chosen competitors across SERP overlap, content depth, backlink profiles, technical posture, and brand presence.

    945 GitHub stars~1.8k tokensUpdated 4 days ago
    Marketing & SEOAuto-check passed
  • Semrush Tool

    garrettjsmith/localseoskills

    When the user wants keyword research with search volume, competitive keyword analysis, site audit data, position tracking, or competitor organic analysis.

    121 GitHub stars~1.6k tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed
  • Evaluate Skill

    every-app/open-seo

    Test a candidate OpenSEO skill end to end by running fresh, isolated Codex sessions against the local backend and scoring the reports they save.

    23k GitHub stars~1.8k tokensUpdated 2 days ago
    Marketing & SEOAuto-check: notes
  • SEO Content Brief Generator

    AgriciDaniel/claude-seo

    Builds research-backed SEO content briefs with competitor scoring, per-section word counts and page-type templates, for new pages or improving existing ones.

    19k GitHub starsUsed in 2 repos~2.6k tokens
    Marketing & SEOAuto-check passed
  • FLOW SEO Framework

    AgriciDaniel/claude-seo

    Brings the FLOW framework's stage-specific SEO prompts into the agent, from keyword discovery through backlinks, on-page work and conversion to local SEO, loaded on demand.

    19k GitHub starsUsed in 2 repos~1.4k tokens
    Marketing & SEOAuto-check passed
  • SEO Dataforseo

    AgriciDaniel/codex-seo

    Live SEO data via DataForSEO MCP server. An agent skill from AgriciDaniel/codex-seo.

    799 GitHub starsUsed in 2 repos~4.6k tokens
    Marketing & SEOAuto-check passed

More from zubair-trabzada/dataforseo-claude

All 16 skills in this repo
  • DataForSEO SEO Toolkit

    zubair-trabzada/dataforseo-claude

    Runs keyword research, rank checks, backlink and competitor analysis, site audits and PDF reports from live Google data through the DataForSEO API.

    165 GitHub stars~3.2k tokensUpdated 4 mo ago
    Auto-check: notes
  • DataForSEO Site Audit

    zubair-trabzada/dataforseo-claude

    Runs a full SEO audit through the DataForSEO API with five parallel subagents and produces a composite 0 to 100 SEO score, an action plan and an audit JSON for PDF export.

    165 GitHub stars~1.5k tokensUpdated 4 mo ago
    Auto-check: notes
  • Backlink Audit via DataForSEO

    zubair-trabzada/dataforseo-claude

    Audits a domain's backlink profile with the DataForSEO Backlinks API and reports referring domains, anchor text, dofollow ratio and a toxicity assessment.

    165 GitHub stars~1k tokensUpdated 4 mo ago
    Auto-check: notes
  • SEO Domain Comparison

    zubair-trabzada/dataforseo-claude

    Compares two domains side by side with DataForSEO data on traffic, keywords, backlinks, referring domains and keyword overlap, then states which has the stronger position.

    165 GitHub stars~892 tokensUpdated 4 mo ago
    Auto-check: notes
  • SEO Content Authority

    zubair-trabzada/dataforseo-claude

    Clusters the keywords a domain ranks for into topics, compares coverage with competitors and returns a content score using DataForSEO data.

    165 GitHub stars~1k tokensUpdated 4 mo ago
    Auto-check: notes
  • SEO Content Gap

    zubair-trabzada/dataforseo-claude

    Find keywords competitors rank for that you don't, via the DataForSEO Labs domainintersection endpoint.

    165 GitHub stars~823 tokensUpdated 4 mo ago
    Auto-check: notes

Categories

Questions about SEO Competitor Analysis with DataForSEO

What does SEO Competitor Analysis with DataForSEO do?

Finds a domain's real SEO competitors through DataForSEO Labs, ranked by SERP overlap, with shared keywords, traffic estimates and a 0-100 competitive score. Before anything else the skill runs a shared preflight script.env` file under the skills folder with restricted permissions, and checks them with a test call, handling the account-verification error separately.

When should I use SEO Competitor Analysis with DataForSEO?

SEO Competitor Analysis with DataForSEO fits situations like: finding which domains truly compete with yours in search results; quantifying the keyword gap against the top competitors; preparing the competitor section of an SEO audit.

How do I install SEO Competitor Analysis with DataForSEO in Claude Code?

Run `npx skills add zubair-trabzada/dataforseo-claude --skill seo-competitors -a claude-code`. Or copy the skill folder (skills/seo-competitors in zubair-trabzada/dataforseo-claude) into .claude/skills/seo-competitors in your project. Claude Code loads it when a task matches its description.

How do I install SEO Competitor Analysis with DataForSEO in Codex?

Run `npx skills add zubair-trabzada/dataforseo-claude --skill seo-competitors -a codex`. Or copy the skill folder (skills/seo-competitors in zubair-trabzada/dataforseo-claude) into .agents/skills/seo-competitors in your project. Codex loads it when a task matches its description.

Can I use SEO Competitor Analysis with DataForSEO in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zubair-trabzada/dataforseo-claude --skill seo-competitors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/seo-competitors, .gemini/skills/seo-competitors, .github/skills/seo-competitors and .opencode/skills/seo-competitors in your project.

What does SEO Competitor Analysis with DataForSEO need to run?

Going by SKILL.md and its folder, SEO Competitor Analysis with DataForSEO needs credentials named DATAFORSEO_PASSWORD. Our summary lists: A DataForSEO API login and password; The shared seo skill scripts installed under `~/.claude/skills/seo/`. Its frontmatter pre-approves these tools: Bash, Write.

Does SEO Competitor Analysis with DataForSEO access the network?

SKILL.md names 1 domain. As links in the text: dataforseo.com. This is read from the text; nothing was executed.

Is SEO Competitor Analysis with DataForSEO safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file; pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does SEO Competitor Analysis with DataForSEO use?

SEO Competitor Analysis with DataForSEO is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does SEO Competitor Analysis with DataForSEO use?

About 957 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to SEO Competitor Analysis with DataForSEO?

Skills that share tags, products or a category with SEO Competitor Analysis with DataForSEO: SEO Competitor (rampstackco/claude-skills, 945 stars), Semrush Tool (garrettjsmith/localseoskills, 121 stars), Evaluate Skill (every-app/open-seo, 23k stars) and SEO Content Brief Generator (AgriciDaniel/claude-seo, 19k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains SEO Competitor Analysis with DataForSEO?

zubair-trabzada (a GitHub user) maintains it in zubair-trabzada/dataforseo-claude, which has 165 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on May 20, 2026.

Source: zubair-trabzada/dataforseo-claude on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.