branch-merge

Merge Git feature branches into target branches with conflict resolution guidance.

Updated May 11, 2026
One-click install
npx skills add https://github.com/thachrocky12345/local-agent-train-workstation --skill branch-merge-thachrocky12345
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: branch-merge
Source: https://github.com/thachrocky12345/local-agent-train-workstation/tree/main/.claude/skills/branch-merge
Command: npx skills add https://github.com/thachrocky12345/local-agent-train-workstation --skill branch-merge-thachrocky12345

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Merging feature branches often leads to conflicts, broken builds, and lost history. This Skill provides a structured Git merge workflow with pre-merge checks, multiple merge strategies, and concrete conflict resolution patterns. ## Core Features & Use Cases - Pre-merge Verification: Check that the target branch is clean and up to date, review incoming commits, and preview potential conflicts before merging. - Multiple Merge Strategies: Choose between full merge with --no-ff, cherry-pick for individual commits, or squash merge to flatten branch history. - Conflict Resolution Patterns: Handle common conflicts such as Redux Toolkit extraReducers builder syntax, import statement unions, and package.json/yarn.lock regeneration. - Use Case: When asked to integrate a feature branch into main, follow the checklist to merge safely, resolve conflicts using the builder pattern, verify with a build, and record the merge in a history log. ## Quick Start Merge the feature-login branch into main and resolve any conflicts that come up.

Frequently Asked Questions about branch-merge

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

FAQPage Schema
How do I merge a feature branch into main with Git?

First verify the target branch is clean with git status and up to date with git pull. Then run git checkout on the target branch and git merge origin/<source> --no-ff with a descriptive commit message to preserve branch history.

How to cherry-pick individual commits from another branch?

Use git cherry-pick <commit-hash> --no-commit to stage the changes without committing, review them, then commit with a descriptive message. This is useful when you only need specific commits rather than a full branch merge.

What is the difference between merge, squash merge, and cherry-pick?

A full merge with --no-ff preserves the complete branch history. A squash merge with git merge --squash flattens all branch commits into one. Cherry-pick applies only selected individual commits to the target branch.

How do I resolve yarn.lock conflicts after a merge?

Do not manually merge lockfiles. After resolving package.json conflicts, run yarn install to regenerate the yarn.lock file automatically, which produces a consistent dependency resolution.

Why does my Redux Toolkit slice break after merging branches?

Conflicts often occur between the old extraReducers map syntax and the newer builder callback pattern. Always convert to the builder pattern using builder.addCase, and watch for undefined thunks which crash when passed to addCase.