seo-content-gap
Skill162 starsChanged 7 months agoMITView on GitHub
Find keywords competitors rank for that you don't, via the DataForSEO Labs domain_intersection endpoint. Surfaces the highest-leverage content opportunities sorted by search volume and the competitor's ranking position, with cross-competitor consensus signals.
- Reads credentials
In this repository15 other files it gives its agents.
- seoSkill
- seo-auditSkill
- seo-backlinksSkill
- seo-compareSkill
- seo-competitorsSkill
- seo-contentSkill
- seo-emailSkill
- seo-keywordsSkill
- seo-prospectSkill
- seo-quickSkill
- seo-rankingsSkill
- seo-report-pdfSkill
- seo-reportSkill
- seo-technicalSkill
- seo-watchlistSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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
- Distinctive: line 11
Before running any of the steps below, always invoke the shared preflight check:
- Very specific: line 29
Write them to ~/.claude/skills/seo/.env:
- Very specific: line 35
Run a verification call: ~/.claude/skills/seo/scripts/keyword_research.py volume "test"
- Distinctive: line 36
If verification succeeds (real JSON returned): tell the user "✅ Credentials verified.
- Very specific: line 37
If status 40104 — Please verify your account: tell the user to verify their account at https://app.dataforseo.com/, then say "continue" to …
- Distinctive: line 38
If any other auth error: ask them to double-check the API password (the long alphanumeric string from https://app.dataforseo.com/api-access …
- Distinctive: line 84
After processing all competitors, find keywords that multiple competitors rank for.
≈ “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.
Files
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.shIf 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_hereWhen they reply:
- Parse
login:andpassword:from their message. - Write them to
~/.claude/skills/seo/.env:DATAFORSEO_LOGIN=<login> DATAFORSEO_PASSWORD=<password> chmod 600 ~/.claude/skills/seo/.env- Run a verification call:
~/.claude/skills/seo/scripts/keyword_research.py volume "test" - If verification succeeds (real JSON returned): tell the user "✅ Credentials verified. Running your command now..." and proceed with the original request.
- If status
40104 — Please verify your account: tell the user to verify their account at https://app.dataforseo.com/, then say "continue" to retry. - 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.
Content Gap Skill
Powered by: DataForSEO API — Labs
domain_intersection(target1=competitor, target2=you, intersections=false). Cost: ~$0.02 per competitor compared.
Run
~/.claude/skills/seo/scripts/domain_overview.py content_gap --you <you> --competitors <c1> <c2> <c3>You can pass 1–5 competitors. The script returns, per competitor, the keywords where they rank in the top 100 and you don't.
Sort and surface
For each competitor's gap list, sort by:
priority = search_volume * (101 - competitor_position)Higher = the competitor is ranking high for a high-volume keyword you have nothing for — hot opportunity.
Output structure
For each competitor:
Gap vs <competitor>: <N> keywords where they rank, you don't
Top 10 to pursue:
1. "<keyword>" — they're #<pos>, vol <V>, KD <D>, $<CPC>
→ They rank a <page_type> at <url>
2. ...Cross-competitor consensus
After processing all competitors, find keywords that multiple competitors rank for. These are the strongest signals — if every competitor has content on a topic and you don't, that's a clear hole in your strategy.
Consensus gaps (3+ competitors rank, you don't):
- "<keyword>" ← 4 competitors rank top 20
- "<keyword>" ← 3 competitors rank top 10End with a 5-article content roadmap with target keyword, working title, priority score, and which competitor's article to study.
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
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.

