← ClaudeAtlas

graphite-clilisted

This skill should be used to answer questions and guide workflows related to the Graphite CLI. It assists with creating, managing, submitting, and synchronizing stacked code changes (diffs).
aiskillstore/marketplace · ★ 329 · AI & Automation · score 82
Install: claude install-skill aiskillstore/marketplace
# Graphite CLI Guide This skill provides procedural knowledge for working with the Graphite command-line interface (CLI). It covers the entire lifecycle of creating and managing stacked pull requests, from initial setup to advanced stack manipulation. ## When to Use This Skill Activate this skill when a user's request involves using the `gt` command, managing stacked pull requests, or inquiring about the Graphite workflow. It is designed to handle tasks such as creating branches, submitting PRs, synchronizing with the trunk branch, and modifying the structure of a stack. ## Core Concepts - **Stack:** A series of small, incremental, and dependent branches. Each branch is a distinct PR, building on the previous one. - **Trunk:** The primary branch of the repository (usually `main` or `master`) from which all stacks originate and into which they are eventually merged. --- ## I. Initial Setup To begin using Graphite in a git repository, it must be initialized. 1. **Authenticate:** Run `gt auth` to connect the CLI to your GitHub account via an auth token. 2. **Initialize Repository:** Navigate to the repository root and run `gt init`. This command will prompt to select the trunk branch. --- ## II. Core Workflow: Creating & Submitting Changes This workflow covers the fundamental loop of creating, submitting, and updating branches. ### Step 1: Create a Branch To create a new branch and commit changes, use `gt create`. This command replaces `git add`, `git commit`