Competitor Analysis
BrowserbaseOfficialCreated by browserbase
- Skill
- Workflow
- Business and productivity
- MIT
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a comprehensive competitor research and intelligence pipeline. It uses a multi-stage process to discover competitors, perform deep-dive research across marketing, technical, and social channels, and synthesize findings into a professional HTML report. The output includes a side-by-side feature and pricing matrix, per-competitor deep dives, and a chronological mentions feed. It is designed to help product teams and sales organizations identify their competitive positioning, build battle cards, and understand market gaps through verifiable, cited evidence.
What it does
- Auto-discovers competitors using search queries and comparison-page analysis.
- Performs deep research across marketing, technical, social, and news channels.
- Generates a side-by-side feature and pricing matrix with verified data.
- Creates an HTML report with overview, deep dives, and a chronological mentions feed.
- Synthesizes battle cards with landmines, objection handlers, and talk tracks.
- Fact-checks high-stakes claims against research findings to ensure accuracy.
When to use it
- When you need to perform a comprehensive competitive analysis for product strategy.
- When you need to build a feature or pricing matrix to compare your product against rivals.
- When you need to prepare sales teams with evidence-based battle cards and objection handlers.
- When you want to identify market gaps and verify your own product's competitive moats.
Advantages
- Evidence-based: Every claim is tied to a cited source URL.
- Comprehensive: Covers marketing, technical, and social signals.
- Strategic: Produces actionable battle cards for sales enablement.
- Automated: Reduces manual research time by orchestrating parallel subagents.
Usage examples
- “Run a competitor analysis for my company, Acme Search, focusing on AI search APIs.”
- The agent will research Acme Search, discover competitors, perform deep enrichment, and generate an HTML report with a comparison matrix and battle cards.
- “Who are the main competitors for our product and how do we compare on pricing and features?”
- The agent will identify key competitors, extract their pricing and feature sets, and compile a side-by-side matrix for direct comparison.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/browserbase/competitor-analysis/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip competitor-analysis.zip -d .agents/skills
Documentation by browserbase
Competitor Analysis
Analyze a user's competitors. Uses Browserbase Search API for discovery and a 4-lane Plan→Research→Synthesize pattern for enrichment — outputting an HTML report with overview, per-competitor deep dives, a side-by-side feature/pricing matrix, and a chronological mentions feed.
Required: BROWSERBASE_API_KEY env var and the browse CLI installed (npm install -g browse).
First-run setup: On the first run you'll be prompted to approve browse cloud fetch, browse cloud search, cat, mkdir, sed, etc. Select "Yes, and don't ask again for: browse cloud fetch:*" (or equivalent) for each. To permanently approve, add these to your ~/.claude/settings.json under permissions.allow:
"Bash(browse:*)", "Bash(bunx:*)", "Bash(bun:*)", "Bash(node:*)",
"Bash(cat:*)", "Bash(mkdir:*)", "Bash(sed:*)", "Bash(head:*)", "Bash(tr:*)", "Bash(rm:*)"Path rules: Always use full literal paths in Bash — NOT ~ or $HOME. Resolve the home directory once and use it everywhere. When building subagent prompts, replace {SKILL_DIR} with the full literal path.
Output directory: All output goes to ~/Desktop/{company_slug}_competitors_{YYYY-MM-DD}/. This directory contains one .md file per competitor plus the generated HTML views and CSV.
CRITICAL — Tool restrictions (applies to main agent AND all subagents):
All web searches: use
browse cloud search. NEVER WebSearch.All page fetches: use
browse cloud fetch --allow-redirects(returns markdown by default; add--format rawif you need the original HTML, then pipe throughsed ... | tr -s ' \n'to extract text). NEVER WebFetch. 1 MB response limit — fall back tobrowse get markdown(afterbrowse open <url> --remote) for JS-heavy pages.All research output: subagents write one markdown file per competitor to
{OUTPUT_DIR}/{competitor-slug}.mdusing bash heredoc. NEVER use the Write tool orpython3 -c. Seereferences/example-research.mdfor the file format.Report compilation: use
node {SKILL_DIR}/scripts/compile_report.mjs {OUTPUT_DIR} --user-company "{user_company}" --open— generatesindex.html,competitors/*.html,matrix.html,mentions.html,results.csvin one step and opens overview.URL deduplication:
node {SKILL_DIR}/scripts/list_urls.mjs /tmp --prefix competitor.Subagents must use ONLY the Bash tool.
Main agent NEVER reads raw discovery JSON batch files.
CRITICAL — Minimize permission prompts:
Subagents MUST batch ALL file writes into a SINGLE Bash call using chained heredocs.
Batch ALL searches and ALL fetches into single Bash calls via
&&chaining.
Pipeline Overview
Follow these 8 steps in order. Do not skip or reorder.
User Company Research — Deeply understand the user's company, produce
precise_category+category_include_keywords+exclusion_listDepth Mode + Seed Input — Choose depth, accept optional seed competitor URLs
Discovery (3 parallel waves) — Wave A (alternatives), Wave B (precise category), Wave C (comparison-page graph via "X vs Y" title parsing)
Gate —
scripts/gate_candidates.mjsfetches each candidate's hero text (viabrowse cloud fetch) and drops wrong-category URLsConfirm enrichment set with the user — Present PASS / UNKNOWN / rejected-brand-matches via
AskUserQuestion. User ticks the real ones, adds any the discovery missed. Skipping this step is wasteful because enrichment is expensive (25 subagents × depth budget) and the gate is imperfect (JS-heavy homepages, Cloudflare challenges, semantic-variant taglines)Deep Enrichment (5 subagents per competitor in deep/deeper modes) — Marketing, Discussion, Social, News, Technical — each lane a separate subagent writing to
partials/; thenmerge_partials.mjsconsolidates. In deep/deeper modes, Step 5d adds a 6th Battle Card synthesis lane AFTER Step 5c fact-check completes — produces per-competitor Landmines / Objection Handlers / Talk Tracks grounded in cited evidence.Screenshots —
capture_screenshots.mjsvia thebrowseCLI captures a 1280×800 homepage hero per competitorHTML Report — Overview + per-competitor (with embedded hero screenshot + Battle Card card) + matrix + mentions views
Step 0: Setup Output Directory
OUTPUT_DIR=~/Desktop/{company_slug}_competitors_{YYYY-MM-DD}
mkdir -p "$OUTPUT_DIR"Replace {company_slug} with the user's company name (lowercase, hyphenated) and {YYYY-MM-DD} with today's date. Pass {OUTPUT_DIR} as a full literal path to every subagent.
Clean up discovery batch files from prior runs:
rm -f /tmp/competitor_discovery_batch_*.jsonRe-runs must start from a clean $OUTPUT_DIR. compile_report.mjs ingests every {slug}.md in the directory, and merge_partials.mjs only overwrites the slugs in the current set — it never deletes ones dropped from a new enrichment set. Since the directory is keyed by date, a same-day re-run with a different competitor set would leave stale competitors in the overview, matrix, CSV, and screenshots. Either use a fresh directory or clear the prior per-competitor files first:
rm -f "$OUTPUT_DIR"/*.md && rm -rf "$OUTPUT_DIR"/partials "$OUTPUT_DIR"/screenshotsStep 1: User Company Research
This step sets the baseline for what "competitor" means AND produces the verified data the Step 5b matrix will use for the userCompany row.
Rule: The user's company gets the same 5-lane research depth as competitors. Do NOT fill userCompany in matrix.json from memory — it will ship false claims to the user's own team. On a search-API run (user company Exa, 2026-04-23), skipping this step produced a matrix that claimed Exa had a "published uptime SLA" (there is no numeric public SLA — only a status page) and marked its MIT-licensed Python SDK as open-source: false (the repo is github.com/exa-labs/exa-py, LICENSE confirmed MIT). Both errors would have surfaced in the "Where you're winning" card as fabricated moats.
Process:
Ask the user for their company name or URL.
Check for an existing profile at
{SKILL_DIR}/profiles/{company-slug}.json. If it exists, load it and confirm with the user: "I have your profile from {researched_at}. Still accurate?" — if yes, skip to Step 2 BUT still run the partial-lane enrichment below so matrix synthesis has fresh feature evidence. The profile format is shared withcompany-research(same shape). If a user already has a profile saved undercompany-research/profiles/, you may copy it into this skill's profiles directory rather than re-researching.Run the full 5-lane enrichment on the user's company — identical to the competitor pattern in Step 5. For each lane, spawn a Bash-only subagent that writes to
{OUTPUT_DIR}/partials/{user-slug}.{lane}.md:marketing — tagline, positioning, pricing tiers, features, integrations, open-source components (SDK repos + licenses), regions offered, compliance (SOC 2 / HIPAA / trust portal URL)
technical — REST + streaming API support (with docs URLs), SDK languages, MCP server URL, neural vs keyword retrieval modes, reranking / highlights / live-crawl specifics, published uptime SLA (actual %, not status page), third-party retrieval-quality benchmarks
discussion, social, news — optional in quick mode, recommended in deep+ See
references/research-patterns.md→ "Self-Research" for sub-questions. Each finding MUST cite a URL.
Run
merge_partials.mjson the user's partials too — produces{OUTPUT_DIR}/{user-slug}.md, the canonical source Step 5b reads from foruserCompanyflags.Synthesize into a profile: Company, Product, Existing Customers, Competitors (seed list), Use Cases, precise_category, category_include_keywords, exclusion_list. Do NOT include ICP — this skill doesn't need it.
precise_category: one sentence describing the category. e.g., "AI web search API for agents with neural + keyword retrieval". Avoid vague words like "tools" / "platform".category_include_keywords: 8-15 phrases a direct competitor's marketing would likely contain (hero or title). Include semantic variants.exclusion_list: phrases that indicate a different category — used by the gate to reject false positives (e.g.antidetect browser,scraping api,screenshot api,residential proxy). Seereferences/research-patterns.md→ "Synthesis Output" for the exact format and Exa as a worked example.
Present the profile + the user-company
.mdto the user for confirmation. Do not proceed until confirmed.Save the confirmed profile to
{SKILL_DIR}/profiles/{company-slug}.json.
Step 2: Depth Mode + Seed Input
Ask clarifying questions via AskUserQuestion with checkboxes:
Known competitors? Text area for URLs/names (optional — discovery will find more).
Depth mode?
quick— marketing surface only, many competitors, ~2-3 tool calls eachdeep— + external signal (mentions, reviews, news), ~5-8 tool calls eachdeeper— + public benchmarks + strategic diff vs user's company, ~10-15 tool calls each
Target count? Rough number of competitors to research (e.g., 10 / 20 / 50).
This is the ONLY user interaction. After this, execute silently until the report is ready.
| Mode | Research per competitor | Best for |
|---|---|---|
quick | Lane 1 only (homepage + pricing) | Scanning ~30-50 competitors fast |
deep | Lanes 1+2 | ~15-25 competitors with external signal |
deeper | All 4 lanes (+ benchmarks + strategic diff) | ~5-15 competitors with full intel |
Step 3: Discovery (3 parallel waves)
Formula: ceil(target_count / 20) queries per wave. Over-discover ~3x because the gate drops ~40-60%.
Evaluation on a search-API run shows all three waves are additive — skip any and you lose real competitors:
Wave A — Generic alternatives (broad; heavy aggregator noise, filtered out later)
"alternatives to {user_company}""{user_company} competitors"
Wave B — Precise category (uses precise_category from the profile)
"{precise_category}"verbatim2-3 queries composed from the most distinctive tokens (e.g.
"web search api for ai agents","retrieval API for LLMs")
Wave C — Comparison-page graph (highest precision)
"{user_company} vs""{seed1} vs","{seed2} vs","{seed3} vs"(seeds from the profile'scompetitorslist)After the searches, run
scripts/extract_vs_names.mjsto parse"X vs Y"patterns from result titles — this uniquely surfaces competitors that don't appear as URL hits.
Process:
Issue 3 parallel
browse cloud searchBash calls (one per wave) in a SINGLE message — NOT subagents. Each Bash call chains its 2-4 queries with&&. Seereferences/workflow.md→ "Discovery — parallel Bash, not subagents" for the exact recipe. Subagents are too heavy for a workload of 6-12browse cloud searchcalls.After all waves complete:
node {SKILL_DIR}/scripts/list_urls.mjs /tmp --prefix competitor > /tmp/competitor_urls.txt node {SKILL_DIR}/scripts/extract_vs_names.mjs /tmp --prefix competitor \ --seed "{user_company},{seed1},{seed2},{seed3}" \ > /tmp/competitor_vs_names.jsonlFilter
/tmp/competitor_urls.txt— remove blog posts, news, AI-tool directories (seektool.ai, respan.ai, agentsindex.ai, toolradar.com, aitoolsatlas.ai, vibecodedthis.com, etc.), review aggregators (g2.com, capterra.com), databases (crunchbase.com, tracxn.com), user's own domain. Seereferences/workflow.mdfor the full noise-domain list.For
vs_namesentries that have a resolveddomain, add them. For unresolved names, optionally runbrowse cloud search "{name}" --num-results 3and pick the top root domain.Merge with user-provided seed URLs. Dedup by hostname →
/tmp/competitor_candidates.txt.
Step 4: Gate (category-fit filter)
Drop candidates whose marketing identifies them as a different category before enrichment burns tool calls on them.
cat /tmp/competitor_candidates.txt \
| node {SKILL_DIR}/scripts/gate_candidates.mjs \
--include "{profile.category_include_keywords joined with commas}" \
--exclude "{profile.exclusion_list joined with commas}" \
--concurrency 6 \
> /tmp/competitor_gated.jsonl
grep '"status":"PASS"' /tmp/competitor_gated.jsonl \
| node -e 'require("fs").readFileSync(0,"utf-8").split("\n").filter(Boolean).forEach(l => { try { console.log(JSON.parse(l).url); } catch {} })' \
> /tmp/competitor_passed.txtThe gate fetches each candidate's homepage via browse cloud fetch --allow-redirects --format raw, extracts the first 800 chars of visible text, and classifies position-aware: exclude in <title> → REJECT; include in <title> → PASS; hybrid title → hero200 tiebreak; otherwise fall through.
Evaluated on a search-API run with 12 mixed candidates: 7/7 real competitors passed, 4/4 wrong-category rejected, 1 known-hybrid edge case rejected.
Step 4.5: Confirm enrichment set with the user
This step is mandatory. Do NOT skip to enrichment just because the gate ran.
Enrichment is expensive: 5 competitors × 5 lane-subagents = 25 subagents, ~10-15 minutes of wall clock, ~300 browse cloud calls. Running it on the wrong set wastes all of that. The gate also has known blind spots:
JS-heavy homepages (e.g. Tavily, Firecrawl) —
browse cloud fetchreturns near-empty text, so keyword matching has nothing to match on → REJECT or UNKNOWNCloudflare challenge pages (e.g. Perplexity) — title becomes "Just a moment..." → no category signal
Semantic variants — "search foundation" / "retrieval backbone" don't lexically match a list centered on "search API"
Domain ambiguity —
brave.com(the browser) vsapi-dashboard.search.brave.com(the actual API product) can confuse classification
The user almost always has domain knowledge the skill lacks. Ask them.
Process — the main agent:
Read
/tmp/competitor_gated.jsonland group rows:PASS bucket: everything with status=PASS.
UNKNOWN bucket: status=UNKNOWN (fetch failed — always surface, these are the silent misses).
Rejected-brand bucket: top ~10 REJECT rows whose title mentions a well-known brand pattern (e.g. contains the token from a user-supplied seed list, or appears frequently in the Wave C "X vs Y" graph).
Present the buckets to the user, one table per bucket, with URL + title + reason (for rejects).
Use
AskUserQuestionwith a checkbox list of all candidates across the three buckets, plus a free-text "add more" field. The prompt should be explicit:"Here are the gate's picks plus a few it was unsure about. Tick the ones that are real competitors in your space, and paste any URLs I missed (comma-separated). Enrichment will run on ONLY the ticked set."
Write the confirmed set to
/tmp/competitor_enrichment_set.txt(one URL per line). This is the input for Step 5 — not/tmp/competitor_passed.txt.
If the user doesn't respond or explicitly says "just run it", fall back to /tmp/competitor_passed.txt as-is, but warn in chat that the run may waste budget on wrong-category hits.
Exa test, 2026-04-24: gate auto-passed 22 of 101 candidates but missed Tavily (generic title), Jina AI (semantic mismatch — "search foundation"), Firecrawl (JS-heavy fetch failure), and Perplexity (Cloudflare challenge). All four are real direct competitors. This step catches them.
Step 5: Deep Enrichment
Two modes. See references/workflow.md for prompt templates and wave management. See references/research-patterns.md for the lane-by-lane methodology.
Quick mode — single subagent per batch
Input:
/tmp/competitor_enrichment_set.txt(user-confirmed set from Step 4.5), ~8 competitors per subagent.One subagent runs Lane A only (marketing surface). 2-3 tool calls each.
Writes directly to
{OUTPUT_DIR}/{slug}.md.
Deep / Deeper mode — 5 subagents PER competitor (parallel lane fan-out)
For each competitor, launch 5 parallel subagents, one per lane:
A. Marketing (
marketing): pricing, features, positioning, integrations, customers, team, funding, HQ. Owns canonical frontmatter.B. Discussion (
discussion): Reddit, HN, forums, Dev.to, Hashnode. Broad queries beyondsite:— also"{competitor}" review 2026,"{competitor}" issues OR problems,"{competitor}" discussion.C. Social (
social): LinkedIn posts, YouTube videos, Twitter/X. Snippets only — do NOT fetch.D. News & Comparisons (
news): TechCrunch, Verge, VentureBeat, Forbes, Businesswire, Substack, blog reviews. Every mention needs a date.E. Technical & Benchmarks (
technical): GitHub benchmark repos/PRs, performance posts. Writes Benchmarks + technical Findings.
Budget per lane: deep = 5-8 tool calls, deeper = 10-15. Launch ALL competitor × lane subagents in a SINGLE Agent tool message. For 10 competitors × 5 lanes = 50 parallel Agent calls in one message. Do NOT split into batches per competitor or per lane — wall clock collapses to the slowest single agent (~3-5 min). Splitting into 5 rounds of 10 cost 25 minutes of wall clock vs 5 minutes parallel on a real measured run; do not do it.
Each subagent writes a partial to {OUTPUT_DIR}/partials/{slug}.{lane}.md.
Critical: Pass the user's company name, product, and key features verbatim into every subagent prompt so the technical lane can do strategic diffing. Pass the full literal {OUTPUT_DIR} path to every subagent.
Merge partials → canonical per-competitor file
After all subagents for all competitors complete:
node {SKILL_DIR}/scripts/merge_partials.mjs {OUTPUT_DIR}Unions the 5 partials per competitor into one {OUTPUT_DIR}/{slug}.md — dedup'd Mentions (sorted by date desc), dedup'd Benchmarks, merged Findings, canonical frontmatter from the marketing lane.
Synthesize the comparison matrix (write matrix.json)
Subagents write key_features and integrations as prose, not as pipe-separated atomic feature labels. So a naive |-split axis becomes one-blob-per-competitor with no overlap — the rendered matrix shows a useless diagonal.
The main agent fixes this by synthesizing a shared taxonomy across competitors and writing {OUTPUT_DIR}/matrix.json. compile_report.mjs auto-detects this file and renders the matrix from it instead of from the pipe split.
Process — main agent:
Read ALL
{slug}.mdfiles, INCLUDING the user's company file{user-slug}.mdproduced in Step 1. The user is competitor #0 for matrix purposes — treat with identical rigor.Produce a canonical list of 12-20 atomic features — each must be a yes/no proposition a competitor either has or doesn't (e.g. "MCP server", "SOC 2", "Site crawler", "Reranker"). Avoid sentence-length features. Avoid features only one competitor has.
Produce a canonical list of 10-20 integrations (frameworks, marketplaces, SDK languages).
For each company INCLUDING THE USER, map each taxonomy entry to
true/falsebased on the enrichment data in their.mdfile. Every flag must be traceable to a Research Findings bullet with a cited URL. If the user's file says "exa-py MIT-licensed (github.com/exa-labs/exa-py)", the Open-source feature istruewith that URL as the source. If not mentioned, leavefalse.Write the result to
{OUTPUT_DIR}/matrix.jsonin this shape:{ "category": "AI search APIs", "features": [{ "name": "Web Search API", "description": "..." }, ...], "integrations": [{ "name": "LangChain" }, ...], "userCompany": { "name": "Exa", "winningSummary": "Exa's moats are its first-party neural index and the integrated Research API — no one else in the set ships a semantic/embeddings-native retrieval primitive alongside a multi-step agentic research endpoint. It's also the only provider with a crawler product bundled in, and ties with SerpAPI on breadth of SDK language coverage.", "losingSummary": "Exa trails competitors on operational transparency — SerpAPI, Serper, and Tavily all publish hourly throughput SLAs, and Exa lacks a dedicated news endpoint that SerpAPI, Serper, and You.com all ship. Image/visual search is also missing vs 4 of 5 competitors.", "features": { "Web Search API": true, "Site crawler": true, ... }, "integrations": { "LangChain": true, ... } }, "competitors": { "tavily": { "features": { "Web Search API": true, "Site crawler": true, ... }, "integrations": { "LangChain": true, "Databricks Marketplace": true, ... } }, "serpapi": { "features": {...}, "integrations": {...} } } }userCompanyis required. The overview page renders two cards — "Where {user} is winning" and "Where {user} is losing". PopulateuserCompany.featuresanduserCompany.integrationsfrom the self-research profile (Step 1). Without this field those two cards don't render.Write order (two passes — this resolves the apparent ordering tension below). In this step (5b) write all
features/integrationscells foruserCompanyand every competitor, plus a draftwinningSummary/losingSummary. The drafts exist only to tell the Step 5c fact-checker which claims are high-stakes (it prioritizes cells named in the summaries). After Step 5c flips cells on verified evidence, rewrite the two summaries so the prose reflects only fact-checked cells. The JSON shape above shows the finalized post-fact-check object.userCompany.winningSummary/losingSummaryare strongly preferred (analyst-style prose, 2-4 sentences each). When present, the cards render as paragraphs instead of bulleted lists — reads like a briefing, not a spreadsheet. If absent, the cards fall back to a bulleted list of winning/losing items with who-else-has-it.
If this step is skipped, the matrix view falls back to the raw pipe-split axis (useless for atomic comparison) and the strategic summary doesn't render. Do not skip.
Fact-check the matrix — spot-check the high-stakes cells (default)
Do not trust the taxonomy pass alone for high-stakes cells. It is LLM inference from prose and will hallucinate moats. Observed during a search-API run (2026-04-23): matrix.json claimed SOC 2 was unique to the user's company; verification showed three of the other competitors also have SOC 2 Type II.
But verifying every cell is the opposite mistake. A 7-company × 33-axis matrix has 231 cells. The Apr 2026 search-API run got stuck at 111+ tool calls in fact-check before interrupt — the subagent kept going on table-stakes cells (REST API, JSON responses, Python SDK) that are universal in the category.
Default = spot-check, not full sweep. Only verify cells that meaningfully change the strategic narrative.
Launch a single fact-check subagent (Bash-only) with a hard 25-call budget that targets ONLY these high-stakes axes:
Every
userCompany.featuresanduserCompany.integrationscell (the user's own moats — these go straight into "Where you're winning" prose). Typical: 17 + 16 = 33 cells, but most are obvious (your own product). Focus on:Anything claimed as a moat in
winningSummaryAnything claimed as a gap in
losingSummaryCompliance (SOC 2, HIPAA, ISO 27001, GDPR)
Open-source license claims (MIT / Apache 2.0 / AGPL — observed wrong on a competitor's SDK)
Published uptime SLA (status page ≠ SLA)
Across competitors, only the cells that drive the win/loss summary:
For each "Winning" claim, verify the user has it AND verify the competitors don't.
For each "Losing" claim, verify the named competitors do have it.
Compliance + license + SLA across all competitors (high-trust, frequently wrong).
Do NOT verify:
Universal table-stakes (REST API, JSON responses, Python SDK, API-key auth) — every search API has these.
falsecells with no claim being made (no moat lost or won).Integration cells unless they appear in the win/loss summary.
You are a matrix spot-check subagent. Budget: 25 browse cloud calls TOTAL across all cells.
Stop and return what you have when you hit the budget — partial fact-check is
better than blocking the rest of the pipeline.
TOOL RULES: Bash ONLY. browse cloud search + browse cloud fetch. Count your calls; stop at 25.
PRIORITY ORDER (highest-stakes first — work down until budget):
1. Every cell that appears in userCompany.winningSummary or losingSummary
2. Compliance cells (SOC 2, HIPAA, ISO 27001) for user + every competitor
3. Open-source / self-hostable + license cells across all competitors
4. Pricing tier numbers ($X/mo, /hr) for user + competitors named in summaries
5. Funding / employee_estimate fields (only if cited in summaries)
Skip:
- Universal cells (REST API, JSON responses, Python SDK, API-key auth, etc.)
- `false` cells where no claim is being made
- Integration matrix cells unless they appear in summaries
For each cell verified:
- If `true` — find one source URL (docs, trust portal, GitHub LICENSE, etc).
- If `false` — one targeted browse cloud search. Flip ONLY on first-party evidence.
Output: matrix.json with `sources: { "Feature": "https://..." }` on the
verified cells (other cells stay as-is). Cells-changed log to
{OUTPUT_DIR}/matrix_fact_check.md with each flip + URL + quoted evidence.
Report back: "spot-check: N cells verified, M flipped, B/25 budget used".Full-sweep mode (opt-in, slower): if the user explicitly says "full fact check" or for a high-stakes deliverable (board deck, press release), set the budget to 80 calls and verify every non-universal cell. Default is spot-check.
After the subagent completes, re-read matrix.json, recompile, and surface matrix_fact_check.md delta to the user. The summary is much more trustworthy with spot-check than without — and ships in 3-5 minutes instead of stalling the pipeline.
Step 5d: Battle Card synthesis (deep/deeper only, after Step 5c)
Depends on fact-checked matrix.json from Step 5c. This is a sales-enablement lane. For each competitor, launch a Bash-only synthesis subagent (no new browse cloud calls) that reads all 5 existing partials + the user's merged .md + fact-checked matrix.json, and produces per-competitor Landmines / Objection Handlers / Talk Tracks grounded in cited evidence.
Prompt template: references/battle-card-subagent.md (substitute {COMPETITOR_SLUG} / {COMPETITOR_NAME} / {USER_COMPANY_NAME} / {USER_WINNING_SUMMARY} per competitor). Format spec: references/battle-card.md.
Output: {OUTPUT_DIR}/partials/{slug}.battle.md with a ## Battle Card section.
Re-run the merge after this lane completes. The Step 5 merge ran before the battle partials existed, so the consolidated {slug}.md files don't contain them yet. Re-run:
node {SKILL_DIR}/scripts/merge_partials.mjs {OUTPUT_DIR}This unions each {slug}.battle.md into its consolidated {slug}.md (the battle lane is already handled by merge_partials.mjs). compile_report.mjs reads the ## Battle Card section from {slug}.md and renders it as a brand-accented card on the per-competitor HTML page. Skip this re-merge and the battle cards never appear in the report.
Why this lane is synthesis-only — battle cards must be grounded in facts that already survived Step 5c. Letting the subagent do fresh browse cloud searches would reintroduce the hallucinated-moat problem the fact-check step exists to prevent. The subagent's adversarial self-check explicitly rejects claims not traceable to an input partial bullet or a sources-backed matrix cell.
Parallelism: 1 subagent per competitor, all in one Agent-tool message (synthesis is fast, ~3-5 Bash calls per subagent). Skip this step in quick mode — there isn't enough research depth to ground the cards credibly.
Step 6: Screenshots
Capture a homepage hero screenshot per competitor:
node {SKILL_DIR}/scripts/capture_screenshots.mjs {OUTPUT_DIR} --mode remoteUses the browse CLI (npm install -g browse). The --mode flag selects the browser session: remote (default) drives a Browserbase session — best for protected/bot-detecting homepages and the only option without local Chrome; local uses Chrome on your machine. The script passes the corresponding --remote / --local flag on each browse command, so there is no separate environment-config step to run. Writes one PNG per competitor to {OUTPUT_DIR}/screenshots/{slug}-hero.png. The compile step in Step 7 auto-embeds the hero on each per-competitor HTML page.
Cost: ~10-20s per competitor. ~60s for 5 competitors.
Step 7: HTML Report
Generate all views + CSV (opens overview in browser):
node {SKILL_DIR}/scripts/compile_report.mjs {OUTPUT_DIR} --user-company "{user_company}" --openProduces:
{OUTPUT_DIR}/index.html— overview: competitor table with tagline, pricing summary, key features, strategic diff{OUTPUT_DIR}/competitors/{slug}.html— per-competitor deep dive (all sections){OUTPUT_DIR}/matrix.html— side-by-side feature/pricing matrix{OUTPUT_DIR}/mentions.html— chronological feed with source-type pills + client-side filter{OUTPUT_DIR}/results.csv— flat spreadsheet
Present a chat summary:
## Competitor Analysis Complete
- **Competitors researched**: {count}
- **Depth mode**: {mode}
- **Mentions collected**: {total mentions} across {source types count} source types
- **Public benchmarks found**: {count}
- **Opened in browser**: ~/Desktop/{company_slug}_competitors_{date}/index.htmlShow the overview table in chat:
| Competitor | Positioning | Pricing | Key Features | Strategic Diff |
|------------|-------------|---------|--------------|----------------|
| Rival Co | AI-native web search API | $99/mo entry | semantic search, reranking, crawler | Similar retrieval; cheaper entry |Call out the top 3-5 most interesting findings — e.g., "3 competitors have public benchmarks; Rival Co is cheapest; Foo Inc launched a dedicated news-search endpoint 2 weeks ago." Offer to dig deeper into any specific competitor or re-run with different depth.
Files
- .gitignore39 B
- ATTRIBUTION.mdAdded by AutoGineer976 B
- LICENSE.txt1.0 KiB
- SKILL.md31.2 KiB
- references/battle-card-subagent.md5.3 KiB
- references/battle-card.md3.9 KiB
- references/example-research.md7.0 KiB
- references/report-template.html8.0 KiB
- references/research-patterns.md10.0 KiB
- references/workflow.md22.3 KiB
- scripts/capture_screenshots.mjsScript6.9 KiB
- scripts/compile_report.mjsScript46.3 KiB
- scripts/extract_vs_names.mjsScript5.4 KiB
- scripts/gate_candidates.mjsScript8.8 KiB
- scripts/list_urls.mjsScript3.1 KiB
- scripts/md_utils.mjsScript1.9 KiB
- scripts/merge_partials.mjsScript12.2 KiB
- scripts/package.json105 B
references/workflow.md
Competitor Analysis — Workflow Reference
Contents
Discovery Batch JSON Schema — browse cloud search output format
Competitor Research Markdown Format — frontmatter + body section spec
Extracting Page Text — browse cloud fetch (markdown default; --format raw for HTML)
Discovery — parallel Bash, not subagents — Wave A/B/C recipes
Enrichment fan-out — 5 subagents PER competitor
Legacy: Single-subagent template — quick mode only
Wave Management — parallelism rule, gate phase, sizing formula
Report Compilation — compile_report.mjs invocation
Discovery Batch JSON Schema
File: /tmp/competitor_discovery_batch_{N}.json
browse cloud search --output writes a JSON object:
{
"requestId": "abc123",
"query": "alternatives to acme",
"results": [
{ "id": "...", "url": "https://example.com", "title": "Example Corp", "image": null, "favicon": null }
]
}The list_urls.mjs script (run with --prefix competitor) deduplicates across batches.
Competitor Research Markdown Format
File: {OUTPUT_DIR}/{competitor-slug}.md — see references/example-research.md for the full template.
YAML frontmatter fields (used by compile_report.mjs):
competitor_name(required)website(required)taglinepositioningproduct_descriptiontarget_customerpricing_modelpricing_tiers(pipe-separated:Free | Pro $99 | Enterprise Contact)key_features(pipe-separated)integrations(pipe-separated)headquartersfoundedemployee_estimatefunding_infostrategic_diff(one-line for overview table; deeper mode only)
Body sections (in this order — compile_report.mjs parses by heading):
## Product## Pricing## Features## Positioning## Comparison vs {user_company}(deeper only)## Mentions## Benchmarks(deeper only)## Research Findings
Mentions line format (parsed into the mentions feed):
- **[SourceType]** Title | Snippet (source: URL, YYYY-MM-DD)SourceType ∈ Benchmark | Comparison | News | Reddit | HN | LinkedIn | YouTube | Review | Podcast | X. Date is optional but preferred.
Extracting Page Text
browse cloud fetch --allow-redirects returns clean markdown by default — no HTML stripping needed. Just cap the length:
browse cloud fetch --allow-redirects "https://rivalco.com/pricing" | head -c 3000If you need the original HTML (e.g. to read the <title> tag or parse markup), add --format raw and strip tags:
browse cloud fetch --allow-redirects --format raw "https://rivalco.com/pricing" | sed 's/<script[^>]*>.*<\/script>//g; s/<style[^>]*>.*<\/style>//g; s/<[^>]*>//g; s/&/\&/g; s/</</g; s/>/>/g; s/ / /g; s/&#[0-9]*;//g' | tr -s ' \n' | head -c 3000Limit to ~3000 chars per page to keep subagent context manageable. For JS-heavy pages (client-rendered pricing tables) where the Fetch API returns thin content, open the page in a browser session and read it: browse open "{url}" --remote then browse get markdown.
Discovery — parallel Bash, not subagents
The main agent runs discovery as 3 parallel browse cloud search Bash calls (one per wave) in a SINGLE message. No subagent layer. Each wave chains its 2-4 queries with && and writes results to /tmp/competitor_discovery_batch_{wave}{N}.json.
Example — main agent issues these three Bash tool calls in parallel in one message:
# Wave A — alternatives
browse cloud search "alternatives to {user_company}" --num-results 12 --output /tmp/competitor_discovery_batch_A1.json && \
browse cloud search "{user_company} competitors" --num-results 12 --output /tmp/competitor_discovery_batch_A2.json && \
echo "A done"# Wave B — precise category
browse cloud search "{precise_category}" --num-results 12 --output /tmp/competitor_discovery_batch_B1.json && \
browse cloud search "{compose 3 distinctive tokens}" --num-results 12 --output /tmp/competitor_discovery_batch_B2.json && \
browse cloud search "{primary_noun} for ai agents" --num-results 12 --output /tmp/competitor_discovery_batch_B3.json && \
echo "B done"# Wave C — comparison-page graph
browse cloud search "{user_company} vs" --num-results 12 --output /tmp/competitor_discovery_batch_C1.json && \
browse cloud search "{seed1} vs" --num-results 12 --output /tmp/competitor_discovery_batch_C2.json && \
browse cloud search "{seed2} vs" --num-results 12 --output /tmp/competitor_discovery_batch_C3.json && \
echo "C done"Why direct Bash and not subagents: each wave is 2-4 browse cloud search calls — agent cold-start + tool-reasoning overhead is bigger than the actual work. Using parallel Bash saves ~1-2 min per run with no quality loss.
Discovery query patterns
Discovery uses three parallel waves (evaluated — all three are additive):
Wave A — Generic alternatives (broad net, lots of noise):
"alternatives to {user_company}""{user_company} competitors"
Wave B — Precise category queries (uses precise_category from self-research):
"{precise_category}"verbatim"{precise_category_2_3_keywords}"— pick the 3 most distinctive tokensCompose with "API", "cloud", "for agents":
"cloud {primary_noun} for ai agents","{primary_noun} infrastructure API"
Wave C — Comparison-page graph (highest-precision single wave):
"{user_company} vs"For each seed competitor from the user's profile, also run
"{seed} vs"After the searches,
scripts/extract_vs_names.mjsparses"X vs Y"titles across all Wave C results to surface candidate names that don't appear as URLs.
Evaluation result (tested on a search-API run): Wave A returns ~10% real competitors (mostly AI-tool-listicle aggregators). Wave B returns ~35%. Wave C uniquely surfaces named brands via title parsing that neither A nor B finds. Use all three.
Enrichment fan-out — 5 subagents PER competitor (deep/deeper modes)
For each gated-PASS competitor, launch five parallel subagents, one per lane. Each subagent writes a partial to {OUTPUT_DIR}/partials/{slug}.{lane}.md. After all subagents complete, scripts/merge_partials.mjs unions the partials into one canonical {OUTPUT_DIR}/{slug}.md per competitor (dedup mentions by URL, sort by date desc).
The 5 lanes:
| Lane | Slug | Scope |
|---|---|---|
| A. Marketing | marketing | Owns canonical frontmatter. Pricing, features, positioning, integrations, customers, target, team, funding, HQ. Homepage + sitemap-driven page discovery. |
| B. Discussion | discussion | Reddit, HN, forums, dev.to, hashnode. Broader queries beyond site: restrictions — also "{competitor}" discussion, "{competitor}" review 2026, "{competitor}" issues OR problems. Writes Mentions bullets with dates. |
| C. Social | social | LinkedIn posts, YouTube videos, Twitter/X threads. Search snippets only — do NOT fetch (auth walls). |
| D. News & Comparisons | news | Comparison pages ("X vs Y"), TechCrunch / Verge / Forbes / VentureBeat / Businesswire, independent blog reviews, Substack. Every mention MUST include a date. |
| E. Technical & Benchmarks | technical | GitHub benchmark repos/PRs, performance blog posts, independent tests. Writes Benchmarks bullets AND Findings on technical specifics (retrieval modes, latency, rate limits, SDKs). |
Wave management — launch ALL subagents in ONE message: for N competitors × 5 lanes = 5N subagents, fit them all in a single Agent-tool message. Wall clock then equals the slowest single subagent (~3-5 min) instead of batches × slowest_per_batch. On a real 10-competitor run we measured 25 minutes wasted by self-throttling to 10-per-message — the Agent tool happily runs 50+ in parallel; do not split into batches for "politeness". The only cap is that each subagent still batches its own Bash operations into a single call.
Merge step (once all partials exist):
node {SKILL_DIR}/scripts/merge_partials.mjs {OUTPUT_DIR}Produces one {OUTPUT_DIR}/{slug}.md per competitor with dedup'd Mentions (sorted date desc), Benchmarks, and Findings.
Legacy: Single-subagent template (quick mode only)
In quick mode, keep a single subagent per batch of competitors (no fan-out — Lane 1 only, budget 2-3 calls each).
You are a competitor enrichment subagent. For each competitor URL, run the 4-lane research
pattern and write a single markdown file per competitor.
CONTEXT:
- User's company: {user_company}
- User's product: {user_product}
- User's key features: {user_key_features}
- Depth mode: {depth_mode} (quick | deep | deeper)
- Output directory: {OUTPUT_DIR} ← write files HERE, as a full literal path
COMPETITOR URLS TO PROCESS:
{url_list}
TOOL RULES — CRITICAL, FOLLOW EXACTLY:
1. You may ONLY use the Bash tool. No exceptions.
2. All searches: Bash → browse cloud search "..." --num-results 10
3. All page fetches: Bash → browse cloud fetch --allow-redirects "..."
browse cloud fetch returns clean markdown by default — just `| head -c 3000`, no HTML stripping.
If you need the raw HTML, add --format raw and pipe through:
sed 's/<script[^>]*>.*<\/script>//g; s/<style[^>]*>.*<\/style>//g; s/<[^>]*>//g' | tr -s ' \n' | head -c 3000
If a page returns thin content or "enable JavaScript", use `browse open "{url}" --remote` then `browse get markdown`.
4. BATCH all file writes: Write ALL markdown files in a SINGLE Bash call using chained heredocs.
5. BANNED TOOLS: WebFetch, WebSearch, Write, Read, Glob, Grep — ALL BANNED.
6. NEVER use ~ or $HOME in paths — use full literal paths.
RESEARCH PATTERN (per competitor — lanes are depth-gated):
LANE 1 — Marketing Surface (always run):
a. Fetch competitor homepage
b. Discover via sitemap: /sitemap.xml — find /pricing, /features, /integrations, /customers
c. Fetch 2-4 most relevant pages
d. Extract: tagline, positioning, product_description, target_customer,
pricing_model, pricing_tiers, key_features, integrations
LANE 2 — External Signal (deep + deeper):
Run these searches:
browse cloud search "{competitor} vs"
browse cloud search "{competitor} alternatives review"
browse cloud search "site:reddit.com {competitor}"
browse cloud search "site:news.ycombinator.com {competitor}"
browse cloud search "site:linkedin.com/posts {competitor}"
browse cloud search "site:youtube.com {competitor}"
browse cloud search "{competitor} G2 OR Capterra"
browse cloud search "{competitor} launch OR funding 2025 OR 2026"
For each search result, classify source type from URL:
reddit.com → Reddit
news.ycombinator.com → HN
linkedin.com → LinkedIn
youtube.com/youtu.be → YouTube
twitter.com/x.com → X (or Twitter — either works)
dev.to → DevTo
hashnode.dev, hashnode.com → Hashnode
*.substack.com → Substack
spotify.com/episode, transistor.fm, simplecast.com → Podcast
g2.com/capterra.com/trustradius.com → Review
url or title contains "vs" → Comparison
techcrunch/theverge/venturebeat/forbes/businesswire/wired/fortune → News
other blog domain → Blog
Record each as a Mentions line with title + one-line snippet + URL + **date**. Always include
the date when available. If a `browse cloud search` result carries a date field, prefer it.
If absent, parse the year from title/URL (e.g. "2026" or `/2025/11/` in a news URL).
For LinkedIn and YouTube — use search snippet only, do NOT fetch the page.
LANE 3 — Public Benchmarks (deeper only):
Run these searches:
browse cloud search "{competitor} benchmark"
browse cloud search "site:github.com {competitor} benchmark"
browse cloud search "{category} benchmark {competitor}"
Record each hit in ## Benchmarks with: title, source, URL, one-line key finding.
Also append to ## Mentions with type Benchmark.
LANE 4 — Strategic Diff vs {user_company} (deeper only):
Using Lane 1-3 findings + the user's company profile, write:
## Comparison vs {user_company}
- Overlaps: ...
- Gaps: ...
- Where they win: ...
- Where you win: ...
Also fill the `strategic_diff` frontmatter field with a one-line summary.
HARD TOOL-CALL CAP — count your browse cloud calls and STOP at the cap. Partial output beats blocking the pipeline.
quick mode: 3 browse cloud calls max per competitor
deep mode: 8 browse cloud calls max per competitor
deeper mode: 12 browse cloud calls max per competitor
ENFORCEMENT — at the start of every Bash call, prepend a comment like
# browse call N/8 (deep mode)
After hitting the cap, write the output file with WHAT YOU HAVE — even if a section is thin.
NEVER do a 9th call in deep mode "to be thorough". The pipeline budgets time on this assumption.
Observed cost of overshoot (Apr 25 search-API run): two lanes hit 29-30 calls each, drove
wall-clock for the whole 30-agent fan-out from 5 min → 12 min. Don't do this.
OUTPUT — write ALL competitor files in a SINGLE Bash call using chained heredocs directly to {OUTPUT_DIR}:
cat << 'COMPETITOR_MD' > {OUTPUT_DIR}/{slug1}.md
---
competitor_name: {name}
website: {url}
tagline: {tagline}
positioning: {positioning}
product_description: {description}
target_customer: {audience}
pricing_model: {model}
pricing_tiers: {tier1} | {tier2} | {tier3}
key_features: {f1} | {f2} | {f3}
integrations: {i1} | {i2}
headquarters: {hq}
founded: {year}
employee_estimate: {estimate}
funding_info: {funding}
strategic_diff: {one line — deeper only}
---
## Product
{paragraph}
## Pricing
{bullets per tier}
## Features
{bullets}
## Positioning
{paragraph}
## Comparison vs {user_company} ← deeper only
- Overlaps: ...
- Gaps: ...
- Where they win: ...
- Where you win: ...
## Mentions
- **[SourceType]** Title | Snippet (source: URL, YYYY-MM-DD)
## Benchmarks ← deeper only
- Title | Source | URL | Key finding
## Research Findings
- **[confidence]** Fact (source: URL)
COMPETITOR_MD
cat << 'COMPETITOR_MD' > {OUTPUT_DIR}/{slug2}.md
...
COMPETITOR_MD
Use 'COMPETITOR_MD' (quoted) as the heredoc delimiter to prevent shell variable expansion.
Report back ONLY: "Batch {batch_id}: {succeeded}/{total} competitors researched, {mentions_count} mentions, {benchmarks_count} benchmarks."
Do NOT return raw data to the main conversation.Wave Management
Key Principle: Maximize Parallelism, Minimize Prompts
Launch ALL subagents needed for a phase in ONE message. No "up to 6 per message" cap — the Agent tool runs them in parallel, so wall clock = slowest single agent regardless of count. On a 10-competitor × 5-lane = 50-subagent enrichment, splitting into 5 batches of 10 cost an extra 20 minutes of wall clock vs one batch of 50 (measured Apr 2026). Each subagent still MUST batch its own Bash operations into a single call.
Discovery Phase
Run discovery as parallel
browse cloud searchBash calls, not subagents. Subagent overhead (cold start + tool reasoning) is bigger than the work. Three Bash tool calls in one message — one per wave (A/B/C) — chain each wave's searches with&&.Each wave's bash call writes its outputs as
/tmp/competitor_discovery_batch_{wave}{N}.jsonAfter all waves complete, run the following in sequence:
# 1. Dedup URLs from all batches node {SKILL_DIR}/scripts/list_urls.mjs /tmp --prefix competitor > /tmp/competitor_urls.txt # 2. Extract candidate names from "X vs Y" titles (Wave C output) node {SKILL_DIR}/scripts/extract_vs_names.mjs /tmp --prefix competitor \ --seed "{user_company},{seed1},{seed2},{seed3}" \ > /tmp/competitor_vs_names.jsonlFilter URLs: Remove blog posts, news articles, AI-tool directories (seektool.ai, respan.ai, agentsindex.ai, toolradar.com, aitoolsatlas.ai, aidirectory.com, vibecodedthis.com, aichief.com, openalternative.co, cbinsights.com, saasworthy.com, softwareworld.com), review aggregators (g2.com, capterra.com, trustradius.com), databases (crunchbase.com, tracxn.com), and the user's own domain. Keep only candidate company homepages.
For names from
extract_vs_names.mjsthat didn't resolve to a domain, optionally runbrowse cloud search "{name}" --num-results 3to resolve the top domain; skip if ambiguous.Merge: filtered-URL list ∪ resolved
vs_namesdomains ∪ user-provided seed URLs. Dedup by hostname into/tmp/competitor_candidates.txt.
User-confirm phase (between gate and enrichment — mandatory)
After the gate writes /tmp/competitor_gated.jsonl, the main agent MUST ask the user to confirm the enrichment set before launching subagents. Enrichment is 25 subagents × depth budget per competitor — too expensive to run on guesses.
Present three buckets to the user:
PASS — status=PASS rows with title
UNKNOWN — status=UNKNOWN (fetch failed; always a silent miss risk — JS-heavy homepages, Cloudflare challenges)
Rejected-brand matches — top ~10 REJECT rows whose title contains a seed token or that showed up repeatedly in the Wave C "X vs Y" graph
Then AskUserQuestion with a checkbox list + free-text "add more". Write the confirmed set to /tmp/competitor_enrichment_set.txt (one URL per line). That file — not /tmp/competitor_passed.txt — is the input to the enrichment subagents.
Known gate blind spots to surface aggressively:
JS-heavy landing pages return near-empty hero text → gate's keyword matcher has nothing to bite on
Cloudflare challenge titles ("Just a moment...") → obvious false negative
"Search foundation" / "retrieval backbone" / "agent runtime" — semantic variants of the category don't lexically match
Apex domain vs product subdomain (e.g.
brave.comthe browser vsapi-dashboard.search.brave.comthe actual API product)
Gate Phase (between discovery and enrichment)
Drop wrong-category candidates BEFORE enrichment burns tool calls on them.
cat /tmp/competitor_candidates.txt \
| node {SKILL_DIR}/scripts/gate_candidates.mjs \
--include "{category_include_keywords_csv}" \
--exclude "{exclusion_list_csv}" \
--concurrency 6 \
> /tmp/competitor_gated.jsonl
# Extract PASS-only URLs for enrichment
grep '"status":"PASS"' /tmp/competitor_gated.jsonl \
| node -e 'require("fs").readFileSync(0,"utf-8").split("\n").filter(Boolean).forEach(l => { try { console.log(JSON.parse(l).url); } catch {} })' \
> /tmp/competitor_passed.txtKeyword sources:
--include← profile'scategory_include_keywords(comma-joined).--exclude← profile'sexclusion_list.
Gate logic (position-aware): REJECT if exclude term in <title>; PASS if include term in <title>; for hybrid titles with both (e.g. "Browser Automation & Web Scraping API"), tiebreak by first 200 chars of hero text; otherwise fall through to hero-wide check. Conservative by default.
Review the output — the main agent SHOULD spot-check both lists and MAY manually re-include a REJECT if it recognizes a known direct competitor whose own marketing is category-ambiguous.
Evaluation on a search-API run (12 candidates): 7/7 real competitors PASSED; 4/4 wrong-category (vector database, scraping/ETL platform, analytics tool, internal-KB search) REJECTED. One split-identity edge (a search vendor that also sells a scraping suite) rejected — acceptable.
Enrichment Phase
Two modes:
quickmode — single subagent per batch of competitors. Lane A (marketing) only. ~8 competitors per subagent, 2-3 tool calls each. Writes directly to{OUTPUT_DIR}/{slug}.md.deep/deepermodes — 5-subagent fan-out PER competitor. Each subagent owns ONE lane (marketing / discussion / social / news / technical). Writes to{OUTPUT_DIR}/partials/{slug}.{lane}.md. Budget: 5-8 calls per subagent (deep), 10-15 (deeper). After all lanes complete, runscripts/merge_partials.mjsto consolidate.Launch ALL competitor × lane subagents in a SINGLE Agent tool message. For 10 competitors × 5 lanes = 50 parallel agents in one message. Do NOT split into batches — wall clock becomes the slowest single agent (~3-5 min) instead of batches-times-batch-max (~25 min on 10 competitors split into 5 rounds of 10).
Screenshots Phase (after merge, before compile)
Capture homepage hero screenshot for each competitor:
node {SKILL_DIR}/scripts/capture_screenshots.mjs {OUTPUT_DIR} --mode remote --concurrency 1Requires the browse CLI (npm install -g browse). --mode remote drives a Browserbase session (the script passes --remote on each browse command); use --mode local for local Chrome. Writes one PNG per competitor to {OUTPUT_DIR}/screenshots/{slug}-hero.png. compile_report.mjs auto-embeds the hero in the per-competitor HTML page when present.
Cost: ~10-20s per competitor (serial). Total for 5 competitors ≈ 60s.
Sizing Formula
search_queries = ceil(requested_competitors / 20) # discovery is narrower than lead gen
discovery_subagents = ceil(search_queries / 3)
expected_urls = search_queries * 15
quick: research_subagents = ceil(expected_urls / 8)
deep: research_subagents = ceil(expected_urls / 4)
deeper: research_subagents = ceil(expected_urls / 2)Error Handling
If a subagent fails, log and continue with remaining batches
If >50% of subagents fail in a wave, pause and inform the user
If
browse cloud fetch --allow-redirectsfails, trybrowse open "{url}" --remote+browse get markdownas fallback, or skip that page
Report Compilation
After all enrichment subagents complete, compile all HTML views in one command:
node {SKILL_DIR}/scripts/compile_report.mjs {OUTPUT_DIR} --user-company "{user_company}" --openThe script:
Reads all
.mdfiles in{OUTPUT_DIR}Parses YAML frontmatter + body sections
Deduplicates by normalized competitor name
Generates
{OUTPUT_DIR}/index.html— overview table (name, tagline, pricing, key features, strategic diff)Generates
{OUTPUT_DIR}/competitors/{slug}.html— per-competitor deep diveGenerates
{OUTPUT_DIR}/matrix.html— side-by-side feature/pricing grid across competitorsGenerates
{OUTPUT_DIR}/mentions.html— chronological feed with source-type pills + client-side filterGenerates
{OUTPUT_DIR}/results.csv— flat spreadsheetOpens
index.htmlin the default browser (--openflag)Prints a JSON summary to stderr
Requirements and compatibility
Written for: Claude Code
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Declares allowed tools, Names Claude Code tools, Needs an MCP server, Needs an API key, Needs Python, Needs Node.js
The author says: Requires the browse CLI (npm install -g browse) and BROWSERBASE_API_KEY env var
Security
What our scanner noticed· Low risk
- Instructions that use the network
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- browserbase
- Publisher
- Browserbase (Official)
- Source
- browserbase/skills · skills/competitor-analysis · commit 6811ca3
- Licence
- MIT License (redistribution allowed)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by browserbase or Browserbase.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download competitor-analysis.zip