creating-pull-request

Create draft GitHub pull requests with validated titles, bodies, and labels via gh CLI.

168|55|Updated Jun 3, 2025
One-click install
npx skills add https://github.com/tile-ai/TileOPs --skill creating-pull-request-tile-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-pull-request
Source: https://github.com/tile-ai/TileOPs/tree/main/.claude/skills/creating-pull-request
Command: npx skills add https://github.com/tile-ai/TileOPs --skill creating-pull-request-tile-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, jq, and includes scripts (resource) components.

What problem does it solve?

Ensures pull requests follow TileOPs conventions by creating draft PRs with correctly formatted titles, complete bodies, and required labels to avoid CI and review pitfalls.

Core Features & Use Cases

  • Draft-first PR creation: Create a draft PR from the current branch using the GitHub CLI and a repository template to ensure consistent summaries and test plans.
  • Automated labeling and authorship: Adds at least one type label and the required all-ai-powered authorship label according to repository conventions.
  • Gate and validate: Runs a repository-provided validation script to enforce title format, required body sections, label presence, and MCP newline checks before marking the PR ready.
  • Use case: When you have pushed a feature branch, use this Skill to open a draft PR, populate the template, add appropriate labels, and verify compliance automatically.

Quick Start

Create a draft pull request from the current branch with a compliant title and body based on template.md, add the required labels including all-ai-powered, and run the validation script on the new PR.

Frequently Asked Questions about creating-pull-request

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

FAQPage Schema
How do I create a draft pull request with validated labels using gh CLI?

To create a draft pull request with validated labels, use this Skill to invoke the gh CLI on your pushed branch. It populates the PR template, adds required type labels and the all-ai-powered authorship label, then runs a validation script to ensure compliance before marking the PR ready.

How does PR validation enforce title format and required body sections?

PR validation enforces title format and required body sections by running a repository-provided validation script. This script checks your pull request against mandatory template sections, verifies label presence, and executes MCP newline checks to prevent CI and review pitfalls.

What's the best way to automate pull request labeling and authorship for GitHub drafts?

The best way to automate pull request labeling and authorship is using this Skill's gh CLI integration. It automatically assigns at least one type label and the required all-ai-powered authorship label according to your repository conventions when creating a draft PR.

Do I need jq and gh installed to create pull requests with validated metadata?

Yes, you need both gh and jq installed to create pull requests with validated metadata. These dependencies are required for the Skill to invoke the GitHub CLI, parse JSON outputs, and execute the included validation script for title and body compliance.

Why does my GitHub pull request fail CI checks after creating a draft?

Your GitHub pull request may fail CI checks after creating a draft due to missing required labels, incorrect title format, incomplete body sections, or MCP newline validation failures. This Skill prevents these issues by running a validation script before finalizing the PR.

Can I use this PR creation tool with existing GitHub repository templates?

Yes, you can use this PR creation tool with existing GitHub repository templates. It creates draft pull requests from your current branch using the repository's template.md to ensure consistent summaries and test plans are populated correctly.