pr-to-origin-main

Create a pull request from a feature branch to origin/main via GitHub CLI.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/atman-33/atman-workspace --skill pr-to-origin-main
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-to-origin-main
Source: https://github.com/atman-33/atman-workspace/tree/main/skills/pr-to-origin-main
Command: npx skills add https://github.com/atman-33/atman-workspace --skill pr-to-origin-main

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates the creation of pull requests from feature branches to origin/main while preventing accidental targeting of upstream/main, ensuring PR titles and descriptions are in English.

Core Features & Use Cases

  • Generate an English PR title and description from recent commits.
  • Validate that you are not on the main branch and confirm the target remote (origin).
  • Push the current branch to origin if needed and create the PR via GitHub CLI.

Quick Start

Run the script from your feature branch to create a PR to origin/main after confirming the target remote.

Frequently Asked Questions about pr-to-origin-main

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

FAQPage Schema
How do I create a pull request to origin/main without accidentally targeting upstream/main?

To safely create a pull request to origin/main, you can use an automation script that validates your current remote and prevents accidental targeting of upstream/main. It verifies the remote is origin before pushing your branch and opening the PR.

Can I automatically generate English PR titles and descriptions from my git commits?

Yes, you can automatically generate English PR titles and descriptions by running a script that parses your recent commits. This automation extracts commit messages from your feature branch to build the PR content directly via GitHub CLI.

Does this GitHub PR automation work with both feature and bugfix branches?

Yes, this GitHub pull request automation supports both feature/ and bugfix/ branches. It validates that you are not on the main branch before pushing the current branch to origin and opening the PR.

What do I need to set up before automating pull requests to origin/main?

To automate pull requests to origin/main, you need GitHub CLI installed, proper remote configurations, and valid authentication. The script requires these to push your current branch and generate the PR via GitHub CLI.

Why does my pull request script push the branch before opening the PR?

Your pull request script pushes the branch before opening the PR to ensure your local commits are available on the remote. This step is executed automatically if needed, allowing the GitHub CLI to successfully create the PR.

What happens if I try to run the PR automation from the main branch?

If you try to run the PR automation from the main branch, the script will block the action. It validates that you are not on the main branch before proceeding with the remote check and PR creation.