Build a tool that surfaces competitors' top Meta ads
Vibe-coded a Claude Code tool that uses the Meta Ad Library's new sort by impressions to show which competitor ads get the most views.
Source
@techxsarfraj on X · 2026-07-03
Written in our own words. Credit to the original author. Link checked 2026-10-14.
What they did
Vibe-coded a Claude Code tool that uses the Meta Ad Library's new sort by impressions to show which competitor ads get the most views.
Result (as claimed)
Shared as a working tool.
Tools they used
Cost: Claude Code: free plan, paid from $17/mo. Checked 2026-10-14.
Set it up
Pick one goal and metric
For example replies to outreach, ad ideas per week or landing page conversion.
Set up the tools
Open Claude Code, Gemini, Meta Ad Library. Load your offer, audience and examples of what already works.
Generate, then review
Have the agent research and draft. You approve every message, post or ad before it goes out.
Measure and iterate
Track the metric for a week, keep what works and feed the results back into the prompt.
Copy the full setup prompt
Paste into your agent and it will walk you through the setup, asking before anything that sends, posts or spends.
You are helping me set up this AI use case end to end in Claude Code. Goal: Build a tool that surfaces competitors' top Meta ads What the original author did: Vibe-coded a Claude Code tool that uses the Meta Ad Library's new sort by impressions to show which competitor ads get the most views. Reported result (as claimed by the author): Shared as a working tool. Source: https://x.com/techxsarfraj/status/2073045278874345946 Tools they used: Claude Code, Gemini, Meta Ad Library Category: Marketing & growth Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Codex. Goal: Build a tool that surfaces competitors' top Meta ads What the original author did: Vibe-coded a Claude Code tool that uses the Meta Ad Library's new sort by impressions to show which competitor ads get the most views. Reported result (as claimed by the author): Shared as a working tool. Source: https://x.com/techxsarfraj/status/2073045278874345946 Tools they used: Claude Code, Gemini, Meta Ad Library Category: Marketing & growth Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Grok Bot. Goal: Build a tool that surfaces competitors' top Meta ads What the original author did: Vibe-coded a Claude Code tool that uses the Meta Ad Library's new sort by impressions to show which competitor ads get the most views. Reported result (as claimed by the author): Shared as a working tool. Source: https://x.com/techxsarfraj/status/2073045278874345946 Tools they used: Claude Code, Gemini, Meta Ad Library Category: Marketing & growth Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
Related use cases
Run an AI SDR team with human approval
Daily, three Sonnet agents take 15 leads each, research the site and Meta Ads Library, find weaknesses and write a cold email; Opus reviews and he approves.
Turn winning TikToks into shoot-ready ad briefs
Vibe-coded a research agent in Claude Code that scrapes the top TikToks in a niche, has AI break down why they work and writes a brief a team can film.
Use three AIs in one workflow, each for what it is best at
An n8n workflow where Claude Code works with Obsidian, Gemini classifies and ChatGPT summarizes emails from Google Drive.
Ship a fun AI recipe app to the App Store
Built Meld: pick two cuisines and AI invents a new dish with photo, ingredients and steps; Flutter plus Gemini, written with Claude Code and Antigravity.