Claude Code for SEO: My Keyword-to-Page Workflow
Claude Code for SEO is how this blog gets built. I run a set of SEO skills in Claude Code that pick keywords from live search results, write pages that answer the question first, grade every page before it ships, and track whether AI answer engines mention the brand at all.
Claude Code for SEO means using an AI agent for the research and production work around search: reading the real results for each keyword, choosing ones a page can win, writing answer-first pages, grading them before they ship and auditing the site's technical health.
Here is the workflow, step by step, with what Claude Code does and what I still check by hand.
Why Claude Code suits SEO work
SEO is mostly research, writing and checking, repeated across dozens of pages. That is the kind of work Claude Code handles well, because it works inside a folder and keeps everything as files: the keyword list, the cached search results, every page draft, every grade.
The key difference from a chat window is that nothing gets lost between sessions. The keyword list from last month is still there. The page grade from last week is still there. A new session picks up where the last one stopped.
The workflow at a glance
- 1
Strategy
what the site sells and which searches it should own
- 2
Keyword research
live search results decide, not difficulty scores
- 3
Write the page
keyword up top, answer first, real facts only
- 4
Grade it
an automatic on-page score plus a quality check
- 5
Technical health
crawl, schema, speed and security headers
- 6
Measure
Search Console exports and AI answer tracking
Step 1: Decide what the site should rank for
Before any keyword tool, Claude Code reads the site and writes down what the business sells, who buys, and which searches belong to which of your sites. That last part matters if you run more than one brand: I keep one owner per keyword across my sites so they never compete with each other. On this site, searches about my name, the AI Operator Kit, speaking and Claude Code tutorials belong here; software searches belong to another brand.
Step 2: Pick keywords by reading the results
This is where Claude Code changes the work most. Instead of trusting a difficulty score, it pulls the real top results for each candidate keyword and reads them:
- How many of the top five pages target the exact phrase in their title or address?
- Are forums, Reddit threads and directories ranking? That usually means the results are weak.
- Is one big company holding most of the page? Then it is not worth it yet.
- Did Google read the phrase the way I meant it? A keyword can look wide open when the results are about something else.
Each keyword gets a verdict: wide open, winnable, competitive or park. For this batch of articles, it checked 40 candidate keywords in one run. I still read the closest calls myself and overrode several, such as list-article results the script scored too kindly.
Step 3: Write pages that answer first
Every page follows the same rules: the keyword in the title, the main heading and the first sentence; a short answer of under 50 words near the top; headings that read like a table of contents; questions people really ask, taken from the "People also ask" box, answered in a FAQ.
Claude Code drafts from real sources only: my own videos and transcripts, product files and official documentation. It never makes up a statistic. Anything it cannot confirm gets cut or marked for me to check.
Step 4: Grade every page before it ships
Two checks run on every draft:
- An on-page grader that scores 70 points of measurable placements: keyword in title, heading, first sentence and address, title length, description length, image alt text, internal links, word count. The articles on this blog are graded this way before they go live.
- A quality gate that flags words and patterns that make copy read like AI wrote it, plus claims that need fact-checking, such as superlatives and prices.
A page has to pass both. When it fails, the fix is usually the first sentence or a missing image description, not more keywords.
Step 5: Keep the site technically healthy
Claude Code runs a crawl of the whole site and checks what search engines see: broken links, missing titles, duplicate descriptions, redirects, structured data, sitemaps and security headers. On this site, that audit found more than 500 posts that only appeared behind a "load more" button, so they were never linked in plain HTML. The fix was topic hub pages that list every post.
Step 6: Measure, including AI search
Two kinds of measurement:
- Search Console: I export the queries and pages reports by hand, and Claude Code analyses them: pages stuck on page two, queries with high impressions and low clicks, pages that lost traffic.
- AI answer engines: a fixed set of questions goes to the major engines every month, and Claude Code logs whether the brand is mentioned or cited. Same questions every time, so the trend means something.
ChatGPTPerplexity
Gemini
Claude
What I still do by hand
- Read the closest keyword calls and decide.
- Read every page before it goes live.
- Export Search Console data, since there is no automatic connection in my setup.
- Request indexing for new pages.
Claude Code does the research and the first draft of everything. Judgment on what to publish stays with me.
Claude Code for SEO: FAQ
Is Claude Code good at SEO?
Claude Code is good at the research, writing and auditing work that SEO is made of, especially when it reads real search results and real sources instead of guessing. It still needs a person to judge close calls and approve what gets published.
Can Claude Code do keyword research?
Claude Code can run keyword research when you connect it to a search results source, such as a SERP API. It then reads the top results for each keyword and judges how winnable it is. Without real results it can only suggest phrases, and those need checking.
Will AI-written pages get penalised by Google?
Google's spam policies target large numbers of low-value pages made mainly to rank, whoever writes them. Pages built from real expertise, checked by a person and published in small batches are a different thing. I publish in batches of about five and read every one.
What SEO tasks should I automate first?
Start with the technical audit and page grading, because they are repetitive and easy to check. Then move to keyword research with live results. Writing comes last, once your sources and quality checks are in place.
Copy the writing side of this setup
The AI Operator Kit includes a local and AI search play: Google Business Profile fixes, review replies, one service page a month and a monthly log of what AI engines say about you. For building the site itself, see how to build a website with Claude Code.