SEO-Optimize Your Website with Claude Code

Follow these steps to set up Claude Code for SEO optimization. Click each step to expand the full instructions.

1
Install Visual Studio Code
  1. Go to code.visualstudio.com
  2. Click the download button — it will detect your operating system (Windows, Mac, or Linux) automatically.
  3. Run the installer and follow the on-screen instructions.
  4. Once installed, open VS Code to make sure it launches correctly.
2
Install Claude Code
  1. Open the terminal inside VS Code by pressing Ctrl + ` (or Cmd + ` on Mac).
  2. Run the following command:
    npm install -g @anthropic-ai/claude-code
  3. If you don't have Node.js installed yet, download it first from nodejs.org (choose the LTS version), then retry the command above.
  4. Once installed, type claude in the terminal and press Enter. Follow the prompts to log in with your Anthropic account.
3
Open Your Website Project
  1. In VS Code, go to File → Open Folder and select the directory containing your website's code.
  2. If your code is on GitHub, clone it first by running this in the terminal:
    git clone https://github.com/your-username/your-website.git
    Then open the cloned folder in VS Code.
  3. Open the terminal (Ctrl + ` or Cmd + `) and type claude to start Claude Code inside your project.
  4. Claude Code will automatically read your project structure and understand your codebase — it works with any framework: Next.js, React, WordPress themes, Hugo, Gatsby, or plain HTML.
4
Scrape Top SEO Advice from YouTube
  1. Go to apify.com and create a free account.
  2. Navigate to Settings → Integrations and copy your Personal API Token.
  3. Search YouTube for top SEO videos. Example queries:
    • "SEO optimization 2026"
    • "technical SEO checklist for websites"
    • "on-page SEO strategy"
    • "how to rank on Google"
    • "SEO for small business websites"
  4. Copy the URLs of 3-5 top-performing videos (look for 100K+ views from established SEO creators).
  5. Ask Claude Code to scrape the transcripts. Example prompt:
    Use Apify's YouTube transcript scraper to extract transcripts from these videos: [paste your URLs here]. Save them to a file so we can reference the advice.
  6. Claude Code will use the Apify API to pull the full transcripts and save them locally in your project.
5
Apply SEO Optimization to Your Website

Now that you have expert SEO advice in your project, ask Claude Code to optimize your site. Here are example prompts you can use:

  • "Read the SEO transcripts and apply the most impactful technical SEO improvements to my website"
  • "Add JSON-LD structured data to all my pages"
  • "Create an XML sitemap and robots.txt"
  • "Add meta tags, OpenGraph tags, and canonical URLs to every page"
  • "Add FAQ sections with FAQPage schema to my key pages"
  • "Improve internal linking across my site"
  • "Optimize my images for page speed"

Claude Code reads the transcripts, understands the recommendations, and implements them directly in your code. Review each change — it explains what it's doing and why.

This is the exact workflow used on buildauthority.ai: XML sitemap, JSON-LD schema (FAQPage, Article, VideoObject), meta/OG tags on every page, internal linking mesh, FAQ sections, and a blog content pipeline — all implemented with Claude Code.

Watch the Full Walkthrough

For B2B business owners

Want inbound leads from organic LinkedIn content?

See How It Works