mcpField
L
linear-git

linear-git

github.com/nesszerDevelopment138155 installsUpdated 6w ago
Repository

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

  1. 01Check out or create issue branches
  2. 02Show an issue's branch name
  3. 03Create branches without checkout
  4. 04Retrieve issue context from current branch

Use cases

  1. 01Set up a branch for a Linear issue
  2. 02Check the branch associated with an issue
  3. 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-git

After installing, type/linear-gitin Claude Code to confirm it loaded.

Details

From the project README

Git 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

FlagPurpose
--draftCreate draft PR
--base BRANCHBase branch
--output jsonJSON output

Comments

Markdown supported