close-feature-pr

Merge feature pull requests and clean up branches with GitHub CLI.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/graysurf/agent-kit --skill close-feature-pr
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: close-feature-pr
Source: https://github.com/graysurf/agent-kit/tree/main/skills/workflows/pr/feature/close-feature-pr
Command: npx skills add https://github.com/graysurf/agent-kit --skill close-feature-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of merging feature pull requests, ensuring code quality and tidying up associated branches and local work.

Core Features & Use Cases

  • Automated PR Hygiene: Reviews PR titles, required sections (Summary, Changes, Testing, Risk/Notes), and progress/planning links for consistency.
  • Draft PR Handling: Automatically marks draft PRs as ready for review before merging.
  • Merge and Cleanup: Merges the PR using a merge commit, deletes the remote branch, switches to the base branch, pulls updates, and deletes the local feature branch.
  • Use Case: After completing a feature and ensuring all tests pass, you can use this Skill to merge your pull request into the main branch, delete the feature branch, and update your local repository, all with a single command.

Quick Start

Use the close-feature-pr skill to merge the current branch's pull request.

Frequently Asked Questions about close-feature-pr

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

FAQPage Schema
How do I merge a pull request and automatically delete the remote branch using GitHub CLI?▼

To merge a pull request and delete the remote branch automatically, you can use an automation tool that executes a GitHub CLI merge commit and then removes the remote feature branch.

Can I automatically mark a draft pull request as ready for review before merging?▼

Yes, automated PR cleanup tools can detect draft pull requests and automatically mark them as ready for review before executing the merge commit.

How do I validate pull request hygiene before merging a feature branch?▼

You can validate pull request hygiene by checking the PR title and required sections like Summary, Changes, Testing, and Risk/Notes before performing the merge.

Do I need git and gh CLI tools to automate pull request merges and local branch cleanup?▼

Yes, you need git and gh CLI tools with authenticated access to execute the merge commit, delete the remote branch, pull updates, and clean up local feature branches.

What is the best way to clean up local git branches after merging a feature pull request?▼

The best way to clean up local git branches after merging a feature pull request is to switch to the base branch, pull updates, and delete the local feature branch automatically.

Does automated PR merging work with merge commits instead of squashing?▼

Yes, automated PR merging tools can execute a standard merge commit to integrate the feature pull request into the main branch while preserving the commit history.