pr-create

Creates draft pull requests from git diffs using repository templates and deterministic context scripts.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/Hakkadaikon/hymme --skill pr-create-hakkadaikon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-create
Source: https://github.com/Hakkadaikon/hymme/tree/main/skills/pr-create
Command: npx skills add https://github.com/Hakkadaikon/hymme --skill pr-create-hakkadaikon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Creating pull requests by hand leads to inconsistent descriptions, ignored repository templates, accidental pushes, and PR bodies polluted with content from unrelated tasks or repositories. This Skill enforces a gated, template-faithful PR creation workflow. ## Core Features & Use Cases - Deterministic context collection: A read-only script detects the repository identity, platform (GitHub/GitLab), base branch, commits, diff stats, CI workflows, and push status so the PR body is grounded only in the actual git state. - Template skeleton enforcement: Detects pull_request_template / merge_request_template files and mechanically verifies the draft body preserves every heading and checklist item via a template-check script before creation. - Mandatory self-review gate: Requires iterating diff-review until zero must-fix findings, with a hook blocking gh pr create unless the evidence file matches the current HEAD. - Use Case: After finishing a feature branch, run the skill to auto-detect the base branch, fill the repo's PR template without altering its structure, get user approval, and create a draft PR via gh or glab. ## Quick Start Ask the AI to create a draft pull request for the current branch using the pr-create skill, optionally specifying a base branch.

Frequently Asked Questions about pr-create

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

FAQPage Schema
How do I create a GitHub pull request that follows the repo template?

Run the pr-context script to deterministically detect the repository's pull_request_template file, then fill only its input fields without changing headings or checklists. The template-check script verifies the draft skeleton matches before you run gh pr create.

How to create a draft PR with gh CLI from a feature branch?

Use gh pr create with --base, --title, --draft, and --body-file flags after confirming the base branch and push status. The skill defaults to draft mode and requires user approval of the title and body before executing the command.

Does this skill support GitLab merge requests?

Yes, it detects GitLab remotes and uses glab mr create with --target-branch and --draft, reading templates from .gitlab/merge_request_templates. For other platforms or missing CLIs, it falls back to presenting the body for manual web UI creation.

Why is gh pr create blocked by a hook before creating the PR?

The PreToolUse hook requires a diff-review evidence file whose commit matches the current HEAD with zero must-fix findings. If you committed after the review, HEAD changed, so you must rerun the self-review until it passes.

What happens if the branch is not pushed yet?

The skill never pushes automatically. It detects the unpushed state via the context script and asks for explicit push approval through AskUserQuestion; if declined, it stops and leaves pushing to the user.