Claude Code SEO: How to Automate Blog Posts, Service Pages, and Technical SEO

29 May 2026 20:38 99,743 views
Learn how to use Claude Code to build a fast SEO-optimized site, find high-intent keywords, generate human-sounding content at scale, and automate on-page and technical SEO without writing code.

Most people spend months wrestling with WordPress, plugins, and random SEO advice. With Claude Code, you can go from zero to a technically solid, content-rich website in days – even if you can’t write a line of code.

This guide walks through a complete system for using Claude Code to build an SEO-focused site, find winning keywords, generate content that doesn’t read like AI slop, and automate both on-page and technical SEO. It’s the same style of approach people are using to drive tens of thousands of organic clicks per month.

SEO Basics (And Why AI SEO Is Not Different)

Search engine optimization (SEO) is the process of getting your pages to rank as high as possible on Google for valuable search terms. If someone types “Toronto plumbing company,” you want to be in the top few results, because:

• Roughly 40% of clicks go to the first organic result.
• Around 20% go to the second result.
• Click-through drops sharply after that.

There’s a lot of noise right now about “AI SEO,” but in practice, it’s the same game. When you ask tools like Google, ChatGPT, Perplexity, or Claude a question, they still pull from web content that ranks well in traditional search. If you rank well in regular SEO, you’re in a strong position for AI-powered search too.

Setting Up a Claude Code Website (No Coding Needed)

Claude Code is a coding workspace that lets you build full websites with natural language prompts. It sounds technical, but you don’t need to know how to code – as long as you can copy and paste, you can use it.

1. Create Your Project Folder and Claude Instructions

Step 1: Create a new empty folder on your computer (for example, seo-brief).

Step 2: Inside that folder, add a file called claude.md. This file is like your “employee handbook” for Claude – it tells the model how to behave, what stack to use, and how to structure your project. You can reuse a prepared claude.md template so Claude knows to build a static, SEO-friendly site.

2. Generate the Core Pages

Open the folder in Claude Code and prompt it to build your site. For example:

• A homepage
• A blog index page (lists all blog posts)
• A service index page (lists all service pages)

To avoid generic “AI slop” design, give Claude a visual reference. Go to Dribbble, search for something like “plumbing website,” take a screenshot of a design you like, and upload that screenshot with your prompt. Claude will clone the layout and styling for your site.

3. Use Static Site Generation for SEO

For SEO, you want your site built with static site generation (SSG). In simple terms:

• Static site: The page is already “baked” when Google visits. It loads instantly and is easy to crawl.
• Server-side rendering: The server builds the page on request, which adds delay.
• Client-side rendering: The browser builds the page with JavaScript – Google may see an incomplete or empty page.

SSG makes it easy for Google to crawl and index your content. The right claude.md template can force Claude Code to use a static framework (like Next.js with static export) so you don’t have to think about it.

Finding Winning Keywords with SEMrush

Most people ask an AI model for keyword ideas and call it a day. That’s a fast way to waste years. Models don’t know real search volume, keyword difficulty, or commercial intent. You need a proper SEO tool for that.

SEMrush’s Keyword Magic Tool is a solid option (you can start on a free trial). Here’s a simple process using “plumber” as an example.

1. Start with a Root Keyword

In SEMrush, go to SEO → Keyword Magic Tool and enter a root keyword like “plumber”. You’ll get thousands of variations: “plumber near me,” “emergency plumber,” “plumber fix shower,” and so on.

2. Filter for Easy, Valuable Keywords

Apply three key filters:

Keyword Difficulty ≤ 30: Easier to rank for, especially with a new site.
Search Volume ≥ 100: Enough people are searching each month to be worth targeting.
Intent = Informational (for blog posts): These are questions and how-tos, not people trying to buy right now.

This cuts your list from thousands of keywords down to a manageable set of realistic opportunities.

3. Choose the Right Types of Keywords

Skip keywords that are:

• Brand names or specific businesses (e.g., “Zeke the Plumber”).
• People looking to start their own plumbing company (unless that’s your audience).

Focus on keywords that represent potential customers, like:

• “plumber for low water pressure”
• “plumber fix shower”
• “washing machine drain plumber”

You can also click the Questions tab in Keyword Magic to find blog-friendly ideas like “how much does a plumber cost?” – perfect for attracting people who are close to hiring.

4. Build a Keyword List and Export It

Add promising keywords to a list (for example, “Plumbing Keywords”) inside SEMrush. When you’re done, export the list as a CSV file. This CSV will feed Claude Code later so it can generate posts for each keyword automatically.

Turning Keywords into High-Quality Blog Posts

Once you have your CSV of keywords, drag it into your Claude Code project (for example, name it keywords.csv). The goal is to turn each keyword into its own optimized blog post.

1. Generate the First Draft

You can start with a simple prompt like:

“Create a blog post about ‘plumber for low water pressure’. Use that as the primary keyword. Create a keyword cluster from related terms in keywords.csv or infer them. Add images from Pexels using the API key in .env.”

To use Pexels images, request an API key from Pexels, then store it in a .env file in your project. Claude can then automatically pull relevant royalty-free images into your posts.

2. Use Keyword Clusters, Not Just Single Terms

Each post should target a cluster of related keywords, not just one phrase. For example, a post on “how to unclog a drain” might also naturally include:

• “unclog kitchen sink”
• “slow drain sink”
• “home remedy clogged drain”
• “what dissolves hair in drain”

Claude can generate or infer these clusters and weave them into headings and body copy so each page ranks for dozens of long-tail queries instead of just one.

3. Fix the “AI Slop” Problem with Your Voice

Out-of-the-box AI content usually reads like this: “In today’s fast-paced world, maintaining a functional household is more important than ever…” That’s boring, generic, and forgettable. If you want visitors to stay, read, and eventually contact you, your content needs personality.

Train Claude on your voice by collecting real samples of how you write and speak:

• Emails you’ve sent
• LinkedIn posts or social content
• Transcripts from calls or videos
• Articles or passages whose tone you love

Drop these into reference files in your project (for example, voice.md, humor.md, stories.md, opinions.md). Then prompt Claude to analyze and summarize your style in each file. From there, you can tell it:

“Rewrite this blog post using my voice, humor, and stories from the reference files. Plumbing is boring – your job is to make it fun and readable.”

The result is content that still hits SEO signals but reads like a real human wrote it – with jokes, asides, and specific anecdotes.

4. Steal What Already Ranks (Ethically)

Before finalizing a post, have Claude analyze the top 3 ranking articles for your primary keyword. For example, if you’re writing about “how much does a plumber cost,” copy the URLs of the first three non-forum results and ask Claude to:

• Fetch and analyze their structure (headings, word count, FAQ sections, images).
• Identify common topics they all cover.
• Use the average word count and section depth as a target.
• Build your post outline based on what clearly works.

You’re not copying their text – you’re reverse-engineering the format and depth that Google is already rewarding, then filling it with your own voice and better explanations.

Building Money-Making Service Pages

Blog posts build topical authority and long-term traffic. But the pages that usually make you money are service pages – the ones people land on when they’re ready to hire.

1. Service Pages vs. Blog Posts

Blog posts answer questions and educate (“how much does a plumber cost,” “signs you need a new water heater”). They build trust and authority.
Service pages target “money keywords” like “emergency plumber Toronto” or “drain cleaning Vancouver.” These people want to buy now.

As your blog content grows, it raises your overall domain authority. That “rising tide” lifts your service pages higher in the rankings for those lucrative local queries.

2. Use the Zipper Method: Service × City

Think of service pages as a zipper with two sides:

• Side A: Your services (emergency plumber, drain cleaning, leak detection, hot water repair).
• Side B: Your locations (Vancouver, Toronto, Montreal, Edmonton – or neighborhoods/municipalities).

You “zip” them together into individual pages:

• Emergency plumber Vancouver
• Emergency plumber Toronto
• Drain cleaning Montreal
• Leak detection Edmonton

Each of these is its own landing page with localized copy, testimonials, and calls to action.

Important: Don’t spam out thousands of near-duplicate service pages. Keep the number reasonable and make each page genuinely useful and locally relevant.

3. Find High-Value Service Keywords

Back in SEMrush, you can sort your “plumber” keyword results by Cost Per Click (CPC). High CPC terms are the ones advertisers are paying real money for – which usually means they convert well.

You’ll often see patterns like:

• “Plumber West Chase”
• “Plumber Baldwin Park CA”
• “Plumber Arnold MD”

These “service + city” combinations are perfect candidates for service pages. Add them to a separate keyword list (for example, “Service Pages”), export as CSV, and feed that into Claude Code as service-keywords.csv.

4. Reuse Your Best-Converting Layout

If you run Google Ads or other paid campaigns, you can A/B test different landing page designs to find a layout that converts well (for example, 20% of visitors filling out a form or calling). Once you have a winner, use that layout as the template for all your service pages.

In Claude Code, you can prompt:

“Create a service page for ‘emergency plumber Toronto’ using the same layout and structure as the homepage, but optimized for this city + service keyword.”

This way, you’re not just ranking – you’re also converting a higher percentage of visitors into leads.

Automating On-Page SEO with a Checklist

On-page SEO is everything you control on the page itself: titles, headings, internal links, keyword placement, FAQs, and more. Big SEO companies have teams doing this manually; with Claude Code, you can automate most of it.

1. Use an On-Page SEO Checklist

Create (or paste in) a detailed checklist of on-page best practices – 80+ items is realistic. It might include:

• Exactly one H1 per page.
• Primary keyword in the first 100 words.
• 3–5 internal links to relevant pages on your site.
• 2–3 external links to authoritative sources.
• 4–8 FAQ-style questions and answers.
• Descriptive alt text on all images.
• Clean, readable URL slugs.
• Compelling meta title and meta description.

Then tell Claude:

“Update this blog post to satisfy every item in the on-page SEO checklist, while keeping the existing humor, voice, and tone intact.”

Claude will insert links, adjust headings, tweak copy, and generate metadata – all without stripping out your personality.

2. Generate Meta Titles and Descriptions

Meta titles and descriptions are what show up in Google’s search results. For example, for a “plumber for running toilet” article, you might see:

Meta title: “Plumber for a Running Toilet: Quick Fixes and When to Call a Pro”
Meta description: “Running toilet won’t stop? Learn simple fixes you can try in 30 minutes and when it’s time to call a licensed plumber.”

Claude can generate these for every page and insert them into your HTML so they’re ready for search engines.

Automating Technical SEO with Lighthouse, Sitemaps, and Robots.txt

Technical SEO used to require a developer. Now you can handle most of it by pasting reports into Claude and letting it fix the issues.

1. Run a Lighthouse Audit

In Chrome, open your page, then:

• Click the three-dot menu → More tools → Developer tools.
• Click the Lighthouse tab (under the » menu if needed).
• Run an audit for Performance, Accessibility, Best Practices, and SEO.

You’ll get scores out of 100. New sites often start with something like 50–60 for Performance and 80–90 for SEO.

2. Let Claude Fix the Technical Issues

Expand all the problem sections in the Lighthouse report so you can see the details (render-blocking resources, unused JavaScript, LCP issues, etc.). Copy the entire report and paste it into Claude with a prompt like:

“Here’s my Lighthouse report. Optimize the site so we reach 100 for Performance, Accessibility, Best Practices, and SEO. Also generate a robots.txt file and a sitemap.xml file.”

Claude will:

• Refactor code to improve load speed and performance.
• Fix accessibility issues (labels, contrast, ARIA attributes).
• Clean up SEO-related technical issues.
• Create sitemap.xml listing all your important URLs.
• Create robots.txt to tell search engines what they can crawl.

Re-run Lighthouse. If you’re not at (or near) 100 across the board, paste the new report back into Claude and iterate until you are.

Packaging Everything into a Claude Code “Blog” Skill

Doing all of this once is powerful. Automating it is where things get crazy.

In Claude Code, you can define a custom skill called something like blog that chains all the steps together. The blog skill can:

• Pick the next unused keyword from keywords.csv.
• Build a keyword cluster around it.
• Analyze the top-ranking competitors for that keyword.
• Generate a full blog post using your voice, humor, and stories.
• Insert Pexels images via the API.
• Apply the on-page SEO checklist.
• Reuse the optimized technical structure.

Once the skill is defined, you can literally type blog in a new chat and let Claude handle the rest. You can even schedule it (for example, one new post every morning) so your site grows steadily over time.

Important: Don’t publish hundreds or thousands of posts in a single day. A sudden spike in content volume can look unnatural and trigger issues. Grow at a human-like cadence – for example:

• Week 1: 1 post per day.
• Week 2: 1–2 posts per day.
• Week 3+: 2–4 posts per day, depending on your niche.

Off-Page SEO: What to Avoid and What Actually Helps

Off-page SEO is everything that happens off your site: backlinks, mentions, and overall authority. It can help, but it’s also where many sites get penalized.

What to Avoid: Cheap Link Schemes

Be very wary of offers like “100 backlinks for $5.” These usually rely on private blog networks (PBNs) – large farms of low-quality sites linking to each other. Google is extremely good at detecting these patterns. Getting mixed up in them can:

• Tank your rankings over time.
• Get your site algorithmically suppressed.
• In worst cases, lead to manual penalties that are hard to undo.

Safer, Legitimate Off-Page Tactics

If you want to build authority more safely, focus on:

Broken link replacement: Use SEMrush to find broken outbound links on big sites in your niche. Create a better replacement page on your site and politely ask them to swap the dead link for yours.
Guest posting: Search Google for queries like "plumbing" "write for us". Many sites accept contributed articles in exchange for a bio link back to your site.
Journalist requests (HARO-style): Answer expert questions from journalists in your niche and earn links from reputable publications.
Paid placements on quality sites: Some high-authority sites sell sponsored posts or links. These can be expensive but safer than mass link farms if chosen carefully.

That said, for many local and niche businesses, you can get very far just by targeting smart keywords and publishing genuinely good content at scale – especially if you’re using AI tools well. If you want to see how this kind of automation translates into broader AI businesses, check out this guide on building a $10K/month AI business.

Deploying Your Site and Connecting Google Tools

So far, your site has been running on localhost – only you can see it. To make it public and indexable, you’ll deploy it using GitHub and Vercel.

1. Push Your Project to GitHub

• Create a new private repository on GitHub (for example, seo-brief).
• Copy the Git commands GitHub shows you for pushing an existing project.
• Paste those commands into Claude Code and ask it to “upload the entire project to this GitHub repository.”

2. Deploy with Vercel

• Create a free Vercel account.
• Connect your GitHub account to Vercel.
• Import your repository as a new project.
• Make sure the framework preset is set to Next.js (or the static framework you’re using).
• Click Deploy.

Within about a minute, you’ll get a live URL like https://your-project.vercel.app. You can also connect a custom domain through Vercel or a registrar like Namecheap.

3. Set Up Google My Business

If you’re a local service business, a Google My Business listing is essential. It’s what shows up in the local map pack when someone searches “Toronto plumber” or similar. Set up a free profile, verify your business, and link to your new site. This alone can drive thousands of local clicks over time.

4. Connect Google Search Console and Submit Your Sitemap

Google Search Console lets you see how your site is performing in search and helps you get indexed faster.

• Add a new property using your live site URL.
• Choose the URL prefix option.
• Verify ownership using the HTML tag method: copy the meta tag Google gives you, paste it into Claude, and ask it to add the tag to your site’s <head>, then redeploy via GitHub → Vercel.

Once verified:

• Go to the Sitemaps section and submit sitemap.xml (for example, https://yourdomain.com/sitemap.xml).
• For brand-new pages you care about, paste their full URL into the top search bar in Search Console and click Request indexing. This can get pages indexed in a day instead of weeks.

5. Add Google Analytics and Test Landing Pages

Install Google Analytics (GA4) so you can track:

• How many people visit each page.
• Which traffic sources convert best.
• How long visitors stay and how far they scroll.

Use this data to A/B test your service page layouts, then standardize on the highest-converting version across all your city + service combos. If you’re interested in more ways to combine Claude Code with revenue-generating funnels, you might also like this walkthrough of a $400K/month Claude Code app.

Putting It All Together

With the right setup, Claude Code becomes your SEO team:

• It builds a static, fast, technically clean website.
• It turns real keyword data from SEMrush into blog posts and service pages.
• It writes in your voice, with your humor and stories, instead of generic AI filler.
• It applies on-page SEO checklists automatically.
• It fixes technical SEO issues using Lighthouse reports.
• It packages everything into reusable skills so you can scale content production safely over time.

Instead of guessing at SEO for years, you can let AI handle the heavy lifting while you focus on what actually matters: understanding your customers, choosing smart topics, and offering a service worth ranking for.

Share:

Comments

No comments yet. Be the first to share your thoughts!

More in Copywriting & SEO