🧹
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 β€” 1075 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 #756 by stars among the 1075 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 β†’
πŸ—οΈ
2026/09/02

Architecture Reviewer

Architecture Reviewer gives Clean Architecture guidance for TypeScript projects, including layer placement, dependency direction, ports, and pattern checks. Use it when planning features, reviewing PRs, or validating where code should live.
AI Engineering
24753
πŸ”
2026/09/02

Commit PR

Commit PR creates a branch, commits changes, pushes them, and opens a pull request with CI watching. It then checks review feedback and applies fixes until the PR is approved or it needs user input.
DevOps
24753
🧾
2026/09/02

Cross-Validate Artifacts

Cross-Validate Artifacts checks documentation and codebase artifacts for consistency, conflicts, and contradictions. Use it to audit docs or run a validate-and-fix pass across related files and paths.
Quality
24753
⚑
2026/09/02

Fast Loop

Fast Loop skips tests, builds, and commits so you can edit code and check changes in a running dev server. Use it for quick manual iteration when the user wants fast feedback.
Automation
24753
🧭
2026/09/02

Feature Status

Feature Status quickly orients you to the current branch, what has been completed, and what to do next. Use it when starting a session, resuming work, or checking progress on a feature branch.
Automation
24753
πŸ—ΊοΈ
2026/09/02

Mermaid Diagrams

Mermaid Diagrams helps create and document software diagrams with Mermaid syntax. Use it for class, sequence, flowchart, ERD, C4, state, git, and Gantt diagrams when mapping architecture, data models, or flows.
Writing
24753