with one click
linear-git
Git operations with Linear. Use for branches, checkout, and PRs.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Git operations with Linear. Use for branches, checkout, and PRs.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Execute raw GraphQL queries and mutations against the Linear API. Use for advanced operations not covered by other commands.
Manage issue attachments - link URLs, create, update, delete. Use when attaching files or links to issues.
Manage issue comments - list, create, update, delete. Use when reading or posting comments on issues.
Configure linear-cli - auth (API key + OAuth), workspaces, diagnostics, setup wizard.
Manage Linear sprint cycles - list, create, update, delete, complete. Use when managing cycles.
Mark the current branch's issue as Done. Use as a quick shortcut to close the issue you're working on.
| name | linear-git |
| description | Git operations with Linear. Use for branches, checkout, and PRs. |
| allowed-tools | Bash |
# 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
# Get issue from current branch
linear-cli context
linear-cli context --output json
| Flag | Purpose |
|---|---|
--draft | Create draft PR |
--base BRANCH | Base branch |
--output json | JSON output |