About linear-git
linear-git is a skill for linking Git operations with Linear issues through linear-cli. It can create or check out issue branches, show branch names, and retrieve issue context from the current branch.
Key features
- 01Check out or create issue branches
- 02Show an issue's branch name
- 03Create branches without checkout
- 04Retrieve issue context from current branch
Use cases
- 01Set up a branch for a Linear issue
- 02Check the branch associated with an issue
- 03Get issue details from the current branch
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ nesszer/ linear-cli --skill linear-gitAfter installing, type/linear-gitin Claude Code to confirm it loaded.
Details
From the project READMEGit Operations
# Checkout branch for issue (creates if needed)
linear-cli g checkout LIN-123
# Show branch name
linear-cli g branch LIN-123
# Create branch without checkout
linear-cli g create LIN-123
# Create GitHub PR from Linear issue
linear-cli g pr LIN-123
linear-cli g pr LIN-123 --draft # Draft PR
linear-cli g pr LIN-123 --base main # Specify base branch
# jj (Jujutsu) - show commits with Linear trailers
linear-cli g commits
Context
# Get issue from current branch
linear-cli context
linear-cli context --output json
Flags
| Flag | Purpose |
|---|---|
--draft | Create draft PR |
--base BRANCH | Base branch |
--output json | JSON output |
Comments
Markdown supported