worktree-merge-manager

Merge or discard git worktrees after explicit user confirmation.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/KGmufassa/Escrolly --skill worktree-merge-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree-merge-manager
Source: https://github.com/KGmufassa/Escrolly/tree/main/.opencode/skills/worktree-manager
Command: npx skills add https://github.com/KGmufassa/Escrolly --skill worktree-merge-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safely handles merging or discarding git worktrees back into the main codebase, protecting against accidental data loss through enforced human confirmation.

Core Features & Use Cases

  • Safe merge or discard: ensures only explicitly approved actions are executed.
  • State validation and cleanup: checks for a clean repository state and removes worktrees after action.
  • Use Case: Finish feature development in a worktree and merge into the main branch, or discard a failed worktree with a clear audit trail.

Quick Start

Describe the desired action (merge or discard) and the target worktree, then confirm when prompted.

Frequently Asked Questions about worktree-merge-manager

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

FAQPage Schema
How do I safely merge a git worktree back into the main branch?

To safely merge a git worktree, the skill enforces a clean-state check, summarizes changes, and requires explicit human confirmation before merging into the main branch and performing deterministic cleanup.

Can I discard an unwanted git worktree without losing uncommitted changes?

You can discard an unwanted git worktree safely because the skill checks for a clean repository state and requires explicit confirmation, preventing accidental data loss during the discard action.

What is the best way to clean up finished feature work in a git worktree?

The best way to clean up finished feature work in a git worktree is to use a skill that validates the repository state, summarizes changes, and requires explicit confirmation before merging or discarding.

Does merging a worktree require explicit confirmation before executing?

Yes, merging a worktree requires explicit human confirmation; the skill summarizes changes and checks for a clean state to ensure only explicitly approved actions are executed.

Why should I validate repository state before discarding a git worktree?

Validating repository state before discarding a git worktree prevents accidental data loss by ensuring uncommitted changes are addressed and requiring explicit confirmation before cleanup.