post-merged
CommunitySafe automated post-PR merge cleanup
Software Engineering#git#pull request#branch management#git hygiene#github cli#safe deletion#post-merge cleanup
Authorwilsonfaustino
Version1.0.0
Installs0
System Documentation
What problem does it solve?
After merging a pull request, developers often leave behind messy local git state: unswitched branches, unpruned local feature branches, and unverified merge status, which can lead to accidental data loss or confusion in future work.
Core Features & Use Cases
- Remote Merge Verification: Uses GitHub CLI to confirm PR merge status, correctly handling squash and rebase merges that break local ancestry checks.
- Safe Default Branch Switching: Automatically detects the repository's default branch (no hardcoded main/master) and switches to it after pulling the latest changes with fast-forward only.
- Guarded Local Branch Deletion: Prompts for explicit user consent before deleting the local feature branch, using safe delete flags that refuse to remove branches with unmerged work, and surfaces orphaned [gone] branches for manual cleanup.
- Use Case: Immediately after shipping a feature branch PR, run this skill to automatically confirm the merge, update your local default branch, and clean up the old feature branch without risking lost work.
Quick Start
Use the post-merged skill right after you finish shipping a PR to handle all post-merge cleanup steps safely.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: post-merged Download link: https://github.com/wilsonfaustino/ai-tools/archive/main.zip#post-merged Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.