一键导入
linear-pr
Create GitHub PRs linked to Linear issues. Use when creating pull requests, pushing code for review, or linking PRs to Linear issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create GitHub PRs linked to Linear issues. Use when creating pull requests, pushing code for review, or linking PRs to Linear issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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-pr |
| description | Create GitHub PRs linked to Linear issues. Use when creating pull requests, pushing code for review, or linking PRs to Linear issues. |
| allowed-tools | Bash |
Create GitHub pull requests linked to Linear issues using linear-cli.
# 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
# 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
# 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 issue from current git branch
linear-cli context
linear-cli context --output json
--draft for work-in-progressusername/lin-123-issue-titlegh CLI for GitHub operations