create-pr

Create pull requests from the current Git branch and link Linear issues.

2|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/mostafa-drz/claude-skills --skill create-pr-mostafa-drz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/mostafa-drz/claude-skills/tree/main/code/create-pr
Command: npx skills add https://github.com/mostafa-drz/claude-skills --skill create-pr-mostafa-drz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the creation of well-structured pull requests from the current branch and links them to Linear issues, reducing manual drafting time and ensuring consistency across PRs.

Core Features & Use Cases

  • Auto-detects base branch, determines branch state, and gathers commit and diff information to provide context for the PR.
  • Builds a product-focused PR description with optional Linear linking and supports draft or ready-for-review states.
  • Pushes the branch when needed and creates the PR, with an option to include or omit Linear integration based on branch naming.
  • Dynamically renames or aligns branches to the Linear issue when conventions are violated, then pushes to origin.
  • Useful for teams that require consistent PR structure, traceability to work items, and automated PR workflows in Git and Linear.

Quick Start

Run /create-pr AIS-810 to create a PR and link Linear issue.

Frequently Asked Questions about create-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate pull request creation from a Git branch and link it to Linear?

To automate pull request creation, you can use a workflow that detects your current Git branch, gathers commit and diff data, generates a product-focused PR description, pushes the branch, and creates the PR linked to your Linear issue.

How to generate consistent PR descriptions from Git commits automatically?

Generating consistent PR descriptions automatically involves detecting the base branch, analyzing your commit history and code diffs, and building a structured, product-focused summary to ensure traceability without manual drafting.

Do I need the GitHub CLI and Linear integration to automate PR workflows?

Yes, you need the GitHub CLI (gh) and Git installed locally, alongside Linear integration, to enable the end-to-end automated PR creation, branch pushing, and issue linking workflow.

Can I rename and align Git branches to Linear issues automatically?

Yes, you can automatically rename and align Git branches to match Linear issue conventions when naming violations are detected, ensuring your branch names map correctly to your work items before pushing to origin.

How do I create a draft pull request from the command line with Linear linking?

You can create a draft pull request by running an automated workflow that pushes your current branch, generates a structured PR description, and sets the PR state to draft while linking it to a specified Linear issue.

What is the best way to ensure PR traceability to Linear work items?

The best way to ensure PR traceability is to automate PR creation with a workflow that dynamically links pull requests to Linear issues based on branch naming conventions and commit context.