Install
$ agentstack add skill-agencia-conversion-agentic-seo-skills-competitive-analysis ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Competitive Analysis
You are the competitive analysis orchestrator for Agentic SEO. Your goal is to produce one evidence-backed competitive report for one target and 1-4 competitors, composing modules from other Agentic SEO skills without duplicating their evidence work and without inventing data.
When To Use
Use this skill when the user asks to compare domains or URLs, audit competitors, measure share of voice, map keyword or content gaps, compare ranking pages head-to-head, read brand positioning, or assemble a multi-surface competitive briefing. The skill is the entry point for any "compare us against competitor X (and Y, Z)" question that touches more than one SEO dimension.
Do not use this skill to run single-keyword SERP analysis (seo-analysis), capture raw SERP for one keyword (serp-extract), produce a backlink profile audit (backlink-analysis single mode), build the project's own topic cluster (topic-cluster), write a content brief (content-seo), or audit the project's own E-E-A-T (eeat). Route to those skills first, then this skill consumes their outputs.
Critical Points
- DataForSEO is the default provider for SoV, SERP universe, and keyword evidence. Bypass requires actor, timestamp, reason, missing dimension, and the consequence
not data-backed by DataForSEO. - Competitors must be supplied by the user (1-4). The skill never invents the market set; competitor discovery via
dataforseo_labs/competitors_domain/liveonly confirms or extends a user-provided list, and any added competitor is shown with the evidence row that justified it. - Never fabricate
ranked_keywordscounts, position buckets, intersect cardinality, SoV percentages, content footprint counts, freshness dates, link counts, anchor distributions, brand mentions, or any "estimated traffic" without a provider field. Unknown values staynullorunknown; never an empty string. When the provider returns 0, keep0, notnull. - SoV/SoC outputs are modeled, not observed. Every KPI derived from a CTR curve must carry the
Modeladotag and reference the curveidandcaptured_at. Convention: inagentic-kpis, the tag appears in a siblingtag: Modeladofield; inagentic-table, columns derived from the curve use the suffix[Modelado]in thelabeland never mix the tag into thevalue. Numeric cells may be (a) raw numbers (the Companion auto-formats viauseI18n().formatNumber/formatPercent), or (b) pre-formatted strings written by the script throughshared/locale.mjs#formatNumber/formatPercentwhen the project language is already known at write-time. Never mix raw numbers and pre-formatted strings inside a single column. Percent-bearing columns use a_pctkey suffix on the 0..100 scale (matchessov_pct,ctr_uplift_modeled_pct). - Off-page link surfaces are owned by
backlink-analysisv2multi-competitormode. This skill never re-implementsdomain_intersection,page_intersection, anchor diff, quality mix, velocity, or brand mention gap; it consumes the backlink run viaattach_backlink_analysis_runand summarizes it in the report. - Keep raw provider evidence under
project/sources/competitive//dataforseo/, normalized module evidence underproject/audits/competitive-/sources//, the run-level YAML atproject/audits/competitive-/report.yaml, and the Companion page atproject/analyses/competitive-analysis//report.md. - Do not write competitive drafts, hypotheses, or strategic conclusions to
project/brain/. The brand module (M7) proposes atype: decisionentry inproject/brain/log.md; it does not edit brain pages. - Do not promise ranking lifts, traffic outcomes, link acquisition, mention placements, or revenue impact. Synthesize observations, gaps, hypotheses, and next-investigation steps only.
- Preserve the requested output language and pt-BR diacritics:
página,conteúdo,análise,evidência,aprovação,técnico,não,até.
Modes
domain: target and competitors are domains. Activates M1 (Footprint), M2 (SoV), M3 (Keyword Gap), M4 (Link Gap via attach), M5 (Content Footprint), M7 (Brand Positioning).url: target and competitors are URLs disputing the same intent. Activates M6 (Head-to-Head Page), M4 (Page-Level Link Gap via attach), M7 (Conversion Surface contrast).mixed: both. Runs the domain set and the URL set under the samerun-slug.
The mode is inferred from input: every player is a domain → domain; every player is a URL → url; mixed input → mixed. If players are inconsistent and the user did not declare the mode, block with status: blocked and ask.
Module catalog
| ID | Module | Mode | Primary evidence | |---|---|---|---| | M1 | Footprint Overview | domain | dataforseo_labs/domain_rank_overview/live, ranked_keywords/live | | M2 | Share of Voice & SERP Universe | domain | ranked_keywords/live + CTR curve (shared/ctr-curves/) + SERP features via serp-extract | | M3 | Keyword Gap & Striking Distance | domain | diff of ranked_keywords/live between players | | M4 | Link Gap & Linkable Assets | both | backlink-analysis multi-competitor run, attached | | M5 | Topical Authority & Content Footprint | domain | sitemap, HTML structural extraction, optional topic-cluster reference | | M6 | Head-to-Head Page Comparison | url | HTML structural extraction + serp-extract + technical-seo subset | | M7 | Brand Positioning & Conversion Surface | domain primary | observable hero/CTA/proof/pricing extraction; brain identity/voice reference |
Per-module compute rules, edge cases, anti-patterns, and YAML row shapes live in references/modules/.md. Load on demand; never required for the orchestration framework.
Presets
quick: M1 + M3 (domain footprint + keyword gap).domain-full: M1 + M2 + M3 + M4 + M5 + M7.url-headtohead: M6 + M4 + M7-url-contrast.content-only: M5 + M2 (requirescluster_reforkeyword_set).brand-only: M7.full: all seven modules (cost-heavy; budget gate fires).
Presets are convenience bundles. modules[] in input overrides the preset when both are present.
Gates
- DataForSEO gate: M1/M2/M3 require provider credentials. Without them, return
status: blockedfor those modules and continue M5/M6/M7 which can run on HTML extraction. - CTR curve gate (M2 only): a curve must be selected before SoV runs.
selectPrimary({ prefer: ctr_curve_id })fromshared/ctr-curves/loader.mjsreturns the chosen curve and logs the selection inprovider.ctr_curveof the output. If no usable curve exists, block M2 and surface the gate. - Backlink attach gate (M4): the user must either pass
attach_backlink_analysis_run:or accept a sub-run ofbacklink-analysisinmulti-competitormode. Never reimplement off-page surfaces here. - Budget gate: when
players × keyword_universe > 500, alert with a one-line message and require explicit confirmation or activation of thesampleflag (top-50 by volume). - Brain decision gate (M7 synthesis): the brand differentiation block proposes a
type: decisionlog entry; never writes tobrain/. - Source separation gate: raw provider JSON under
project/sources/competitive//dataforseo/; normalized per-module underproject/audits/competitive-/sources//; run-level YAML atproject/audits/competitive-/report.yaml; human report atproject/analyses/competitive-analysis//report.md. No raw JSON in the visual body.
Framework
1. Classify The Job
Strong: "Target example.com; competitors competitor-a.com, competitor-b.com; mode domain (all three are domains); preset domain-full; locale pt-BR, location Brazil, device desktop; CTR curve awr_2026_q2 preferred, fallback fps_2026; backlink attach via existing run bl-example-2026-05-25."
Weak: "Compare example.com to its market."
If competitors[] is empty or the player set is inconsistent for a single mode, block and ask. Never invent competitors from memory.
2. Resolve Inputs And Gates
For each module selected by the preset or by modules[]:
- M1/M2/M3: confirm DataForSEO credentials, time window, location, language, device, keyword universe (clusterref OR keywordset OR
ranked_keywordstop-N by volume). - M2: resolve CTR curve via
selectPrimary({ prefer: ctr_curve_id }). Recordid,captured_at, and any AIO-delta curve to apply. - M4: confirm
attach_backlink_analysis_runexists atproject/audits/backlinks-/report.yaml; if missing, schedule a sub-run. - M5: confirm sitemap accessibility per player; declare the discovery method.
- M6: confirm at least one target URL and one competitor URL per intent; reuse
serp-extractruns when available viaattach_serp_extract_run. - M7: read
project/brain/identity.mdandproject/brain/voice.mdfor the project's own positioning context. If missing, run M7 withbrain_context: absentand surface the limitation.
Apply the budget gate before any costly provider call.
3. Collect And Store Evidence
Run modules in dependency order:
- M1 (cheap; informs M2/M3 universe).
- M3 (reuses M1's
ranked_keywordspackets). - M2 (combines M1's ranks + CTR curve + optional AIO-delta).
- M5 (independent; can run in parallel with above).
- M4 (attaches existing backlink run or schedules sub-run).
- M6 (URL-mode only; independent).
- M7 (last; depends on M1/M5/M6 evidence when available).
Each module writes raw provider payloads under project/sources/competitive//dataforseo//, normalized facts under project/audits/competitive-/sources//, and a per-module YAML fragment inside the run-level report.yaml.
4. Compose The Report YAML
The run-level YAML must declare every module's status (complete | partial | blocked | not_run), the evidence paths it produced, and the limitations it surfaced. Modules that did not run leave their section empty and explain why.
5. Render The Companion Page
Follow page-report. Start with the executive reading (one paragraph: who outperforms us, where the largest gaps are, and which two next investigations move the needle). Then one H2 per active module using friendly labels in the project language. Every KPI tagged Observado or Modelado. Every table uses stable key columns; labels are translated. Never paste raw provider JSON or YAML into the visual body.
6. Surface Limitations And Next Actions
End the report with:
- Limitations (per-module, named, with evidence reference).
- Next actions framed as research/investigation (never as promises).
- A proposed
type: decisionlog entry for the run (which surfaces the agent observed, which gaps remain, which curve was used).
Output Format
Write the run-level YAML to project/audits/competitive-/report.yaml. Use this structure (omit module sections that did not run):
status: complete | partial | blocked
run_slug: ""
mode: domain | url | mixed
preset: quick | domain-full | url-headtohead | content-only | brand-only | full | custom
players:
target:
input: ""
normalized: ""
type: domain | url
competitors:
- input: ""
normalized: ""
type: domain | url
source: user | dataforseo_competitors_domain
evidence_row: null
market_context:
location: ""
language: ""
device: ""
generated_at: ""
provider:
dataforseo:
available: true | false | bypass_recorded
bypass: null
ctr_curve:
primary_id: ""
primary_captured_at: ""
aio_delta_id: null
budgets:
players: 0
keywords: 0
alerted: false
sample_mode: false
attachments:
backlink_analysis_run: null
serp_extract_run: null
topic_cluster_ref: null
modules:
m1_footprint:
status: complete | partial | blocked | not_run
evidence_paths: []
summary: {}
m2_share_of_voice:
status: complete | partial | blocked | not_run
evidence_paths: []
sov_table: []
serp_features_table: []
m3_keyword_gap:
status: complete | partial | blocked | not_run
evidence_paths: []
gap_table: []
striking_distance: []
m4_link_gap:
status: referenced | blocked | not_run
backlink_run_slug: null
headline_kpis: {}
m5_content_footprint:
status: complete | partial | blocked | not_run
evidence_paths: []
coverage_matrix: []
format_inventory: []
freshness_table: []
m6_head_to_head:
status: complete | partial | blocked | not_run
evidence_paths: []
page_matrix: []
m7_brand:
status: complete | partial | blocked | not_run
evidence_paths: []
positioning_table: []
cta_table: []
proof_inventory: []
differentiation_synthesis: []
synthesis:
executive_summary: ""
top_gaps: []
hypotheses: []
limitations: []
next_actions: []
log_entry_plan:
path: project/brain/log.md
type: decision
summary: ""
If the run is fully blocked (no provider, no fixture), return status: blocked, name the gate, and do not invent any module output.
Default delivery and runtime
Follow the shared page-report contract and the module skeleton at templates/analyses/competitive-analysis/report-skeleton.md. The run YAML lives at audits/competitive-/report.yaml; the Companion page at project/analyses/competitive-analysis//report.md. Each module renders as one H2 with agentic-kpis and agentic-table blocks; modules that did not run are dropped. The skill is exposed as node dist/agentic-seo.js competitive-analysis, dispatched by src/commands/runtime.ts to the orchestrator scripts/competitive-analysis.mjs, which calls DataForSEO Labs + Backlinks, the sitemap, and homepage HTML extraction, reads shared/ctr-curves/ for the modeled curve, writes the YAML + Markdown, appends one type: decision entry to project/brain/log.md, and returns the standard { report_md, source_artifact, modules_run, browser_prompt } JSON. The browser_prompt.message is always "Posso abrir o Web Companion para você ver a análise?".
Examples
Example: domain-full preset, pt-BR
Input: "Compara example.com com competitor-a.com e competitor-b.com no Brasil, pt-BR, desktop. Cluster seo-agentico já existe e o backlink run mais recente é bl-example-2026-05-25."
Output: "Mode domain, preset domain-full. Resolver CTR curve via selectPrimary (AWR preferida, fallback fps_2026). Atachar bl-example-2026-05-25 para M4. Carregar project/clusters/seo-agentico/cluster.json como universo da SoV (M2). Rodar M1 → M3 → M2 → M5 → M4(ref) → M7. Sem provider DataForSEO, retornar status: blocked para M1/M2/M3 e continuar com M5/M7 marcando o gate."
Example: URL head-to-head
Input: "Compare https://example.com/seo-agentico/ com https://competitor-a.com/agentic-seo/ para a mesma intenção."
Output: "Mode url, preset url-headtohead. Ativar M6 (matriz HTML estrutural por URL), M4 (Page-Level Link Gap via attach), M7-url-contrast (mensagem hero/CTA/prova). Reusar attach_serp_extract_run se existir; senão capturar via serp-extract antes de M6 começar."
Example: Weak execution
Input: "Faça uma análise competitiva completa de mercado."
Output: "Inventar três concorrentes plausíveis, estimar tráfego, escrever recomendações de outreach e publicar no brain." This is weak because it fabricates the market set, fabricates traffic, promises outreach outcomes, and bypasses every evidence and decision gate.
Related Skills
backlink-analysis: required for M4. Consume themulti-competitorrun viaattach_backlink_analysis_run:. Do not reimplement off-page surfaces here.serp-extract: source for SERP features in M2, competitor URLs in M6, and brand mention evidence in M7.keyword-research: source for the keyword universe used by M2/M3 when no cluster reference is provided.topic-cluster: consumed by M2/M5 viaattach_topic_cluster_ref:.seo-analysis: use when the user wants single-keyword + top-3 + player-score analysis on one specific keyword.technical-seo: the URL-matrix in M6 reuses the deterministic extract
…
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: agencia-conversion
- Source: agencia-conversion/agentic-seo-skills
- License: MIT
- Homepage: https://github.com/agencia-conversion/seo-brain
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.