CLA · Claude Code · ~10 min · Easy

Make Your Site Visible in ChatGPT Using Claude Code

Claude Code runs in your terminal and reads your entire codebase before making changes. It understands your framework, finds the right files, and adds GEO optimization assets correctly — no guessing required.

Why Claude Code works especially well

Unlike other AI tools that work file-by-file, Claude Code sees your whole project at once. It knows if you're using Next.js App Router vs Pages Router, where your public directory is, and how your layout is structured — so Schema.org ends up in exactly the right place.

What we'll add:
  • Organization Schema — AI correctly identifies your business
  • FAQ Schema — +41% citation rate in AI responses
  • robots.txt — allow GPTBot, ClaudeBot, PerplexityBot
  • llms.txt — AI agents understand your site instantly
0

Generate your GEO assets first

  1. Go to causabi.com
  2. Enter your site URL and run the audit
  3. Download the ZIP — it contains Schema.org, FAQ Schema, llms.txt, and robots.txt
1

Install Claude Code (if not already installed)

Terminal
npm install -g @anthropic-ai/claude-code

Then run claude in your project directory and sign in with your Anthropic account.

2

Paste the GEO optimization prompt

Open Claude Code in your project root and send this message. Replace the placeholders with your actual content from Causabi.

Claude Code Prompt
I need to add GEO optimization to this site so it gets cited in ChatGPT, Perplexity, and other AI search engines. Please do all of the following: 1. Add Organization Schema JSON-LD to the <head> of every page: [PASTE YOUR ORGANIZATION SCHEMA FROM CAUSABI] 2. Add FAQ Schema JSON-LD to the homepage <head> only: [PASTE YOUR FAQ SCHEMA FROM CAUSABI] 3. Create or update the robots.txt file to allow AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, Bytespider). 4. Create an llms.txt file with this content: [PASTE YOUR LLMS.TXT CONTENT FROM CAUSABI] Use the correct approach for this project's framework. Make sure all files end up in the right locations.
What happens next

Claude Code will read your project, identify the framework (Next.js, Vite, Astro, etc.), and make all the necessary file edits. It will show you exactly what it's changing before applying. For Next.js, it automatically uses app/layout.tsx for App Router or pages/_document.tsx for Pages Router.

3

Deploy and verify

  1. Deploy your changes (Claude Code can also help with this)
  2. Check your-site.com/robots.txt and your-site.com/llms.txt
  3. Go to causabi.com → run a new audit — score should reach 70+
  4. Validate Schema: validator.schema.org

Bonus: Automate with the MCP server

If you want Claude Code to automatically generate and apply GEO assets for any project, install the Causabi MCP server:

npm install -g geo-optimizer-mcp

Then tell Claude Code: "Use the geo-optimizer MCP to optimize this site." It handles everything automatically.

Generate your GEO files for free

Causabi creates Schema.org, FAQ Schema, llms.txt, and robots.txt tailored to your specific site — ready for Claude Code to apply.

Generate GEO assets →
GEO Optimization with Claude Code — Schema.org, llms.txt, robots.txt | Causabi