ig-competitor-research
IG Competitor Research — Top 3 by Views Per Handle
A two-stage, disk-persisted weekly pipeline. Stage 1 runs in phases against one Chrome tab, each phase WRITING its output to research/ (never to a return message — a single agent can't hold the whole run and dies mid-way): 1A a Sonnet URL agent scrolls every reels grid + runs Hashtag Discovery → _pool_urls.json; 1B sequential metadata agents (one per ~45-reel chunk) visit each reel for views/likes/comments/caption → _meta_<n>.json, which the orchestrator merges through a JSON-repair parser. Stage 2: the orchestrator sorts by views, enriches the top enrichTopN via enrich-reel.sh (yt-dlp + ffmpeg frames + Whisper transcript) with a verify+retry tail, then writes the markdown and renders a Leif-style HTML report ranked best→worst. The user skims it and shortlists ~10 reels to publish.
How to Trigger
- "research competitors" / "run content research"
- "what's trending in my niche"
- "find outliers on @handle, @handle, @handle"
Prerequisites
- Claude in Chrome extension installed and connected (https://claude.ai/chrome). The skill drives a real Chrome window via the
mcp__claude-in-chrome__*tools. - A
competitor-list.mdfile in the project root listing IG handles to scrape (any format that lists@handleorinstagram.com/handle/). The orchestrator just needs to extract handles from it. If the file is missing, the user must name handles inline. - macOS launch command: the skill uses
open -a "Google Chrome"to launch Chrome if the extension isn't connected. On Linux/Windows, swap that for the OS-appropriate launcher. - A
research/directory at the project root. The skill creates it if missing.