About linear-pr
A linear-cli skill for creating GitHub pull requests tied to Linear issues and handling related branch operations. It also supports an issue-to-PR workflow and can read issue context from the current Git branch.
Key features
- 01Create linked GitHub pull requests
- 02Create draft pull requests
- 03Set a base branch
- 04Create or inspect issue branches
- 05Read issue context from Git
Use cases
- 01Open a pull request for a Linear issue
- 02Prepare a draft PR for work in progress
- 03Start issue work by creating and checking out a branch
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ nesszer/ linear-cli --skill linear-prAfter installing, type/linear-prin Claude Code to confirm it loaded.
Details
From the project READMELinear PR Creation
Create GitHub pull requests linked to Linear issues using linear-cli.
Create PR
# Create PR linked to Linear issue
linear-cli g pr LIN-123
# Draft PR
linear-cli g pr LIN-123 --draft
# Specify base branch
linear-cli g pr LIN-123 --base main
# Open in browser after creation
linear-cli g pr LIN-123 --web
Git Branch Operations
# Create and checkout branch for issue
linear-cli g checkout LIN-123
# Custom branch name
linear-cli g checkout LIN-123 -b my-custom-branch
# Just show branch name (don't create)
linear-cli g branch LIN-123
# Create branch without checkout
linear-cli g create LIN-123
Complete Workflow
# 1. Start work (assigns, sets In Progress, creates branch)
linear-cli i start LIN-123 --checkout
# 2. Make changes and commit
git add . && git commit -m "Fix the bug"
# 3. Create PR
linear-cli g pr LIN-123
# 4. Mark done
linear-cli i update LIN-123 -s Done
Get Current Issue
# Get issue from current git branch
linear-cli context
linear-cli context --output json
Tips
- PR title/description auto-generated from issue
- Use
--draftfor work-in-progress - Branch pattern:
username/lin-123-issue-title - Requires
ghCLI for GitHub operations
Comments
Markdown supported