competitor-analysis

competitor-analysis is a skill for Claude Code from XuanRanL/loamwright-SEO-Skill. It costs 46 tokens per session (573 once invoked), scanned A, original, Apache-2.0.

A research tool that examines the five leading competing pages in Google search results (SERPs) for a topic. It records their headings, word counts, structured data, and areas they cover poorly.

In plain words
What is it for?
Use it to compare competing articles, find missing content, and review new competitor domains before deciding whether they may be cited.
Why use it?
It replaces manual page-by-page comparison when you need to understand what already ranks. It also highlights possible topics or details your own page could cover better.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Part of the xuanran-seo-blog-writer plugin — 68 skills, 34 agents, 4 hooks shipped together

Good fit Use it to compare competing articles, find missing content, and review new competitor domains before deciding whether they may be cited.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xuanranl/loamwright-seo-skill/competitor-analysis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add XuanRanL/loamwright-SEO-Skill --skill competitor-analysis
Clone the repo
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill

Made for: Claude Code.

Or install xuanran-seo-blog-writer, the plugin that ships this one along with the rest of its 68 skills, 34 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for competitor-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/xuanranl/loamwright-seo-skill/competitor-analysis/github.svg)](https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/competitor-analysis)
Your own site
<a href="https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/competitor-analysis"><img src="https://agentmods.dev/badge/skills/xuanranl/loamwright-seo-skill/competitor-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for competitor-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/competitor-analysis"><img src="https://agentmods.dev/badge/skills/xuanranl/loamwright-seo-skill/competitor-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 573 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00573
Opus 5 $0.00023 $0.00287
Sonnet 5 $0.00009 $0.00115
Haiku 4.5 $0.00005 $0.00057

Measured 6d ago against content hash 309e14eefe6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

competitor-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

subskills/research/competitor-analysis/SKILL.md · 54 lines

What it actually says

Competitor Analysis

Inputs

  • research.json (top-10 SERP URLs from keyword-research)
  • Own domain (excluded from competitor list)

Workflow

  1. Filter top-10 to top-5 (exclude own domain + aggregators like Amazon if not aggregator-focused)

  2. For each: python -m scripts.fetch.multi_tier_fetch {url} (use 5-tier waterfall)

  3. python -m scripts.fetch.parse_html {html_file} --json to extract title/meta/H2/schema

  4. LLM analyzes content_gap: what did THIS competitor cover shallowly vs deeply?

  5. Save to workspace/{task}/research/competitors/{i}.json

  6. Competitor-citation candidate review (Rule 8). The SERP competitor domains you just identified are, by definition, peers ("同行"). Diff them against the project's enforced blocklist and surface any NEW ones for the operator to approve — never auto-block (avoids false-positives on neutral sites that merely rank, e.g. Wikipedia/.gov):

    python -m scripts._core.competitor_domains --task {task_id} --json   # current blocklist + enabled?
    

    For each competitor domain NOT already in do_not_cite_domains, append it to workspace/{task}/competitor-candidates.json as {"domain": ..., "source": "serp", "keyword": ...} and note it in the research handoff so the operator can promote genuine competitors into business-context.json :: citation_source_policy.do_not_cite_domains. These candidates are NOT enforced until promoted.

Output schema fragment (added to research.json)

"competitor_titles": [
  {
    "title": "Best Fishing Rods 2026 — Saltwater Guide",
    "url": "https://competitor.com/...",
    "domain": "competitor.com",
    "word_count_estimate": 3200,
    "content_gap": "Missing pricing comparison; weak on saltwater-specific testing",
    "schema_types": ["Article", "BlogPosting"],
    "freshness_days": 42
  }
]

Cost

  • 5 × Tavily advanced extract = 5 credits ($0.04)
  • 1 × Claude Opus synthesis = $0.05
  • Total: ~$0.10
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 54 lines · 0 tokens per session scan A 309e14eefe6d

Subscribe to this mod's changes

competitor-analysis is a skill published in the GitHub repository XuanRanL/loamwright-SEO-Skill (47 stars, last pushed 22d ago), licensed Apache-2.0. It adds 46 tokens to every session and 573 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

geo-platform-optimizer

Platform-specific AI search optimization — audit and optimize for Google AI Overviews, ChatGPT, Perplexity, Gemini, and Bing Copilot individually.

zubair-trabzada/geo-seo-claude · 34 tokens

four-core-documents

Produce Part 3 of the 12-Part engagement: the four strategic-spine documents across 61 steps — 3.1 Business & SBU Analysis, 3.2 Segmentation Framework, 3.3 Brand Positioning & Communications, 3.4 DMFlow — with --doc single-document runs, --view v2 re-runs, and a --combined executive stitch. Triggers on…

indranilbanerjee/digital-marketing-pro · 164 tokens

seo-plan

Build a 12-month SEO strategy and phased roadmap with industry templates (SaaS, ecommerce, local, publisher, agency). With fresh specialist outputs it runs as a dispatcher: scores four pillars — technical, content, topical, AI search — and makes the weakest pillar the plan's lead theme; missing specialists re-run only…

indranilbanerjee/digital-marketing-pro · 177 tokens

continuous-improvement-loop

Run Part 12 of the engagement methodology — the continuous improvement loop that aggregates quarterly-review, customer-feedback, competitive, and operating signals into a Quarterly Product & Offering Improvement Brief for business leadership, plus fast 1-3 page ad-hoc briefs when a significant signal lands…

indranilbanerjee/digital-marketing-pro · 148 tokens

import-guidelines

Import brand guidelines — voice and tone rules, messaging, banned words and restrictions, channel styles, visual identity — and structure them into enforceable markdown files in the brand's guidelines layer, auto-classified by category, conflict-checked against the brand profile, and merged with existing rules rather…

indranilbanerjee/digital-marketing-pro · 129 tokens

import-sop

Import agency Standard Operating Procedures — approval workflows, campaign launch checklists, escalation procedures, QA steps — and structure them into numbered, role-assigned steps with human-approval gates marked. SOPs save at the agency level so they apply across every client brand, not per-brand. Triggers on…

indranilbanerjee/digital-marketing-pro · 132 tokens