# task-from-pr

task-from-pr is a Claude Code command that transfers GitHub pull request details to a Linear task, linking PR work with project tasks.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 1357 repo stars
- Author: qdhenry
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/qdhenry/Claude-Command-Suite/tree/HEAD/.claude/commands/sync/task-from-pr.md
- Updated: 2026-03-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/qdhenry-task-from-pr

## What it does

The command fetches PR data with GitHub CLI and parses its description, checklist items, mentions, and issue references. It maps GitHub labels to Linear labels and priorities, estimates task size from the changes, then creates the task through Linear MCP. The new task includes a link to the PR.

Use it for a single pull request or a batch, and specify a Linear team when creating a task. Linear MCP must be configured for task creation; without it, that step cannot run. GitHub CLI `gh` is needed to fetch PR details.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/task-from-pr.md` — Call it with /task-from-pr. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/task-from-pr.md` — Call it with /prompts:task-from-pr. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/task-from-pr.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/task-from-pr.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/qdhenry/Claude-Command-Suite/tree/HEAD/.claude/commands/sync/task-from-pr.md

## When to use it
- create a Linear task from a GitHub PR
- carry PR details and checklist items into a task
- map GitHub labels to Linear labels and priorities
- assign a task using the PR assignee
- process multiple open pull requests

## Example prompts
- Create a Linear task from PR #123.
- Turn all open PRs in owner/repo into Linear tasks.
- Create a task from PR #456 and assign it to the Engineering team.

## Similar
- [sync-pr-to-task](https://affpapa.org/en/nevibecode/commands/sync-pr-to-task.md) — command · 122 installs
- [implement-task-linear](https://affpapa.org/en/nevibecode/skills/implement-task-linear.md) — skill · 346 installs
- [linear-task-to-issue](https://affpapa.org/en/nevibecode/commands/linear-task-to-issue.md) — command · 129 installs
- [groove-utilities-task-update](https://affpapa.org/en/nevibecode/skills/groove-utilities-task-update.md) — skill · 546 installs
- [agent-backlog-autopilot](https://affpapa.org/en/nevibecode/skills/agent-backlog-autopilot.md) — skill · ★ 423 repo stars
- [groove-utilities-task-analyse](https://affpapa.org/en/nevibecode/skills/groove-utilities-task-analyse.md) — skill · 590 installs

## Other versions with the same name
- [task-from-pr · davila7](https://affpapa.org/en/nevibecode/commands/task-from-pr.md) — 133 installs

From the same set: [qdhenry/claude-command-suite](https://affpapa.org/en/nevibecode/by/qdhenry/claude-command-suite.md) — 112 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
