add-stacked-pr-breadcrumbs

Generate stacked PR breadcrumbs from git branch-tree and insert via gh.

14|1|Updated Dec 29, 2011
One-click install
npx skills add https://github.com/doitian/dotfiles-public --skill add-stacked-pr-breadcrumbs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-stacked-pr-breadcrumbs
Source: https://github.com/doitian/dotfiles-public/tree/main/ai/skills/add-stacked-pr-breadcrumbs
Command: npx skills add https://github.com/doitian/dotfiles-public --skill add-stacked-pr-breadcrumbs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates a stacked PR breadcrumbs block to add at the beginning of a PR body, helping teams visualize PR lineage and dependencies at a glance.

Core Features & Use Cases

  • Derive branch stack: Uses git branch-tree to determine the branch hierarchy and map each level to a PR number.
  • Structured formatting: Emits a precise blockquote block with nested levels and the :point_left: marker for the current PR.
  • PR body integration: Updates the PR via gh, replacing any existing breadcrumbs with the new block.

Quick Start

Run git branch-tree to determine the branch stack, then generate and insert the stacked PR breadcrumbs at the top of the PR body.

Frequently Asked Questions about add-stacked-pr-breadcrumbs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate stacked PR breadcrumbs in a pull request body?

To automate stacked PR breadcrumbs, this Skill uses git branch-tree to derive the branch stack, maps each level to its PR number, and inserts a formatted block at the top of the PR body via gh. It replaces any existing breadcrumbs with the new block.

How does a stacked PR breadcrumb block visualize branch lineage?

A stacked PR breadcrumb block visualizes branch lineage by emitting a precise blockquote with nested levels and a :point_left: marker for the current PR. It helps teams visualize PR dependencies at a glance directly within the PR body.

Do I need the gh CLI to insert stacked PR breadcrumbs into a markdown PR body?

Yes, you need the gh CLI to insert stacked PR breadcrumbs. The Skill updates the pull request body via gh, replacing any existing breadcrumbs with the newly formatted block containing the branch stack hierarchy.

What is the best way to update existing stacked PR breadcrumbs when a branch stack changes?

The best way to update existing stacked PR breadcrumbs when a branch stack changes is to run this Skill. It derives the current branch stack using git branch-tree and replaces any existing breadcrumbs in the PR body with the newly formatted block.

What formatting rules are enforced when generating a stacked PR breadcrumbs block?

Generating a stacked PR breadcrumbs block enforces exact formatting rules including blockquote style, indentation for nested levels, and the :point_left: marker for the current PR. It places this formatted block at the top of the PR body.

Can I use git branch-tree to map a branch stack to corresponding PR numbers?

Yes, you can use git branch-tree to map a branch stack to corresponding PR numbers. The Skill uses git branch-tree to determine the branch hierarchy and maps each level to its respective PR number before inserting the breadcrumbs block.