pm-pr-workflow

Enforce Git branch protection and route users to PR workflows.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/MacPhobos/research-mind --skill pm-pr-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pm-pr-workflow
Source: https://github.com/MacPhobos/research-mind/tree/main/.claude/skills/mpm-pr-workflow
Command: npx skills add https://github.com/MacPhobos/research-mind --skill pm-pr-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces crucial branch protection rules and guides users through the correct Pull Request (PR) workflow, preventing common Git errors and ensuring code quality.

Core Features & Use Cases

  • Branch Protection Enforcement: Automatically checks user permissions for direct main branch commits and routes users to the appropriate workflow.
  • Automated Workflow Routing: Intelligently guides users towards feature branch and PR creation for non-privileged operations.
  • PR Creation Guidance: Provides a structured template for creating PRs, ensuring all necessary context like work summary, file changes, and test status is included.
  • Use Case: A junior developer tries to push directly to the main branch. The Skill intercepts this, explains that branch protection requires a PR, and guides them to create a feature branch and submit a PR for review.

Quick Start

Use the pm-pr-workflow skill to create a pull request for the 'user-auth' feature.

Frequently Asked Questions about pm-pr-workflow

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

FAQPage Schema
How do I enforce Git branch protection for direct commits to main?

Git branch protection is enforced by automatically checking user permissions based on their email address and routing non-privileged users away from direct main branch commits. This mechanism intercepts invalid pushes and requires a feature branch and pull request instead.

How do I create a pull request with required context like file changes and test status?

To create a pull request, the workflow delegates to a version-control agent using a structured template that captures task parameters. It requires you to provide a work summary, a list of changed files, and the current test status to ensure complete context for code review.

What happens when a developer tries to push directly to the main branch without permissions?

When a direct push to the main branch is attempted without permissions, the workflow intercepts the action and explains that branch protection rules require a pull request. It then guides the developer through creating a feature branch and submitting a PR for review.

How does automated workflow routing handle feature branch creation?

Automated workflow routing intelligently guides users towards feature branch creation for non-privileged operations. It manages routing rules based on user email to ensure all non-privileged changes follow the correct version control path before merging.

Can I bypass the pull request workflow for specific users on my version control system?

Yes, routing rules for direct main branch access are managed based on user email, allowing specific privileged users to bypass the pull request workflow. All other users are automatically enforced to use feature branches and pull requests.

Why do I need a structured template for pull request creation?

A structured template for pull request creation ensures all necessary context is included for code review. It enforces the inclusion of a work summary, file lists, and test status, which prevents common Git errors and maintains code quality.