The video is in Spanish. This article is its English version.
Claude Code does an afternoon's worth of SEO in minutes, but it only gets it right if you feed it data and check what it changes. Here's consultant David García's method.
The gist, in 5 points
- Before you ask it for anything, give it data: Search Console, Analytics, the Google Business Profile, your competitors' keywords and a crawl of the website.
- Without that data, the AI can rewrite a title and strip out the keyword that was already bringing you customers.
- Ask for tasks one at a time and have it double-check them, then check them yourself.
- Read permissions first; write permissions task by task and with a backup.
- AI doesn't replace someone who knows SEO: it multiplies what they know, and for someone who doesn't, it multiplies their mistakes.
What Claude Code is and why it works for SEO
Claude Code is Anthropic's tool that, according to its documentation, reads your project files, edits them, runs commands and connects to your tools. It works in the terminal, in your editor, in a desktop app and in the browser.
It was built for coding, but for SEO it has one clear advantage: it can work with all of a website's data at once (Search Console exports, competitor keywords, a full crawl) and, if you give it access, make changes to the website directly.
In this Secret SEO episode, David García, an SEO consultant in Murcia since 2013 who specializes in GEO, shows how he does his clients' SEO with Claude Code. Claude Code is his first choice; if he runs out of credits, he falls back on ChatGPT's Codex, and he leaves Antigravity for last. Cursor works too. The tool matters less than the method.
«Don't do anything, or try not to do anything, that you don't know how to do yourself… no matter how good the model is, it might make a mistake or screw something up»
It sounds contradictory, but it isn't. AI screws up, and quite a lot. The problem is that it's not easy to spot: for that, you need to know where to look.
Step 1: the data you need to ask the client for
The first thing David does when he takes on an SEO or GEO client is ask for three kinds of access:
- Google Search Console.
- Google Analytics.
- Their Google Business Profile, if they have one.
The second is to connect everything via API to a dashboard (he shows it at 2:46). If the API is complicated, no problem: you export the data. From Search Console you pull all the keywords, the pages and which keywords each page ranks for.
Step 2: competitor keywords and a crawl of the website
That's not enough on its own. David looks for medium and large competitors, either direct competitors or blogs in the industry, and pulls every keyword they rank for (at 3:05). He uses Ahrefs and Semrush, but any similar tool will do, and there are even open-source options that work via API.
Then comes a full crawl of the website with Screaming Frog, the “frog” every SEO uses. If you don't have it, there are repositories for Claude Code that crawl a website, although they don't pull the same data.
Step 3: everything in one folder and an in-depth audit
With all that, David creates a folder, puts all the information inside and opens Claude Code in that folder. He uses it in the terminal because it's convenient for him, but you don't have to.
From there, it's just chatting. He gives it all the context (“we have this, we have that”) and asks it for an in-depth audit, with everything an SEO would include.
And this is where the advice from the beginning comes in. David sees it almost every day: the model gets things wrong. If you know what it's doing, you'll spot it and tell it. If you don't, at least ask it “are you sure about this?” and make it check again. But the final review has to be done by someone who knows what to look for.
«The more context you give it, the less you have to do yourself and the better it'll work. When you don't give it context is when it's going to make the most mistakes»
The title trap: how AI can cost you customers
In the video intro I already warned you: watch out for the titles, because that's where AI without data can do you the most damage.
When you ask AI to improve your SEO titles and meta descriptions, it does. But if you haven't given it the Search Console data, it doesn't know which keywords each URL already ranks for. And it can change a title that was working and strip out the keyword that was bringing you customers (he explains it at 8:29).
How to avoid it:
- Always give it the keywords each page already ranks for.
- Tell it explicitly that, when it rewrites a title, it must not remove any keyword the URL already ranks for.
- Review every change before publishing it.
The same thing happens with competitor data, but in your favor: it sees how the sites that perform well have done it and applies that.
Connecting the website: WordPress, Shopify or PrestaShop
The next level is giving it access to the website so it can apply the changes.
- On WordPress, with an application password. They've been in WordPress since version 5.6, you create them on your user's edit screen and they work with the REST API. You create one, connect it and you're done.
- On Shopify, with an app.
- On PrestaShop, with its web service.
With that, it has the full context of the website and can start working through tasks. But David doesn't tell it “do everything yourself.” He asks it for a list of the top-priority tasks and goes task by task: it does the task, it reviews it again because it tends to miss something, and then he reviews it himself.
What tasks he gives it
With the website connected and the data loaded, this is what David asks it to do:
- Fix errors found in the crawl.
- Create the pages your competitors have and you don't (at 9:54). If a subcategory works really well for a competitor and you have the products to build it, you build it.
- Add dates to articles. David sees this working well for language models. If there are very old articles, showing the date can put people off, so it's a decision to make with the client.
- Clean up articles that add nothing. With the traffic data, the AI sees which articles get no visits, which can be removed and which can be redirected to others.
- The technical side of Search Console: submitting the sitemap and also submitting it to Bing.
- A monthly plan with the work done, to report to the client.
GEO: measuring whether you show up in ChatGPT, Gemini or Perplexity
On the GEO side, David's dashboard asks the assistants questions and checks what they answer (at 11:15):
- Whether the business shows up in Gemini, ChatGPT, Perplexity, Google's AI Mode or Copilot.
- Which brands and stores they recommend most.
- And his favorite part: which sources the AIs are reading to build their answer.
That last one is gold. If you get mentions in the sources they read most, you have a much better chance of being recommended. If you want the approach for local businesses, check out how to show up in ChatGPT with your local business.
And for local SEO: a rank map and Google Business Profile posts
David admits he's not a local expert, but a client asked him for something to track their position on the map, so he built it: a rank map (the classic geogrid) with average position and how often they show up in the top 3, plus a monthly Google Business Profile report.
The most interesting part is an automation (at 13:35): since the website and the profile are connected via API, every offer published on the website automatically creates a new post on the Google Business Profile. And for the client who doesn't understand the dashboard, there's an assistant they can ask “how did SEO go last week?”
Permissions and backups
David gives the AI all the context and all the power, but “always with common sense”:
- Read permissions: all of them. Search Console, Analytics and anything else for looking.
- Write permissions: carefully. Nothing very sensitive.
- Every change must be reversible. He always asks for that.
- Backups. He makes one almost every day, by hand.
My takeaway from this episode
David says it almost in passing, but for me it's the most important thing in the whole video: always with common sense.
«AI doesn't replace someone who knows SEO, it multiplies them. In other words, for someone who knows, it multiplies what they know, and for someone who doesn't, it multiplies their mistakes»
Matt Romero, in the video · Translated from SpanishListen at 17:05Think of it as an intern you're handing the keys to your website. You do hand over the keys, but one at a time. I'd start with the ones that are only for looking, like Search Console and Analytics, and leave the ones for changing the website for later, task by task and always with a backup.
And to review what the AI does, you need to know SEO. If you're missing the basics, start with the free local SEO course, and if you want to go deeper, with the academy's local SEO course.
Frequently asked questions
Can you do SEO with Claude Code?
What data should you give AI for an SEO audit?
Why can AI make my website's SEO worse?
Is it safe to give Claude Code access to my WordPress site?
Sources
What we cite, read in the original.


