merged

Switch to main, pull latest changes, and delete merged branches.

116|56|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/Soul-Brews-Studio/oracle-skills-cli --skill merged
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merged
Source: https://github.com/Soul-Brews-Studio/oracle-skills-cli/tree/main/src/skills/merged
Command: npx skills add https://github.com/Soul-Brews-Studio/oracle-skills-cli --skill merged

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

After a PR is merged, this Skill cleans up the Git workspace by switching to the main branch, updating it, and deleting the merged feature branch to keep the repo tidy.

Core Features & Use Cases

  • Local cleanup: switches to main and pulls the latest changes to ensure the local repo reflects the upstream.
  • Branch cleanup: deletes the merged feature branch locally and, if present, remotely to prevent clutter.
  • Use Case: after merging a feature branch, run /merged to finalize the cleanup and prepare for the next task.

Quick Start

/merged

Frequently Asked Questions about merged

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

FAQPage Schema
How do I delete a local and remote Git branch after merging a pull request?

To delete a Git branch after merging, you need to switch to the main branch, pull the latest changes from origin, and then delete the merged feature branch both locally and remotely to keep the repository tidy.

What is the standard Git workflow for post-merge branch cleanup?

Standard post-merge cleanup for Git branches involves switching to the main branch, updating it with the latest upstream changes, and removing the merged feature branch locally and remotely to prevent repository clutter.

Can I automate Git workspace cleanup after a pull request is merged?

Yes, you can automate Git workspace cleanup by running a process that switches to main, pulls origin updates, and deletes the merged feature branch locally and remotely, preparing the repository for the next task.

Does post-merge branch cleanup work for multi-branch Git projects?

Yes, post-merge branch cleanup is designed for standard Git workflows in multi-branch projects, successfully updating the main branch and deleting feature branches locally and remotely if they are present.

How to switch to main and pull latest changes before deleting a feature branch?

To switch to main and pull latest changes, checkout the main branch and fetch updates from origin/main before deleting the merged feature branch, ensuring your local repository reflects the upstream state accurately.