create-pr-description

Generate PR descriptions from git diff and repository templates.

92|7|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/dannys-code-corner/incan --skill create-pr-description-dannys-code-corner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr-description
Source: https://github.com/dannys-code-corner/incan/tree/main/.agents/skills/create-pr-description
Command: npx skills add https://github.com/dannys-code-corner/incan --skill create-pr-description-dannys-code-corner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of PR descriptions that adhere to repository templates, saving time and reducing manual drafting errors.

Core Features & Use Cases

  • Template-aware: Locates and applies the repository's pull request template.
  • Diff-driven: Analyzes git changes to populate the PR body accurately.
  • Issue-aware: Extracts issue numbers from branches or commits to close issues automatically when applicable.
  • Use Case: Generate a PR description for a bugfix branch in incan that mirrors the repo template and includes a “Closes #<issue>” line if the branch name contains an issue reference.

Quick Start

Tell the agent to generate a PR description for a feature branch in the current repository.

Frequently Asked Questions about create-pr-description

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

FAQPage Schema
How do I auto-generate a pull request description from a git diff?

To auto-generate a pull request description, this Skill analyzes the git diff main...HEAD to populate repository template sections accurately based on code changes. It locates the template, extracts relevant diff data, and fills out the required sections automatically.

Does generating PR descriptions work with existing repository pull request templates?

Generating PR descriptions works directly with existing repository templates by locating and applying the .github/pull_request_template.md file. It ensures all generated content strictly follows the repository's established conventions and fills every template section.

Can I automatically close issues from a generated PR description?

You can automatically close issues because the PR description generator extracts issue numbers from branch names or commit messages. When an issue reference is found, it appends a Closes line to the generated description automatically.

What do I need to set up before using a PR description template generator?

Before generating, you need a repository containing a .github/pull_request_template.md file and a feature branch with uncommitted git diff changes against main. The generator uses these diffs and template structures to produce compliant descriptions.

Why is my automated PR description missing the issue closure line?

The automated PR description will miss the issue closure line if the branch name or commit messages lack recognizable issue numbers. It only appends a Closes line when it successfully extracts issue references from those specific sources.