task-from-pr · qdhenry — Claude Code command for Linear tasks from PRs
task-from-pr is a Claude Code command that transfers GitHub pull request details to a Linear task, linking PR work with project tasks.
no license ★ 1,357 updated 2026-03-01
.claude/commands/task-from-pr.mdWhat task-from-pr 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.
What it helps with
- 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 for the agent
- 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.
How to install task-from-pr
Manually: put the files in place
.claude/commands/task-from-pr.mdCall it with /task-from-pr. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/task-from-pr.mdCall it with /prompts:task-from-pr. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/task-from-pr.prompt.mdManually: put the files in place
.gemini/commands/task-from-pr.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about task-from-pr
How do I install task-from-pr in Claude Code?
Save the command as .claude/commands/task-from-pr.md. Then ask Claude Code to handle the PR you want to convert.
What does task-from-pr do?
It reads a GitHub pull request and creates a linked Linear task. PR labels inform the Linear labels and priority.
What does task-from-pr need to run?
GitHub CLI gh fetches the pull request, and configured Linear MCP creates the task. The command also checks for an existing task tied to the PR.
Similar slash commands
All slash commands for Git and GitHub →task-from-pr by other authors comes first.