make-pr

Automate commits, branch pushes, and draft pull request creation via CLI.

1|Updated Aug 25, 2024
One-click install
npx skills add https://github.com/7loro/dotfiles --skill make-pr-7loro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: make-pr
Source: https://github.com/7loro/dotfiles/tree/main/dot_config/agents/skills/make-pr
Command: npx skills add https://github.com/7loro/dotfiles --skill make-pr-7loro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates committing changes, pushing branches, and drafting pull requests to streamline code collaboration and reduce manual PR overhead.

Core Features & Use Cases

  • Commit & Push: If there are local changes, it leverages a make-commit style to create commits and pushes the current branch to remote when needed.
  • Base Branch & Stacked PRs: Detects the base branch from the branch history and supports stacked PR flows by targeting the appropriate base or feature branch.
  • PR Title & Content: Generates PR titles and bodies based on commit history with a consistent format and optional templates.
  • PR Creation: Uses existing PR templates (if present) or a default structure to create draft PRs via CLI for streamlined review.
  • Use Case: In a multi-feature workflow, create a series of dependent PRs that each merge into the main base branch while preserving intent and context.

Quick Start

Use the make-pr skill to create a draft PR for the current branch with an optional title.

Frequently Asked Questions about make-pr

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

FAQPage Schema
How do I automate pull request creation from the command line?

To automate pull request creation, this Skill commits local changes, pushes the current branch to the remote repository, and drafts a PR via CLI. It generates the PR title and body based on your commit history to streamline code collaboration.

Can I create stacked PRs automatically in a multi-feature workflow?

Yes, you can create stacked PRs automatically. The Skill detects the appropriate base branch from your branch history and targets the correct feature branch, allowing you to manage dependent PRs that eventually merge into the main base branch.

How does automatic PR generation handle templates and titles?

Automatic PR generation uses existing PR templates if present, or applies a default structure. It generates PR titles and bodies based on your commit history with a consistent format to preserve intent and context for reviewers.

Do I need to manually commit and push before drafting a GitHub PR?

No, you do not need to manually commit and push before drafting a GitHub PR. If local changes exist, the Skill leverages a make-commit style to create commits and automatically pushes the current branch to remote when needed.

What is the best way to reduce manual PR overhead in git workflows?

The best way to reduce manual PR overhead is to automate the end-to-end flow from committing to drafting. This Skill handles base-branch detection, commit-based title generation, and template-backed PR creation directly via CLI.

Does this automation work without existing PR templates in the repository?

Yes, this automation works without existing PR templates. If no templates are present in the repository, the Skill uses a default structure to create draft PRs and generate the required title and body content.