🧹
DevOpsTypeScript

Post-Merge Cleanup

by shep-ai

Post-Merge Cleanup is a DevOps skill for Claude Code, published by shep-ai in shep.

247 stars53 forkson shep-ai/shepAdded 2026/09/02Repository updated 2026/08/28
agent-orchestrationagentic-aiaiai-agentsai-code-generationai-codingai-nativeautomationclaudeclaude-codeclicursordeveloper-toolsdevtoolsgeminigit-worktreesparallel-developmentsdlctypescriptworktrees
Install in seconds
Install Post-Merge Cleanup
Copy Post-Merge Cleanup into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/shep-ai/shep/tree/main/.claude/skills/shep-kit-merged ~/.claude/skills/shep-kit-merged

Requires Node.js. Downloads this skill only β€” not the rest of the repository β€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/shep-ai/shep.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
.claude/skills/shep-kit-merged/SKILL.md in shep-ai/shep
Installs to
~/.claude/skills/shep-kit-merged
Collection
One of 19 skills cataloged from this repository
Category
DevOps β€” 828 skills

What Post-Merge Cleanup does

Post-Merge Cleanup switches to main, pulls the latest changes, and deletes the local feature branch after a PR has merged. Use it to finish up merged work and keep the branch list clean.

Post-Merge Cleanup is cataloged under DevOps on DirSkills. Post-Merge Cleanup comes from a repository tagged agent-orchestration, agentic-ai, ai, ai-agents and ai-code-generation.

Documentation

README

Post-Merge Cleanup

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

Workflow

digraph merged_flow {
    rankdir=LR;
    node [shape=box];

    start [label="Start" shape=ellipse];
    get_branch [label="Get current branch name"];
    checkout_main [label="git checkout main"];
    pull [label="git pull"];
    delete_branch [label="git branch -d <branch>"];
    done [label="Done" shape=ellipse];

    start -> get_branch;
    get_branch -> checkout_main;
    checkout_main -> pull;
    pull -> delete_branch;
    delete_branch -> done;
}

Steps

1. Get Current Branch

CURRENT_BRANCH=$(git branch --show-current)

If already on main, skip cleanup.

2. Update feature.yaml (Before Switching)

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Post-Merge Cleanup

  • What else does shep-ai publish alongside Post-Merge Cleanup?

    Post-Merge Cleanup is one of 19 skills that DirSkills catalogs from shep-ai/shep, the repository it ships in. Its siblings there include Architecture Reviewer, Commit PR and Cross-Validate Artifacts. Each one is a separate skill with its own page in this directory, installs the same way Post-Merge Cleanup does, and is maintained by shep-ai in that same repository. The rest of the collection is listed on the shep-ai/shep page.

  • How does Post-Merge Cleanup compare to other DevOps skills?

    Post-Merge Cleanup ranks #749 by stars among the 828 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Post-Merge Cleanup against them. Open each page to compare what they document and how they install.

More from shep-ai/shep

Post-Merge Cleanup is one of 19 skills cataloged on DirSkills from shep-ai/shep.

See all 19 skills β†’