Dev & Engineering ✓ Microsoft · Official git-mergebranch-managementmerge-conflict-resolutiongit-worktreecommit-workflow

Branch Merge Assistant

Safely merges session work from a topic branch back into its base branch.

FollowSkills review · FSRS-2.0
Use with care
49/ 100 5-point scale 2.5 / 5
1 2 3 4 5 6
1Trust14 / 25 · 2.8/5

The skill explicitly forbids unapproved force-pushes, skipped hooks, and rewriting or dropping commits, and asks the user when conflict resolution is uncertain. However, it directly commits uncommitted changes and runs a merge in the main worktree without general pre-execution confirmation, impact disclosure, or a rollback plan after success, so points are deducted. MIT licensing, Microsoft attribution, and repository provenance are traceable governance evidence only and do not resolve the authorization gaps.

2Reliability8 / 20 · 2.0/5

The workflow covers status checking, merging, conflict listing, staging, committing, and post-merge validation, with some useful conflict feedback. However, it depends on an unavailable /commit skill, assumes a context-provided branch and worktree setup, lacks handling for general command failures, and provides no skill-specific test evidence. Because this is a static review without execution, the score is kept conservative.

3Adaptability10 / 15 · 3.3/5

The name, trigger description, and scenario are clear: merge a session topic branch back into its base branch. Boundary evidence is limited because the workflow assumes a supplied context block and a particular current/main worktree arrangement, without defining non-fit cases, permission prerequisites, or precise trigger exclusions. The function is local Git work and does not entirely depend on overseas services; Chinese users can use the commands, but the documentation is not localized.

4Convention7 / 15 · 2.3/5

The document is concise and organized into purpose, safeguards, workflow, conflict handling, and validation, with several explicit restrictions. Repository materials establish MIT licensing, Microsoft ownership, version information, and source location. The skill itself lacks installation or dependency notes, examples, FAQs, known limitations, changelog/versioning, and a clear maintenance or update path, so points are deducted.

5Effectiveness6 / 15 · 2.0/5

The core objective and commands can support a normal merge, and the final checks validate a clean main worktree and ancestor relationship. However, automatic committing, dependence on the separate /commit skill, incomplete abnormal-case handling, and the absence of an expected result report reduce direct usability. Static reading cannot verify execution, so the score remains within the conservative effectiveness ceiling.

6Verifiability4 / 10 · 2.0/5

The commands, branch relationship, and validation conditions are auditable, and repository files corroborate basic licensing and governance claims. There is no skill-specific test suite, CI coverage, or third-party execution evidence; the supplied CI workflows do not cover the merge skill's key path. Static evidence therefore supports only a limited score.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 5b3e1be7be9e
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • Before execution, explicitly confirm that current-worktree changes will be committed and verify the main worktree, source branch, and target branch.
  • The referenced /commit skill is not included in the supplied material; failure behavior when that dependency is unavailable should be documented.
  • Rollback after a successful merge, handling of non-conflict command failures, and a commit-content review step are unspecified.
See the full review method →

What does this skill do, and when should you use it?

This skill merges a topic branch from the current worktree into the merge base branch in the main worktree. It first checks for uncommitted changes and invokes the /commit skill when needed. It then runs the Git merge and handles or reports conflicts. Afterward, it verifies that the main worktree is clean and that the topic branch is an ancestor of the resulting branch.

Checks the current worktree with Git status; invokes the /commit skill when uncommitted changes exist; runs git -C <main-worktree-path> merge <topic-branch>; lists conflicted files and stages resolved files; creates a merge commit when required; checks the main worktree status; and uses git merge-base --is-ancestor to verify that the topic branch was merged.

  1. A developer has finished work in an isolated topic worktree and needs to merge it into the main worktree.
  2. A contributor wants uncommitted changes handled before integrating a branch.
  3. A Git merge produces conflicts that need to be listed and resolved while preserving both sides' intent.
  4. A maintainer needs post-merge confirmation that the main worktree is clean and the topic branch is included.

What are this skill's strengths and limitations?

Pros
  • Covers the full flow from commit checks through merging, conflict handling, and validation.
  • Explicitly prohibits force-pushing, skipping push hooks, and rewriting or dropping commits without approval.
  • Uses the main worktree path for the merge, fitting multi-worktree workflows.
Limitations
  • Requires Git, a main worktree path, and source and target branch context.
  • The source provides no automated test suite or platform compatibility evidence.
  • It pauses for user guidance when conflict resolution is uncertain.
  • Installation and invocation methods for different clients are undocumented.

How do you install this skill?

The source only identifies the skill file at src/vs/sessions/skills/merge/SKILL.md in the microsoft/vscode repository. It does not document a client-specific skills directory, installation command, or installation procedure.

How do you use this skill?

Trigger the skill from the worktree containing the topic branch and provide the source branch, target branch, and main worktree path from the context. Example: "Merge this session's work back into the base branch." The source does not document the exact trigger mechanism.

FAQ

Does it force-push or skip push hooks?
No. The source explicitly prohibits force-pushing without approval and prohibits skipping push hooks.
What happens if the current worktree has uncommitted changes?
The skill checks the worktree status and invokes the /commit skill before continuing.
Does it make conflict-resolution decisions automatically?
It lists conflicted files and aims to preserve both sides' intent, but asks the user when the correct resolution is uncertain.

More skills from this repository

All from microsoft/vscode

Dev & Engineering ✓ Microsoft · Official

Git Branch Sync

Safely sync an upstream branch or publish the current session branch to a remote.

Dev & Engineering ✓ Microsoft · Official

Upstream Branch Sync

Rebase a stale session branch onto the latest upstream changes.

Dev & Engineering ✓ Microsoft · Official

Commit Assistant

Creates repository-style commit messages and safely commits code changes.

Dev & Engineering ✓ Microsoft · Official

Author Contribution Audit

Trace an author’s files across a branch, including contributions carried through renames.

Dev & Engineering ✓ Microsoft · Official

Create Draft Pull Request

Validate the current session’s changes and open a draft PR through GitHub MCP.

Dev & Engineering ✓ Microsoft · Official

VS Code Configuration Policy Maintainer

Standardize VS Code policy registration, export, and validation.

Dev & Engineering ✓ Microsoft · Official

VS Code Agents Window Sessions

Safely implement and repair VS Code Agents window features.

Dev & Engineering ✓ Microsoft · Official

Feedback Action

Reads current-session feedback and applies the requested code changes.

Dev & Engineering ✓ Microsoft · Official

VS Code Chat Customizations Editor Skill

Guides developers through safe changes and testing for VS Code’s chat customization management UI.

Dev & Engineering ✓ Microsoft · Official

Memory Leak Audit

Systematically find and fix listener, lifecycle, and disposable leaks in VS Code code.

Dev & Engineering ✓ Microsoft · Official

Session Code Review

Review the current session's code changes and place actionable findings directly on the relevant lines.

Dev & Engineering ✓ Microsoft · Official

Workflow Skill Builder

Turns a conversation's working method into a reusable SKILL.md.

Automation & Ops ✓ Microsoft · Official

CI Failure Fixer

Diagnose pull request CI failures and iterate toward a fix.

Dev & Engineering ✓ Microsoft · Official

VS Code Hygiene Checks

Catch VS Code commit-blocking style and hygiene issues before the work is declared complete.

Dev & Engineering ✓ Microsoft · Official

VS Code Smoke Test Failure Diagnosis

Diagnose and validate intermittent VS Code Electron smoke-test failures in Azure DevOps.

Dev & Engineering ✓ Microsoft · Official

Session Pull Request Assistant

Checks session changes and creates a GitHub pull request through GitHub MCP.

Dev & Engineering ✓ Microsoft · Official

Existing Pull Request Updater

Sync the branch, run checks, and publish new changes to an existing pull request.

Dev & Engineering ✓ Microsoft · Official

Tool Rename Compatibility Check

Protect existing prompts and tool configurations when built-in tools are renamed.

Dev & Engineering ✓ Microsoft · Official

Copilot Chat OpenTelemetry Instrumentation

A repository-specific guide for consistent OpenTelemetry instrumentation in Copilot Chat.

Design & Frontend ✓ Microsoft · Official

VS Code Design Philosophy

Turn vague UI discomfort into concrete fixes using shared values, principles, and design moves.

Related skills