post-merge-cleanup

Switch to master, delete the feature branch, and pull latest changes.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/cuemath/dotclaude --skill post-merge-cleanup-cuemath
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: post-merge-cleanup
Source: https://github.com/cuemath/dotclaude/tree/main/skills/post-merge-cleanup
Command: npx skills add https://github.com/cuemath/dotclaude --skill post-merge-cleanup-cuemath

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of cleaning up your local Git repository after merging a feature branch into the main branch, ensuring your workspace remains tidy and up-to-date.

Core Features & Use Cases

  • Branch Management: Automatically switches to the master branch.
  • Deletion: Deletes the completed feature branch.
  • Synchronization: Pulls the latest changes from the remote repository.
  • Use Case: After successfully merging your feature branch into master and pushing, you can use this skill to automatically clean up your local environment by deleting the now-obsolete feature branch and updating your master branch.

Quick Start

Run the post-merge-cleanup skill to switch to master, delete the current branch, and pull latest changes.

Frequently Asked Questions about post-merge-cleanup

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

FAQPage Schema
How do I clean up local Git branches after merging?

To clean up local Git branches after merging, you need to switch to the master branch, delete the obsolete feature branch, and pull the latest changes from the remote repository. This maintains a synchronized development environment.

What is the best way to delete a feature branch after a Git merge?

The best way to delete a feature branch after a Git merge is to automate the workflow by switching to master, removing the completed branch, and pulling remote updates. This ensures your workspace remains tidy and up-to-date.

Do I need to pull the latest changes after deleting a local Git branch?

Yes, pulling the latest changes from the remote repository is essential after deleting a local Git branch. It updates your master branch and ensures your local development environment remains fully synchronized.

Can I automate Git branch management and repository synchronization?

You can automate Git branch management by running a workflow that switches to master, deletes the current feature branch, and pulls remote changes. This removes manual steps and keeps your version control environment clean.

When should I clean up my local Git repository after a merge?

You should clean up your local Git repository immediately after successfully merging your feature branch into master and pushing. This prevents obsolete branches from accumulating and keeps your workspace synchronized.