merge

Merge completed task branches into main with automated conflict resolution and verification.

1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/huacheng/moonview --skill merge-huacheng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merge
Source: https://github.com/huacheng/moonview/tree/main/plugins/task-ai/skills/merge
Command: npx skills add https://github.com/huacheng/moonview --skill merge-huacheng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, git, and includes scripts (resource) components.

What problem does it solve?

This Skill enables safe merging of a completed task branch into the main branch, including automated conflict resolution and verification steps, while preserving both branches and worktrees for manual cleanup later.

Core Features & Use Cases

  • Pre-merge cleanup and refactoring opportunities on the task branch.
  • Non-fast-forward merge into main with automated conflict resolution and post-merge verification.
  • Multi-stage post-merge workflow: track stage progress, update targets, and generate summaries.
  • Keeps branches and worktrees intact for auditability; supports manual cleanup when ready.
  • Concurrency protection and state management to coordinate with the task-ai daemon.

Quick Start

Run /task-ai:merge <notebook_name> to merge your completed task branch into main with automated conflict resolution.

Frequently Asked Questions about merge

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

FAQPage Schema
How do I automate git merge conflict resolution when merging task branches?

Automated git merge conflict resolution is handled by running the merge command on a completed task branch, which performs a non-fast-forward merge into main while applying automated conflict fixes and post-merge verification checks.

What prerequisites are required before merging a task branch into main?

Merging a task branch requires the task to be in an executing state with an ACCEPT verdict, and dependencies must meet their required statuses before the automated merge workflow can safely proceed.

Does automated branch merging keep the original task branch and worktree intact?

Yes, automated branch merging preserves both the task branch and worktree after merging into main, keeping them intact for auditability and supporting manual cleanup only when you are ready.

What's the best way to handle pre-merge refactoring and post-merge stage tracking for git branches?

The best way is using an automated merge workflow that performs pre-merge cleanup and refactoring on the task branch, then executes multi-stage post-merge handling to track progress, update targets, and generate summaries.

Why does my automated merge fail with concurrency or state management errors?

Automated merge failures can occur if the task-ai daemon state is not properly coordinated, as the workflow includes concurrency protection and state management to prevent conflicting operations during branch merging.

Can I use Python3 and git to automate non-fast-forward merges with conflict resolution?

Yes, you can use Python3 and git to automate non-fast-forward merges with conflict resolution, as the merge workflow relies on these dependencies to execute automated conflict handling and verification checks.