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

seo-competitors

Skill162 starsChanged 7 months agoMITView on GitHub

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.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 11
  2. Very specific:

    Write them to ~/.claude/skills/seo/.env:

    line 29
  3. Very specific:

    Run a verification call: ~/.claude/skills/seo/scripts/keyword_research.py volume "test"

    line 35
  4. Distinctive:

    If verification succeeds (real JSON returned): tell the user "✅ Credentials verified.

    line 36
  5. Very specific:

    If status 40104 — Please verify your account: tell the user to verify their account at https://app.dataforseo.com/, then say "continue" to …

    line 37
  6. Distinctive:

    If any other auth error: ask them to double-check the API password (the long alphanumeric string from https://app.dataforseo.com/api-access …

    line 38

≈ “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

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

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

~/.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

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

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

~/.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

{
  "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"]
  }
}

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.