prepare-pr

Validate git state, organize commits, and generate PR descriptions.

9.0k|629|Updated Apr 16, 2025
One-click install
npx skills add https://github.com/mengxi-ream/read-frog --skill prepare-pr-mengxi-ream
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prepare-pr
Source: https://github.com/mengxi-ream/read-frog/tree/main/.agents/skills/prepare-pr
Command: npx skills add https://github.com/mengxi-ream/read-frog --skill prepare-pr-mengxi-ream

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically prepare all work before creating a pull request by validating the current state, organizing commits, and generating PR context.

Core Features & Use Cases

  • Check git status and branch information to understand the current state
  • Create or reuse a branch based on the code changes and worktrees
  • Review commit history and diffs against main to plan PR content
  • Generate a changeset entry and a clean PR description for submission
  • Push the branch and assemble PR scaffolding for quick submission

Quick Start

Provide an issue number as an argument to trigger association with a specific task and run the PR preparation workflow.

Frequently Asked Questions about prepare-pr

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

FAQPage Schema
How do I automate pull request preparation and branch management before submitting code for review?

Automate pull request preparation by validating git status, creating or reusing branches, and generating PR context. The workflow checks your current state, organizes commits against main, and generates a changeset entry with a clean PR description for seamless submission.

What is the best way to generate a changeset entry and draft a pull request description from my current git diff?

Generate a changeset entry and draft a pull request description by reviewing your commit history and diffs against the main branch. The workflow analyzes your code changes to plan PR content and assembles clean PR scaffolding for quick submission.

Can I associate my git branch and pull request with a specific issue number automatically?

Yes, you can associate a git branch and pull request with a specific issue number automatically. Provide the issue number as an argument to trigger the PR preparation workflow, which links the task and organizes the branch accordingly.

How do I check my git status and commit history to ensure readiness before creating a pull request?

Check git status and commit history readiness by validating the current state and reviewing diffs against main. The workflow inspects your branch information and commit history to plan PR content, ensuring all work meets pre-PR preparation requirements.

Does this workflow support reusing an existing git branch or does it always create a new one for pull requests?

The workflow supports both creating a new branch and reusing an existing one for pull requests. It checks git status and worktrees to determine the optimal branch management strategy based on your current code changes.

What steps are involved in pushing a branch and assembling PR scaffolding for a pull request?

Steps for pushing a branch and assembling PR scaffolding involve validating state, organizing commits, generating a changeset entry, and drafting a PR description. The workflow then pushes the branch and assembles the scaffolding for quick submission.