Skip to main content
command CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/task-from-pr.md
Open on GitHub

What 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.md

Call it with /task-from-pr. For all projects use ~/.claude/commands/

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.

task-from-pr davila7 task-from-pr turns a GitHub pull request into a Linear task, with a size estimate, team assignment and links running both ways. CX Codex +1 133installs sync-pr-to-task davila7 sync-pr-to-task connects GitHub pull requests with Linear tasks and syncs task state. Use it to keep PR details and task updates together. CX Codex +1 122installs implement-task-linear PinguApps implement-task-linear — a skill for Claude Code bundles multiple Linear issues into a single branch and pull request. It coordinates ticket states, incremental commits, and pre-PR reviews before merging. CX Codex +1 346installs linear-task-to-issue davila7 linear-task-to-issue — a slash command that turns a Linear task into a GitHub issue, carrying over fields, links, attachments and comments. Useful when planning lives in Linear and code lives in GitHub. CX Codex +1 129installs groove-utilities-task-update andreadellacorte groove-utilities-task-update updates an existing task’s status, body, or metadata in the configured backend. It keeps progress notes and requires confirmation before completion. CX Codex +1 546installs agent-backlog-autopilot relatedb The agent-backlog-autopilot Claude Code skill takes one agent-backlog task from selection through a pull request. It pauses after the draft checks pass and waits for a human to mark the PR ready for review. CX Codex +1 ★ 423repo stars groove-utilities-task-analyse andreadellacorte groove-utilities-task-analyse pulls tasks from your project backend and groups them by status, so you have something to write into daily memory. CX Codex +1 590installs

From the same set112

The whole set →
hotfix-deploy hotfix-deploy is a Claude Code command that guides critical fixes through incident triage, testing, release monitoring, and rollback. CX Codex +1 ★ 1,357repo stars sync-status The sync-status command for Claude Code checks GitHub–Linear sync health, queues, webhooks, failures, and data mismatches. It supports diagnosis of synchronization issues. CX Codex +1 ★ 1,357repo stars performance-auditor performance-auditor — a subagent that hunts bottlenecks: algorithm cost, N+1 queries, bundle size, wasted re-renders. You get a prioritized report. CX Codex ★ 1,357repo stars sync-linear-to-issues sync-linear-to-issues exports Linear tasks into GitHub issues while preserving issue descriptions, sprint milestones, and status mappings. CX Codex +1 ★ 1,357repo stars memory-merge The memory-merge command consolidates multiple semantic tree nodes into one, removing duplicates and grouping related concepts under a single node. CX Codex +1 ★ 1,357repo stars sync-conflict-resolver The sync-conflict-resolver command for Claude Code identifies and resolves data conflicts between GitHub issues and Linear tasks, merging non-conflicting fields or applying a chosen strategy. CX Codex +1 ★ 1,357repo stars standup-report standup-report builds daily standup updates from Git, GitHub, and Linear, with output suited to a team summary, Slack, or email. CX Codex +1 ★ 1,357repo stars memory-compress memory-compress shrinks the semantic memory tree by merging near-identical nodes and dropping duplicates, while key checkpoints stay put. CX Codex +1 ★ 1,357repo stars

Project sponsors

Companies that keep this analytics open