pr-draft

Generate draft pull requests with validated body templates and issue linkage.

2|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/LightForgeLabsStudio/AIDE --skill pr-draft-lightforgelabsstudio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-draft
Source: https://github.com/LightForgeLabsStudio/AIDE/tree/main/skills/pr-draft
Command: npx skills add https://github.com/LightForgeLabsStudio/AIDE --skill pr-draft-lightforgelabsstudio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of creating draft Pull Requests by ensuring a consistent, validated template for the PR body, linking to relevant issues, and confirming branch readiness.

Core Features & Use Cases

  • Automated PR Body Generation: Creates a PR body from a predefined template including summary, implementation plan, and validation checklists.
  • Issue Linkage: Automatically links the PR to a specified issue using the Fixes #<number> format.
  • Pre-creation Validation: Validates the PR body locally before submission to catch formatting errors.
  • Branch State Check: Ensures the current branch is not main and has commits, pushing if necessary.
  • Use Case: When you've finished a feature, use this skill to quickly create a well-formatted draft PR that includes a summary of your changes, a plan for implementation, and validation steps, all linked to the relevant task.

Quick Start

Use the pr-draft skill to create a draft pull request for the current branch, linking to issue number 123, with a summary of 'Implemented user authentication'.

Frequently Asked Questions about pr-draft

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

FAQPage Schema
How do I create a draft pull request with a validated body template using GitHub CLI?

To create a draft pull request with a validated body, this skill generates a standard PR template locally, checks branch readiness, and submits it via the GitHub CLI. It validates formatting locally before pushing your branch and opening the draft PR.

How can I automatically link a GitHub pull request to an issue?

You can automatically link a pull request to an issue by generating a PR body with the 'Fixes #<number>' format. This skill automatically inserts the specified issue linkage into the validated body template during draft PR creation.

What is the best way to ensure a PR body has summary bullets and validation checklists before submission?

The best way to ensure a properly formatted PR body is to use a skill that performs local pre-creation validation. It builds the body from a predefined template containing summary bullets, implementation plans, and validation checklists before submitting.

Can I create a draft PR if my current git branch has uncommitted changes or is on the main branch?

You cannot create a draft PR from the main branch or an empty branch. This skill performs a branch state check to ensure you are not on main and that commits exist, pushing to the remote repository if necessary before generating the PR.

How do I automate pull request creation for AIDE repositories?

You can automate pull request creation for AIDE repositories by running this skill to generate a validated draft PR. It handles branch verification, remote pushing, and body template formatting specifically for AIDE repository workflows.

Does this PR draft generation skill work without external dependencies?

Yes, the PR draft generation skill operates without external dependencies, relying entirely on internal scripts. It uses the GitHub CLI to validate the PR body locally and submit the draft pull request.