pr

Automate fork-based pull request creation with authentication and fallback handling.

3|38|Updated Nov 6, 2025
One-click install
npx skills add https://github.com/ambient-code/workflows --skill pr-ambient-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/ambient-code/workflows/tree/main/workflows/dev-team/.claude/skills/pr
Command: npx skills add https://github.com/ambient-code/workflows --skill pr-ambient-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The pull request creation process is error-prone when forks, authentication, and remote configurations are not managed systematically. This skill standardizes the workflow to ensure PRs are created from a fork, with proper branches, commits, and draft status, reducing manual retries and permission issues.

Core Features & Use Cases

  • Automates the end-to-end PR workflow from a working directory: fork handling, authentication checks, fork remote setup, branch creation, commit messages, and draft PR creation.
  • Provides robust fallbacks for common failure modes (authentication, missing fork, PR creation blocked by app permissions) and explicit guidance when manual steps are required.
  • Supports use cases across team contributions, open-source collaborations, and bot-integration scenarios where PRs must originate from a fork.

Quick Start

Provide the changes in your working directory and ask me to submit them as a draft PR using the fork-based workflow.

Frequently Asked Questions about pr

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

FAQPage Schema
How do I automate pull request creation from a fork?

Pull request creation from a fork is automated by handling authentication, configuring fork remotes, creating branches, committing changes, and pushing to generate a draft PR. This standardizes the workflow to reduce manual retries and permission issues.

What happens when GitHub app permissions block PR creation?

When GitHub app permissions block PR creation, the workflow provides robust fallbacks and explicit guidance for manual steps. This ensures you can still complete the pull request process even when automated creation is restricted by upstream permissions.

How do I create a draft PR from my working directory changes?

Creating a draft PR from working directory changes requires providing the changes and triggering the fork-based workflow. The process automatically handles fork setup, branch creation, commits, and draft PR generation end-to-end.

Does this fork-based workflow support open-source contributions and bot integrations?

This fork-based workflow supports open-source collaborations, team contributions, and bot-integration scenarios. It handles varying upstream permissions and ensures PRs originate from a fork, making it suitable for collaborative software projects requiring automated PR creation.

Why does fork remote setup fail during pull request automation?

Fork remote setup fails during pull request automation due to unsystematic authentication and remote configuration management. Standardizing the workflow ensures proper fork handling, pre-flight checks, and correct remote setup to prevent these errors.