How to Reverse Engineer Competitor SEO: I Tested the Viral REA Repo
REA can take apart any app, but it misses most of what Google ranks. Here's the free skill that finds why competitors outrank you and writes the plan.
To reverse engineer a competitor's SEO, you compare their page, their whole site and their Google presence against yours across several keywords, then turn every gap into a plan. The viral REA (Reverse Engineer Anything) repo on GitHub only gets you part of the way there, so I built the missing half: a free Claude skill called REA SEO.
In this post I'll show you what REA sees (and misses) when you point it at a page that outranks you, what the missing half checks, and how to run it on your own site. It works the same whether you run your own business, freelance, or manage client sites at an agency.
What is the Reverse Engineer Anything (REA) repo?
REA is an open-source framework that lets your AI agent take any app apart and explain how it was built. It has been all over the web lately because it works on almost anything, from app behavior down to native binaries.
You can find it on GitHub as the REA repo. The logic that caught my eye was simple: if it can show how any app was built, it should be able to show how the number one result on Google was built, and why it ranks higher than you.
So I tested it. I installed the original repo, pointed it at a page that was ahead of us on Google, and asked it to help me understand why that page was winning.
Can REA reverse engineer why a competitor ranks higher than you?
Only partly. REA reads what is on the page, but most of what Google ranks you on sits outside the page. It got the basics right and missed the rest.
Here's what it found on its own: the page title, the heading outline, the links, and what the site was built on. Useful, but that's a small part of the story.
Here's what it couldn't see:
- Schema markup and the meta description
- Site speed
- Backlinks and brand authority
- The rest of the website, not just the one page
- Anything related to AI search
That's a problem, because Google says it ranks pages with automated ranking systems that look at many factors and signals across the web, not just the words on one URL. A page-only teardown can't explain a ranking gap that lives in links, reviews or speed.
What does a full competitor SEO teardown need to check?
It needs data from outside the page: the live results page, Google Business Profiles, links, authority, speed and AI search visibility. REA still gives you a great structure, it just needs a data source and SEO instructions.
So I used REA as a kind of template, connected it to DataForSEO (it plugs straight into Claude Code), and gave it a specific set of SEO instructions on what to look for. That became REA SEO. It has nothing to do with the original REA project, it's just inspired by it.
Here's how the two compare:
| What it checks | REA (original) | REA SEO |
|---|---|---|
| Page title, headings, links | Yes | Yes |
| Tech stack the site is built on | Yes | No (not a ranking factor on its own) |
| Meta description, schema, canonical, alt text | No | Yes |
| Live Google results and search intent | No | Yes |
| Google Business Profile and reviews | No | Yes |
| Backlinks, domain rank, brand searches | No | Yes |
| Speed (Lighthouse) | No | Yes |
| AI search: AI crawlers, llms.txt, AI Overview and ChatGPT mentions | No | Yes |
| Competitors compared | One page you point it at | The 3 rivals that beat you most often |
| A step-by-step plan to close the gap | No | Yes |
Each of these matters for a reason. Google can use your meta description for the snippet people see before they click. It uses structured data to understand what your page is about. And Core Web Vitals measure loading, responsiveness and visual stability. If you want the full list of what to look at on your own site first, our SEO audit guide walks through it.
What does the REA SEO report show you?
A side-by-side report of your site against the three businesses that beat you most often, ending with the exact steps to get ahead of them. It's the kind of report you'd probably pay someone a few hundred dollars for.

In the video, I ran it for a mortgage lender with "mortgage lender in South Carolina" as the main keyword. Here's what the report walks through:
- Who is actually ahead of you. Positions across 5 to 10 commercial keywords, not one. The three businesses that beat you most often become rivals A, B and C. It can analyze more if you ask, but every extra competitor costs more DataForSEO credit.
- What Google shows for your main keyword. Every result on page one gets labelled by type (homepage, location page, directory, list article). This tells you the search intent: does Google want service pages, or do you need to get onto those list articles?
- Maps and Google Business Profile. Reviews, rating, categories, photos and who is in the map pack, compared side by side.
- Brand authority. Linking sites, domain rank, domain age and brand searches.
- On-page SEO and content. Titles, meta descriptions, schema, how much content you have compared to competitors, and page structure.
- Agentic SEO. Whether AI crawlers are allowed in, whether you have an llms.txt file, and whether Google's AI answers or ChatGPT mention you.
- Speed and links. Lighthouse performance compared to each rival, plus the sites linking to all of your competitors but not to you.
- The plan. What the top three have in common that you don't, turned into steps.
That agentic SEO section is one most people skip. In my opinion, if you win there, you have a better chance of being cited in AI search than your competitors. If that part is new to you, start with our guide to generative engine optimization.
How do you install and run REA SEO in Claude Code?
Install the skill from GitHub, connect DataForSEO, then type /rea-seo in a new conversation and give it your website. About 5 to 10 minutes later you get the report as a Claude artifact.
- Get the skill. Download it from the REA SEO download page, which also links to the REA SEO GitHub repo. The easiest install: in Claude Code, paste "Install this skill:" followed by the repo link.
- Use the Claude desktop app. It runs in the terminal too, but I find it easier in the desktop app with the Code option selected. It just has a little more functionality.
- Connect DataForSEO. You need a DataForSEO account on the pay-as-you-go plan, and you get $1 of free credit when you sign up. My one-minute DataForSEO setup video shows the connection, and this guide on connecting Claude to SEO data covers the options. Then check your plugins to make sure it's installed.
- Start a new conversation and type a slash followed by "rea". You should see REA SEO in the list.
- Give it your website. Ideally add the keyword you want to rank for and a competitor that's ahead of you. You don't strictly need those: your URL alone is enough, and it finds the keywords and rivals itself.
It checks the DataForSEO connector is there and tells you the cost before it spends anything. The repo puts a typical run at about $1 to $2 of credit. To share the report, use the artifact's sharing settings to export it. You also get the raw data as CSV files and an ACTION_PLAN.md checklist you can work through with Claude one step at a time.
If you like this kind of setup, there are more in our roundup of free SEO skills for Claude and Codex.
Will fixing the gaps get you to #1 on Google?
Not on its own. Correlation is not causation, so a gap in the report is a difference between sites, not proof of why Google ranks one higher. But it's the best place to start.
What the report gives you is clarity: why your competitor is beating you, and what to do about it. Some gaps are quick wins (a missing schema type, a weak title, a slow page). Others, like backlinks, reviews and brand searches, take real work over months.
One rule from the repo I fully agree with: steal the strategy, never the content. Copying a competitor's page word for word won't beat them. Covering the same intent better, with your own experience, will.
Want help closing the gap?
If you used REA SEO and liked it, give it a star on GitHub. And if you want help turning that plan into rankings (on Google and in AI search), that's what we work on every week inside AI Ranking: tutorials, live Q&A calls and reviews of members' own sites. You can join the AI Ranking community, or grab every free skill first in the free AI Ranking community.