跳到正文
cccskills
免费在 GitHub 公开

breadcrumb-generator

When the user wants to add, optimize, or audit breadcrumb navigation. Also use when the user mentions "breadcrumbs," "breadcrumb trail," "breadcrumb nav," "breadcrumb links," "path navigation," "site breadcrumb," "BreadcrumbList schema," "location-based breadcrumb," "attribute-based breadcrumb," "site hierarchy display," "add breadcrumbs," or "breadcrumb SEO." For BreadcrumbList JSON-LD, use schema-markup. For main nav, use navigation-menu-generator.

中文简介正在准备中。当前显示原文说明。

dalroot/agentic-seo星标 25(GitHub 25 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md7.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Components: Breadcrumb Navigation

Guides breadcrumb implementation for SEO, UX, and GEO. Breadcrumbs show users their location in the site hierarchy and help search engines understand content taxonomy. Well-implemented breadcrumbs can increase CTR by 20–30%, reduce bounce rates by up to 30%, and strengthen internal linking.

When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.

Scope

  • Breadcrumb UI: Visual trail (Home > Category > Page)
  • BreadcrumbList schema: JSON-LD structured data for rich results
  • Placement: Typically below header, above main content

Breadcrumb Types

TypeUse caseRecommendation
Location-basedReflects site hierarchy (Home > Blog > SEO > Page)Recommended — most SEO-friendly; clear structure
Attribute-basedShows product attributes (Home > Electronics > Phone > iPhone 15)E-commerce; product classification
Path-basedShows user's browsing pathAvoid — different users, different paths; can cause confusion

Default: Use location-based for most sites. Use attribute-based for e-commerce product pages.

Initial Assessment

Check for project context first: If .claude/project-context.md or .cursor/project-context.md exists, read it for site structure and key pages.

Identify:

  1. Site structure: Hierarchy depth (e.g., Home > Category > Subcategory > Product)
  2. Page types: Blog, e-commerce, docs, etc.
  3. Multi-category: Products in multiple categories—need canonical path

Best Practices

Structure & Hierarchy

PracticeGuideline
Depth3–5 levels optimal; avoid very long trails
Anchor textKeyword-rich, human-readable; descriptive
ConsistencySame pattern across all pages (blog, category, product)
Canonical pathFor items in multiple categories, define one canonical breadcrumb to avoid diluted link equity

Schema (BreadcrumbList)

See schema-markup for BreadcrumbList requirements, JSON-LD example, and multiple paths. Schema must match visible breadcrumbs exactly.

Placement & Design

PracticeGuideline
PositionBelow nav bar or above page title; top of content area
VisualSmaller font, lighter color; avoid competing with main content
SeparatorClear separator (>, /, ›); consistent across site
NamingMatch page title or nav menu; concise, descriptive

UX & Accessibility

PracticeGuideline
MobileTappable; short, readable text; high contrast
Long trailsHorizontal scroll container rather than truncating
Current pageLast item non-linked; use aria-current="page"
Screen readersnav with aria-label="Breadcrumb"; proper landmark

SEO Impact

  • Internal linking: Breadcrumbs distribute link equity
  • Crawlability: Helps crawlers understand taxonomy
  • GEO: BreadcrumbList appears frequently on pages cited by Google AI Mode
  • Note: Google removed visual breadcrumbs from mobile SERPs (Jan 2025) to save space, but schema and algorithmic value remain important for crawlers and AI. See serp-features for breadcrumb SERP display.

Implementation

Semantic HTML

<nav aria-label="Breadcrumb">
  <ol itemscope itemtype="https://schema.org/BreadcrumbList">
    <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
      <a itemprop="item" href="https://example.com/"><span itemprop="name">Home</span></a>
      <meta itemprop="position" content="1" />
    </li>
    <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
      <a itemprop="item" href="https://example.com/category/"><span itemprop="name">Category</span></a>
      <meta itemprop="position" content="2" />
    </li>
    <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" aria-current="page">
      <span itemprop="name">Current Page</span>
      <meta itemprop="position" content="3" />
    </li>
  </ol>
</nav>

Implementation: Generate BreadcrumbList from route segments or page metadata. Ensure item URLs are absolute. Use next-seo BreadcrumbJsonLd or custom component. See schema-markup for JSON-LD structure.

When to Use Breadcrumbs

Site typeUse case
E-commerceCategory > Subcategory > Product
BlogHome > Blog > Category > Post (see article-page-generator for article page structure)
DocsHome > Docs > Section > Page
Large sitesAny site with 3+ level hierarchy

Skip on flat sites (e.g., single-page, 1–2 level depth).

Deep pages: For 6+ levels, consider omitting middle levels; show only the most important categories to avoid clutter.

Platform Notes

PlatformOptions
WordPressYoast SEO, Rank Math, Breadcrumb NavXT
Next.jsnext-seo BreadcrumbJsonLd, custom from route segments
Shopify, Drupal, JoomlaBuilt-in or plugin support

Common Errors

ErrorFix
Relative URLs in schemaUse absolute URLs (https://)
Schema doesn't match visible trailKeep schema and UI in sync
Missing positionInclude sequential position (1, 2, 3…)
Last item linkedCurrent page typically not a link
Too many levelsLimit to 5–7; omit middle levels for deep paths
Inaccurate pathBreadcrumb must reflect actual site structure
No schemaAdd BreadcrumbList per schema-markup; otherwise no SERP breadcrumbs; see serp-features

Output Format

  • Structure recommendation (levels, labels)
  • BreadcrumbList JSON-LD — see schema-markup for structure; with absolute URLs
  • HTML structure (semantic, accessible)
  • Placement (below header, above main)
  • Validation: Rich Results Test, Schema Markup Validator, Search Console enhanced report

Related Skills

  • article-page-generator: Article pages use breadcrumbs (Home > Blog > Category > Post)
  • schema-markup: BreadcrumbList schema implementation; JSON-LD structure, requirements
  • navigation-menu-generator: Header nav; breadcrumbs complement primary nav
  • internal-links: Breadcrumbs are internal links; distribute link equity
  • site-crawlability: Breadcrumbs help crawlers understand structure
  • category-page-generator: Category hierarchy in breadcrumbs
  • products-page-generator: Product pages often need breadcrumbs (Category > Product)
  • serp-features: Breadcrumb SERP display; rich results

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

When the user wants to create, optimize, or audit 404 error pages. Also use when the user mentions "404 page," "404 error," "error page," "page not found," "broken link page," "404 design," "custom 404," "404 redirect," "404 page UX," or "404 recovery." For sitewide page planning, use website-structure.

中文简介正在准备中。当前显示原文说明。

dalroot/agentic-seo252026年10月20日 更新

When the user wants to create, optimize, or audit About page content. Also use when the user mentions "about page," "about us," "company story," "our team," "about section," "company overview," "brand story," "team page," or "who we are." For sitewide page planning, use website-structure.

中文简介正在准备中。当前显示原文说明。

dalroot/agentic-seo252026年10月20日 更新

When the user wants to plan, implement, or optimize affiliate marketing strategy. Also use when the user mentions "affiliate marketing," "affiliate program strategy," "CPS model," "affiliate recruitment," "commission structure," "affiliate partners," "affiliate network," "affiliate tracking," "affiliate commission," or "partner marketing." For affiliate page, use affiliate-page-generator.

中文简介正在准备中。当前显示原文说明。

dalroot/agentic-seo252026年10月20日 更新

When the user wants to create, optimize, or audit affiliate program page content. Also use when the user mentions "affiliate program," "affiliate page," "partner program," "referral program page," "affiliate landing," "partner landing," "commission page," or "affiliate signup." For affiliate program strategy, use affiliate-marketing.

中文简介正在准备中。当前显示原文说明。

dalroot/agentic-seo252026年10月20日 更新

When the user wants to track AI search traffic in GA4 or GSC. Also use when the user mentions "AI traffic," "ChatGPT referral," "Perplexity traffic," "AI Overviews," "GA4 AI sources," "AI search analytics," "track AI referrals," "AI search traffic," "Claude traffic," or "how to track AI traffic." For AI SEO strategy, use generative-engine-optimization.

中文简介正在准备中。当前显示原文说明。

dalroot/agentic-seo252026年10月20日 更新

When the user wants to create, optimize, or audit alternatives or comparison content (page or blog article). Also use when the user mentions "alternatives page," "alternatives listicle," "X alternatives," "competitor comparison," "vs page," "compare page," "best alternatives to X," "switch from X," "competitor brand traffic," "brand keyword ads," or "intercept competitor search." For competitor research, use competitor-research.

中文简介正在准备中。当前显示原文说明。

dalroot/agentic-seo252026年10月20日 更新

查看 dalroot 的全部技能

报告此技能的问题