use-graphite

Manages stacked pull requests with the Graphite CLI, including creation, submission, updates, syncs and conflict resolution.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kontext-dev/skills --skill use-graphite-kontext-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-graphite
Source: https://github.com/kontext-dev/skills/tree/main/.internal/use-graphite
Command: npx skills add https://github.com/kontext-dev/skills --skill use-graphite-kontext-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines complex Git workflows by managing stacked pull requests and branch operations using the Graphite CLI, preventing conflicts and ensuring efficient collaboration on feature branches.

Core Features & Use Cases

  • Stacked PR Management: Create, update, and submit multiple dependent branches as a single logical unit.
  • Conflict Resolution: Automates syncing with the main branch and assists in resolving restack conflicts.
  • Collaboration: Facilitates working on shared stacks with teammates, including fetching and freezing branches.
  • Use Case: When working on a large feature that requires several intermediate commits and branches, use this Skill to manage the entire stack, submit it as a cohesive unit, and easily sync with ongoing changes from the main branch.

Quick Start

Use the use-graphite skill to create a new stacked branch and submit it.

Frequently Asked Questions about use-graphite

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

FAQPage Schema
What is a stacked PR and when do I need it for my Git workflow?

You can create and submit stacked PRs using the Graphite CLI to manage dependent branches. This Skill handles branch creation, PR submission, and syncing with the main branch, streamlining complex Git workflows for large features.

How do I resolve restack conflicts in a stacked pull request?

This Skill assists in resolving restack conflicts by automating trunk syncing and managing branch updates within the stack. It ensures dependent branches stay aligned when upstream changes introduce conflicts.

How do I submit multiple dependent Git branches as a cohesive unit?

This Skill manages the submission of multiple dependent branches as a single logical unit using the Graphite CLI. It handles branch creation, PR submission, and mid-stack updates to keep the cohesive unit intact.

Do I need the Graphite CLI installed to manage stacked branches?

Yes, you need the Graphite CLI installed and authenticated before using this Skill. It executes stacked PR workflows, branch creation, and trunk syncing by directly leveraging the Graphite CLI (gt).

Can I sync with the main branch while working on a shared stack?

Yes, you can sync with the main branch while collaborating on shared stacks. This Skill facilitates fetching and freezing branches, allowing teammates to sync ongoing changes and maintain stack integrity during collaboration.