AddThisFeature

Breadcrumbs

Show people where they are and how to get back.

simple Navigation

What it adds

A breadcrumb trail on nested pages, reflecting the real hierarchy.

What your agent is told to do

4
  1. 1

    Map the app's actual hierarchy first. Breadcrumbs must reflect structure, not the user's click history — that's the back button's job.

  2. 2

    Add a trail to every page more than one level deep.

  3. 3

    Make every segment except the last a real link.

  4. 4

    Use the record's current name for dynamic segments.

Edge cases it handles

4
  • Long names must truncate, not wrap the trail onto three lines.
  • Deep hierarchies must collapse the middle, keeping the first and last segments.
  • A user who cannot access an ancestor must not get a link that 404s or 403s.
  • The trail must be readable on mobile — usually just the parent plus current.

Definition of done

7
  • Every nested page has an accurate trail.
  • The trail reflects hierarchy, not history.
  • Segments are links, and the current page is not.
  • Long trails and long names degrade gracefully.
  • It's marked up with a nav landmark and aria-current on the last item.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.