Add BreadcrumbList schema — Claude Code
Raw URL paths in search results look ugly and get fewer clicks. BreadcrumbList schema replaces them with a clean hierarchy.
Fixing this in Claude Code
Anthropic's official terminal coding agent
Claude Code can grep the whole codebase first, plan the change, then edit every affected file. Paste the prompt below into your Claude Code chat and the fix rolls out across the project in one pass.
Using a different tool? Pick your stack:
The prompt for Claude Code
Copy and paste this into your Claude Code chat exactly as-is.
Run Claude Code in the project root and make these exact changes, scanning the whole codebase first: Add BreadcrumbList schema 1. Add BreadcrumbList JSON-LD with itemListElement for each level of the page hierarchy.
Why this matters
Breadcrumbs in the SERP replace ugly URL paths like `/blog/2024/07/my-post-slug` with "Home > Blog > My Post". Cleaner, more clickable, more trustworthy.
Breadcrumbs also help Google understand your site structure — which pages are hubs, which are leaves — for better internal ranking distribution.
How to use this prompt in Claude Code
- 1. Open your Claude Code project.
- 2. Copy the prompt above with the copy button.
- 3. Paste into the Claude Code chat and send.
- 4. Review the diff, accept the changes, redeploy.
- 5. Verify the fix using the checklist below.
Common mistakes to avoid
- error_outlineMissing the position field in list items.
- error_outlineBreadcrumb items that do not reflect the actual page hierarchy.
- error_outlinePutting BreadcrumbList on the homepage — breadcrumbs start AFTER home.
How to verify the fix worked
- check_circleRich Results Test recognizes BreadcrumbList.
- check_circleSERP for a sub-page eventually shows the breadcrumb path.
Frequently asked questions
Match on-page breadcrumbs?expand_more
How many levels?expand_more
Want all 34 prompts tailored to your Claude Code site?
Pantra scans your site in 10 seconds, detects the stack, and generates the exact prompts that apply — only the ones you actually need.
Scan my siteRelated Claude Code prompts
Add Organization schema — Claude Code
Prompt to add Organization JSON-LD with logo, sameAs links, and contact info to your homepage.
AI Search / GEOAdd JSON-LD structured data — Claude Code
Prompt to add Organization, Article, and FAQ JSON-LD to <head> — tells Google and AI crawlers exactly what your page represents.
Structured DataAdd WebSite schema with SearchAction — Claude Code
Prompt to add WebSite JSON-LD with a SearchAction — unlocks the sitelinks search box under your brand in Google.
Structured DataAdd FAQPage schema — Claude Code
Prompt to add FAQPage JSON-LD and enable expandable FAQ rich results in Google, plus AI citation signals.