gh-create-pr-linked

Create GitHub pull requests linked to specific issues via the GitHub CLI.

18|5|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/HomericIntelligence/ProjectOdyssey --skill gh-create-pr-linked-homericintelligence
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-create-pr-linked
Source: https://github.com/HomericIntelligence/ProjectOdyssey/tree/main/.claude/skills/gh-create-pr-linked
Command: npx skills add https://github.com/HomericIntelligence/ProjectOdyssey --skill gh-create-pr-linked-homericintelligence

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and templates (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of GitHub pull requests, ensuring they are correctly linked to specific GitHub issues, streamlining the development workflow and improving traceability.

Core Features & Use Cases

  • Automated PR Creation: Creates pull requests directly from the command line.
  • Issue Linking: Automatically links the PR to a specified GitHub issue using gh pr create --issue.
  • Use Case: After completing a feature that addresses issue #42, use this Skill to create a PR that is automatically associated with that issue, making it easy for reviewers and maintainers to track progress.

Quick Start

Use the gh-create-pr-linked skill to create a pull request linked to issue number 42.

Frequently Asked Questions about gh-create-pr-linked

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

FAQPage Schema
How do I create a GitHub pull request linked to a specific issue?

To create a GitHub pull request linked to a specific issue, use a tool that automates `gh pr create` with issue linking. This ensures the PR is associated with the issue for proper traceability during code review.

What do I need to set up before automatically creating a PR from a feature branch?

Before creating a PR automatically, you need the GitHub CLI installed and authenticated. The tool also verifies that your feature branch has an upstream tracking branch configured before submitting changes.

How does linking a pull request to an issue improve the development workflow?

Linking a pull request to an issue improves workflow by ensuring traceability. Reviewers and maintainers can easily track progress and verify which issue the changes address without manually searching.

What is the best way to automate pull request creation for issue tracking in GitHub?

The best way to automate pull request creation for issue tracking is using a command-line tool that executes `gh pr create --issue`. This directly associates the PR with the issue number, streamlining submission.

Why does my automated PR creation fail before linking to an issue?

Automated PR creation fails if the GitHub CLI is not authenticated or if the branch lacks an upstream tracking branch. The tool explicitly verifies both conditions before attempting to create the pull request.

Can I use GitHub CLI to submit changes for review and ensure issue traceability?

Yes, you can use GitHub CLI to submit changes for review and ensure issue traceability. The tool runs `gh pr create` to submit the feature branch and automatically links it to the specified issue.