← 返回 Skills 市场
kostja94

breadcrumb-generator

作者 Kostja Zhang · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ⚠ suspicious
230
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install breadcrumb-generator
功能描述
When the user wants to add, optimize, or audit breadcrumb navigation. Also use when the user mentions "breadcrumbs," "breadcrumb trail," "breadcrumb nav," "b...
使用说明 (SKILL.md)

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

Type Use case Recommendation
Location-based Reflects site hierarchy (Home > Blog > SEO > Page) Recommended — most SEO-friendly; clear structure
Attribute-based Shows product attributes (Home > Electronics > Phone > iPhone 15) E-commerce; product classification
Path-based Shows user's browsing path Avoid — 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

Practice Guideline
Depth 3–5 levels optimal; avoid very long trails
Anchor text Keyword-rich, human-readable; descriptive
Consistency Same pattern across all pages (blog, category, product)
Canonical path For 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

Practice Guideline
Position Below nav bar or above page title; top of content area
Visual Smaller font, lighter color; avoid competing with main content
Separator Clear separator (>, /, ›); consistent across site
Naming Match page title or nav menu; concise, descriptive

UX & Accessibility

Practice Guideline
Mobile Tappable; short, readable text; high contrast
Long trails Horizontal scroll container rather than truncating
Current page Last item non-linked; use aria-current="page"
Screen readers nav 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

\x3Cnav aria-label="Breadcrumb">
  \x3Col itemscope itemtype="https://schema.org/BreadcrumbList">
    \x3Cli itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
      \x3Ca itemprop="item" href="https://example.com/">\x3Cspan itemprop="name">Home\x3C/span>\x3C/a>
      \x3Cmeta itemprop="position" content="1" />
    \x3C/li>
    \x3Cli itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
      \x3Ca itemprop="item" href="https://example.com/category/">\x3Cspan itemprop="name">Category\x3C/span>\x3C/a>
      \x3Cmeta itemprop="position" content="2" />
    \x3C/li>
    \x3Cli itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" aria-current="page">
      \x3Cspan itemprop="name">Current Page\x3C/span>
      \x3Cmeta itemprop="position" content="3" />
    \x3C/li>
  \x3C/ol>
\x3C/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 type Use case
E-commerce Category > Subcategory > Product
Blog Home > Blog > Category > Post (see article-page-generator for article page structure)
Docs Home > Docs > Section > Page
Large sites Any 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

Platform Options
WordPress Yoast SEO, Rank Math, Breadcrumb NavXT
Next.js next-seo BreadcrumbJsonLd, custom from route segments
Shopify, Drupal, Joomla Built-in or plugin support

Common Errors

Error Fix
Relative URLs in schema Use absolute URLs (https://)
Schema doesn't match visible trail Keep schema and UI in sync
Missing position Include sequential position (1, 2, 3…)
Last item linked Current page typically not a link
Too many levels Limit to 5–7; omit middle levels for deep paths
Inaccurate path Breadcrumb must reflect actual site structure
No schema Add 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
安全使用建议
This skill appears to do what it says (breadcrumb guidance and schema), but it tells the agent to read hidden project files (.claude/project-context.md and .cursor/project-context.md) although no config paths or permissions are declared. Before installing: (1) inspect those files in any repo where the agent will run — ensure they don't contain secrets or unrelated private data; (2) ask the skill author to explicitly declare required config paths (or make file access optional) so you can make an informed decision; (3) if possible, run the skill in a sandbox or on a non-sensitive project first; (4) limit the agent's autonomy or deny access to repositories containing credentials or sensitive information. If you can't verify the contents of the referenced files, treat the file-reading instruction as a potential data-leakage risk.
功能分析
Type: OpenClaw Skill Name: breadcrumb-generator Version: 1.2.0 The skill bundle is a standard instructional guide for an AI agent to assist users with implementing breadcrumb navigation for websites. The content in SKILL.md focuses on SEO best practices, accessibility, and semantic HTML/JSON-LD examples without any evidence of malicious code, data exfiltration, or harmful prompt injection.
能力评估
Purpose & Capability
Name and description match the instructions: the SKILL.md provides SEO/UX guidance, HTML examples, and JSON-LD schema for breadcrumb navigation. The content and examples are coherent with a breadcrumb-generation/audit skill.
Instruction Scope
The instructions explicitly say to 'Check for project context first' and to read .claude/project-context.md or .cursor/project-context.md if they exist. Those file reads are outside the declared requirements and can surface unrelated project metadata or secrets. The SKILL.md also references other internal docs/skills (schema-markup, serp-features, article-page-generator) without specifying where they live or how to access them, which is open-ended.
Install Mechanism
No install spec and no code files — instruction-only skill. This minimizes disk-write and supply-chain risk.
Credentials
The skill declares no required env vars or config paths, but the runtime instructions direct reading specific hidden project files. Asking to read these files is a form of configuration/data access that should have been declared (requires.configPaths). This mismatch increases the chance of unexpected data access.
Persistence & Privilege
always is false and the skill does not request persistent presence or elevated privileges. It does not declare actions that would modify other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install breadcrumb-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /breadcrumb-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
Batch: masonry through footer-generator
v1.1.0
Automated batch sync
元数据
Slug breadcrumb-generator
版本 1.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

breadcrumb-generator 是什么?

When the user wants to add, optimize, or audit breadcrumb navigation. Also use when the user mentions "breadcrumbs," "breadcrumb trail," "breadcrumb nav," "b... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 230 次。

如何安装 breadcrumb-generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install breadcrumb-generator」即可一键安装,无需额外配置。

breadcrumb-generator 是免费的吗?

是的,breadcrumb-generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

breadcrumb-generator 支持哪些平台?

breadcrumb-generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 breadcrumb-generator?

由 Kostja Zhang(@kostja94)开发并维护,当前版本 v1.2.0。

💬 留言讨论