AgentSkillsCN

linear-git

在Linear中进行Git操作。适用于分支管理、检出操作,以及PR合并时使用。

SKILL.md
--- frontmatter
name: linear-git
description: Git operations with Linear. Use for branches, checkout, and PRs.
allowed-tools: Bash

Git Operations

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

Context

bash
# Get issue from current branch
linear-cli context
linear-cli context --output json

Flags

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