wrap-up

Automate post-merge PR confirmation, main updates, and worktree cleanup.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/danievanzyl/code-skills --skill wrap-up-danievanzyl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrap-up
Source: https://github.com/danievanzyl/code-skills/tree/main/skills/wrap-up
Command: npx skills add https://github.com/danievanzyl/code-skills --skill wrap-up-danievanzyl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The post-merge motion you do by hand every time a PR lands: confirm merged → update main → close worktree/branch → offer a handoff → say what's next. Orchestration glue — it leans on git-worktree (cleanup) and handoff (the doc), it does not reimplement them.

Core Features & Use Cases

  • Coordinates the end-to-end post-merge flow by validating the PR state, refreshing the main branch, and tidying local worktrees and branches.
  • Delegates handoff documentation to the handoff skill and cleanup to the git-worktree mechanisms, enabling multi-repo coordination.
  • Supports cross-repo handoffs and downstream messaging to signal which sibling repos require attention.

Quick Start

After a PR is merged, run wrap-up to close the worktree, update main, and optionally generate a handoff document.

Frequently Asked Questions about wrap-up

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

FAQPage Schema
How do I automate post-merge cleanup for git worktrees and branches?

Automating post-merge cleanup involves validating the PR state, updating the main branch, and removing local worktrees. This Skill orchestrates that flow by delegating the cleanup to git-worktree mechanisms after confirming a PR is merged.

What is the best way to handle cross-repo handoffs after a PR merge?

Handling cross-repo handoffs requires coordinating cleanup and signaling sibling repositories for attention. This Skill orchestrates multi-repo workflows by delegating documentation generation to the handoff skill after refreshing main branches.

Can I generate handoff documentation automatically when closing a worktree?

Yes, generating handoff documentation while closing a worktree is supported via argument parsing for an optional handoff topic. The Skill delegates this documentation task to the handoff skill during the post-merge workflow.

How does multi-repo workflow automation work for branch cleanup?

Multi-repo workflow automation for branch cleanup validates merged PRs across related repositories, refreshes main, and removes obsolete worktrees. It coordinates downstream messaging to indicate which sibling repos require further attention.

Do I need the git-worktree mechanism to automate PR merge cleanup?

Yes, the git-worktree mechanism is required because this Skill acts as orchestration glue and delegates the actual worktree and branch removal to it rather than reimplementing those cleanup functions.

Why should I use an orchestration Skill instead of manually updating main and deleting branches?

Using an orchestration Skill prevents manual errors by automating the end-to-end post-merge motion: confirming the merge, updating main, cleaning worktrees, and offering handoff documentation across multiple repositories seamlessly.