Competitor messaging tracking diff

From CraftOS-dev/craftbot-agent-bundles · View interactive version

Competitor messaging tracking diff is an AI agent skill from the GitHub repository CraftOS-dev/craftbot-agent-bundles. Sources: Visualping https://visualping.io/

How to use this skill

Skill file

<!--

Sources: Visualping https://visualping.io/

ChangeTower https://changetower.com/

Autobound CI tools 2026 https://www.autobound.ai/blog/top-15-competitive-intelligence-tools-2026

Companion playbook: role.md → "Continuous monitoring playbook"

-->

Competitor messaging tracking + diff over time

Weekly snapshot of competitor homepage + top 5 LPs + value-prop copy. Diff against prior snapshot. Classify shift as: positioning (new ICP), claims (new metric/proof), pricing-adjacent (new bundle), category-language. Stash time-series so re-positioning detectable across quarters.

When to use

When NOT to use

Setup

# Visualping (free 5 monitors; $13/mo+)
export VISUALPING_API_KEY="..."

# ChangeTower (audit-friendly $79+/mo)
export CHANGETOWER_API_KEY="..."

# Python for diff + classify
uv pip install requests beautifulsoup4 difflib2 anthropic

# Anthropic for classification
export ANTHROPIC_API_KEY="sk-ant-..."

MCPs in agent.yaml: firecrawl-mcp, playwright-mcp, markdown-converter, slack-mcp, gmail-mcp.

Common recipes

Recipe 1: Visualping monitor on homepage

curl -X POST https://api.visualping.io/v1/jobs \
  -H "Authorization: Bearer $VISUALPING_API_KEY" \
  -d '{
    "url": "https://acme.example.com",
    "frequency_minutes": 10080,
    "selector": "main",
    "ignore_selector": ".footer, .cookie-banner",
    "webhook_url": "https://hooks.slack.com/services/..."
  }'

Weekly cadence (10080 min = 7 days); ignore_selector cuts noise.

Recipe 2: Per-competitor LP list

# messaging.yaml
competitors:
  acme:
    pages:
      - url: https://acme.example.com
        kind: homepage
      - url: https://acme.example.com/product
        kind: product-overview
      - url: https://acme.example.com/use-cases/sales
        kind: use-case-LP
      - url: https://acme.example.com/use-cases/marketing
        kind: use-case-LP
      - url: https://acme.example.com/customers/enterprise
        kind: segment-LP

Recipe 3: Snapshot via firecrawl-mcp

from firecrawl import FirecrawlApp
fc = FirecrawlApp(api_key=os.environ["FIRECRAWL_API_KEY"])
out = fc.scrape_url("https://acme.example.com",
                    params={"formats":["markdown"], "onlyMainContent":True})
md = out["data"]["markdown"]
# Save to snapshots/acme/homepage-2026-06-11.md

Recipe 4: Extract messaging elements

from bs4 import BeautifulSoup
import requests
html = requests.get("https://acme.example.com").text
soup = BeautifulSoup(html, "html.parser")
hero_h1 = soup.select_one("h1").get_text(strip=True)
hero_sub = soup.select_one("h1 + p, h1 + h2").get_text(strip=True) if soup.select_one("h1 + p, h1 + h2") else ""
ctas = [a.get_text(strip=True) for a in soup.select("a.cta, button.cta")]
social_proof = [el.get_text(strip=True) for el in soup.select(".testimonial, .logo-wall img")]

Recipe 5: Diff snapshots

import difflib, pathlib
prev = pathlib.Path("snapshots/acme/homepage-2026-w22.md").read_text()
curr = pathlib.Path("snapshots/acme/homepage-2026-w23.md").read_text()
diff = "\n".join(difflib.unified_diff(prev.splitlines(), curr.splitlines(),
                                       fromfile="w22", tofile="w23", lineterm=""))

Recipe 6: LLM classification pass

import anthropic
client = anthropic.Anthropic()
prompt = f"""Classify this diff into messaging shift categories. Output JSON:
{{
  "shift_kind": "positioning|claims|pricing-adjacent|category-language|none",
  "summary": "<1 sentence>",
  "evidence": ["<verbatim line>", "..."],
  "impact": "low|medium|high"
}}

POSITIONING = changed ICP / segment / job-to-be-done framing
CLAIMS = new metric / proof / case-study / customer-count change
PRICING-ADJACENT = new bundle name / "starts at $X" / free-tier shift
CATEGORY-LANGUAGE = new category positioning (e.g., from "BI tool" → "AI analytics platform")

Diff:
{diff}
"""
resp = client.messages.create(model="claude-sonnet-4-5-20250929",
    max_tokens=1000, messages=[{"role":"user","content":prompt}])
classification = json.loads(resp.content[0].text)

Recipe 7: Time-series messaging log

# messaging-history.yaml — append-only
- competitor: acme
  page: homepage
  ts: 2026-06-11
  shift_kind: positioning
  summary: "Re-positioned from 'analytics for product teams' to 'AI insights for revenue teams'"
  evidence: ["AI insights for revenue teams"]
  impact: high
  snapshot_url: snapshots/acme/homepage-2026-w23.md
- competitor: acme
  page: homepage
  ts: 2026-05-15
  shift_kind: claims
  summary: "Added 'Trusted by 10,000+ teams'"
  evidence: ["Trusted by 10,000+ teams"]
  impact: low

Recipe 8: Weekly digest synthesis

import yaml
hist = yaml.safe_load(open("messaging-history.yaml"))
week = [h for h in hist if h["ts"] >= "2026-06-04"]
# Group by competitor; rank by impact

Recipe 9: Hero-element archival

Capture hero copy weekly:

import json, pathlib
archive = pathlib.Path("archive/acme/hero.jsonl")
archive.parent.mkdir(parents=True, exist_ok=True)
with archive.open("a") as f:
    f.write(json.dumps({"ts":"2026-06-11","h1":hero_h1,"sub":hero_sub,"ctas":ctas}) + "\n")

Quarterly: read the JSONL, see when claims first appeared / disappeared.

Recipe 10: Category-language tracker

Pre-define category terms; count their frequency across pages weekly:

terms = ["AI","BI","analytics","insights","data platform","data fabric","data mesh"]
counts = {t: html.lower().count(t.lower()) for t in terms}
# Track shift over time — when "data mesh" drops out and "AI insights" peaks, category-language shift

Recipe 11: playwright-mcp for JS-rendered LP

# Some hero copy is JS-rendered; use Playwright instead of plain HTML
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
    page = p.chromium.launch().new_page()
    page.goto("https://acme.example.com")
    page.wait_for_load_state("networkidle")
    text = page.locator("main").inner_text()

Examples

Example 1: Weekly messaging-diff for 3 competitors

Goal: Surface positioning shifts within 24 hours.

Steps:

  1. Author messaging.yaml with 5 pages per competitor (Recipe 2).
  2. Visualping monitors on each (Recipe 1).
  3. On webhook fire: Recipe 3 scrape → Recipe 5 diff → Recipe 6 classify.
  4. Append to messaging-history.yaml (Recipe 7).
  5. Friday digest (Recipe 8) → Slack + email.

Result: Material positioning shifts caught within 1 week; trend visible quarterly.

Example 2: Pre-launch positioning calibration

Goal: Before our launch, find empty messaging space.

Steps:

  1. Pull last 8 weeks of messaging-history.yaml across 5 competitors.
  2. LLM cluster: where are they crowding? What category-language terms are saturated?
  3. Identify empty positioning space (categories none of them claim).
  4. Recommend positioning + hero-copy directions to PMM.

Result: Positioning brief grounded in actual competitor messaging.

Edge cases / gotchas

Sources

Related skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.