home / skills / first-fluke / fullstack-starter / create-pr
This skill automates pull request creation using GitHub CLI, generates conventional-commit-based titles and bodies for clear, high-quality PRs.
npx playbooks add skill first-fluke/fullstack-starter --skill create-prReview the files below or copy the command above to add this skill to your agents.
---
name: create-pr
description: Automates the creation of detailed, well-formatted Pull Requests using the GitHub CLI. Parses conventional commits to generate titles and descriptions.
---
# Create PR
This skill streamlines the Pull Request process, ensuring consistent and high-quality PR descriptions.
## Prerequisites
- `gh` (GitHub CLI) must be installed and authenticated.
- The current branch must have commits that are not yet on the remote (or a corresponding remote branch).
## Workflow
1. **Analyze Context**: Checks the git log to understand the changes (`feat`, `fix`, `chore`).
2. **Generate Metadata**:
- **Title**: Uses the conventional commit format (e.g., `feat: Implement user login`).
- **Body**: Summarizes the changes, links to issues, and provides verification steps.
3. **Execute**: Runs `gh pr create`.
## Usage
```bash
# Standard usage (interactive)
gh pr create
# Fully automated with flags
gh pr create --title "feat: Add user profile" --body "Implements user profile page..."
```
## Best Practices for PRs
- **Small & Focused**: Keep PRs limited to a single logical change.
- **Linked Issues**: Always link to the task/issue (e.g., `Closes #123`).
- **Self-Review**: Review your own diff before creating the PR.
- **Verification**: Explicitly state how you verified the change (screenshots, test output).
This skill automates creation of clear, consistent Pull Requests using the GitHub CLI. It parses conventional commits to produce concise titles and structured bodies that include summaries, issue links, and verification steps. It reduces manual formatting and helps maintain high-quality PRs across a monorepo with multiple services and languages.
The skill inspects the local git log and detects conventional commit tags like feat, fix, and chore to generate a meaningful PR title. It composes a detailed body that summarizes changes, references related issues, and adds suggested verification steps. Finally, it invokes the GitHub CLI (gh pr create) to open the PR interactively or with supplied flags for full automation.
What prerequisites are required?
You must have the GitHub CLI (gh) installed and authenticated, and the local branch must contain commits not yet pushed to the target remote branch.
Can I override the generated title or body?
Yes. You can run gh pr create interactively or pass --title and --body flags to provide a custom title and description.