git-post-merge-cleanup SKILL.md skillA

git-post-merge-cleanup from mishrashardendu22/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add mishrashardendu22/agent-skills/git-post-merge-cleanup@git:20260917.f685a8f

Pins git:20260917.f685a8f in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
mishrashardendu22/agent-skills
Path
.agents/skills/git-post-merge-cleanup/SKILL.md
Versions recorded
5
Latest version
git:20260917.f685a8f, committed Sep 17, 2026
First version recorded
Aug 31, 2026
Size
6,848 bytes
Repository stars
6
License
MIT

Rules, safety constraints, and automated procedures for post-merge local Git cleanup, synchronizing main with GitHub, deleting stale local branches, and performing deep repository garbage collection (git gc, reflog expire, prune) strictly upon explicit human user request.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Git Post-Merge Repository & Branch Cleanup Skill

This skill defines the official protocol and step-by-step procedures for cleaning up local development branches, pulling the latest `main` from GitHub after a Pull Request is merged, and executing deep Git repository garbage collection and maintenance.

---

## 1. Strict Permission & Trigger Boundary

> [!IMPORTANT]
> **EXPLICIT HUMAN INSTRUCTION ONLY**:
> AI agents MUST NEVER run local branch deletions, branch resets, or aggressive garbage collection automatically.
> This workflow is triggered **ONLY** when the human user explicitly instructs the agent to perform cleanup (e.g. *"clean up local branches"*, *"sync main and do git gc"*, *"I merged the PR, please clean up"*).
>
> The typical workflow is:
> 1. AI agent finishes work on a feature branch, passes pre-commit checks, commits locally, pushes branch, and opens a PR targeting `main`.
> 2. The human user reviews and merges the Pull Request on GitHub.
> 3. The human user prompts the AI agent to perform local cleanup.
> 4. The AI agent executes the safe post-merge cleanup runbook below.

---

## 2. Core Cleanup Principles
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add mishrashardendu22/agent-skills/git-post-merge-cleanup@sha256:075f653f4d5a6e9f

The line at the top of this page pins the label git:20260917.f685a8f, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_mszgtb6ljyeack65.svg)](https://markdownregistry.com/a/art_mszgtb6ljyeack65)

6 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Aug 31, 2026 and Sep 17, 2026, about one every 4 days.

versioncommittedcommitsizeaudit
git:20260917.f685a8f latest2026-09-17 f685a8f 6,848 BA view · diff
git:20260914.d848bee2026-09-14 d848bee 4,700 BA view · diff
git:20260914.e06e21c2026-09-14 e06e21c 4,342 BA view · diff
git:20260905.a73d7ea2026-09-05 a73d7ea 4,327 BA view · diff
git:20260831.0978e7e2026-08-31 0978e7e 6,621 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6848 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

mishrashardendu22/agent-skills · 6 stars · license MIT · pushed 2026-09-17 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_mszgtb6ljyeack65
GET https://markdownregistry.com/api/v1/resolve?ref=mishrashardendu22/agent-skills/git-post-merge-cleanup
GET https://markdownregistry.com/api/v1/blob/075f653f4d5a6e9fec45dbe0ea2822cdea98c39c222c0edc632c328623d3cfd5

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from mishrashardendu22/agent-skills

agent-observatory-workflow SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/agent-observatory-workflow/SKILL.md · Step-by-step instructions for building and extending Python AI agent services: adding LangChain/LiteLLM tools…
git:20260914.e06e21c · audit A · 6 stars
careercafe-curiotech SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/careercafe-curiotech/SKILL.md · Official visual design system, typography, theme models, multi-surface UI protocols, and frozen landing page…
git:20260914.320e0e3 · audit A · 6 stars
ci-cd-workflow SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/ci-cd-workflow/SKILL.md · Rules, architectures, and guidelines for maintaining GitHub Actions CI/CD workflows, Docker Hub image publishing, and…
git:20260917.f685a8f · audit A · 6 stars
cli-tooling-guide SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/cli-tooling-guide/SKILL.md · Standard operating guide for first-class authenticated CLI tools in the repository: GitHub CLI (gh), Google Jules CLI…
git:20260914.e06e21c · audit A · 6 stars
code-quality-and-validation SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/code-quality-and-validation/SKILL.md · Standards, tools, and commands for code formatting, linting, and static type checking across Go, Python, and TypeScript.
git:20260914.e06e21c · audit A · 6 stars
codebase-simplification-guide SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/codebase-simplification-guide/SKILL.md · Rules and principles for keeping this codebase clean, minimal, maintainable, and free of unnecessary abstractions.
git:20260914.e06e21c · audit A · 6 stars
doc-synchronization SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/doc-synchronization/SKILL.md · High-priority rules and automated procedures for continuously keeping repository documentation, API references…
git:20260914.e06e21c · audit A · 6 stars
docker-first-architecture SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/docker-first-architecture/SKILL.md · Rules, architectures, multi-stage Dockerfile blueprints, and container-first workflows for all microservices…
git:20260914.e06e21c · audit A · 6 stars
git-branch-management SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/git-branch-management/SKILL.md · Rules and procedures for creating, naming, structuring, and navigating Git branches in the repository for both human…
git:20260914.e06e21c · audit A · 6 stars
git-commit-workflow SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/git-commit-workflow/SKILL.md · High-priority rules, message formats, commit design taxonomy, and strict permission boundaries for creating frequent…
git:20260914.e06e21c · audit A · 6 stars
git-worktree-management SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/git-worktree-management/SKILL.md · Standard operating procedure for ephemeral Git worktree isolation, directory conventions, branch-to-worktree 1:1…
git:20260914.d2d9993 · audit A · 6 stars
github-backup-automation-system SKILL.md skill
mishrashardendu22/agent-skills · .agents/skills/github-backup-automation-system/SKILL.md · System architecture, inter-service topology, database schemas, and AI observatory development runbooks for the GitHub…
git:20260915.349b62c · audit A · 6 stars

Every file in mishrashardendu22/agent-skills

Other files named git-post-merge-cleanup

git-post-merge-cleanup SKILL.md skill
ivy00johns/skill-madness · skills/git/git-post-merge-cleanup/SKILL.md · Clean up everything stale after merges in one pass: local branches fully merged into the default branch…
v1.3.0 · audit A · 11 stars

Browse by kind, by grade A, or by owner.