Linear git

From Finesssee/linear-cli · View interactive version

Linear git is an AI agent skill from the GitHub repository Finesssee/linear-cli. Git operations with Linear. Use for branches, checkout, and PRs.

How to use this skill

Skill file

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

| Flag | Purpose |

|------|---------|

| --draft | Create draft PR |

| --base BRANCH | Base branch |

| --output json | JSON output |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.