preparing-branch-for-integration

Fetch origin, merge or rebase the parent, and resolve conflicts before running tests.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/brmatola/dotfiles --skill preparing-branch-for-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: preparing-branch-for-integration
Source: https://github.com/brmatola/dotfiles/tree/main/plans/archive/unified-branch-workflow/design
Command: npx skills add https://github.com/brmatola/dotfiles --skill preparing-branch-for-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the critical prep steps required to ready a feature branch for integration by fetching the latest changes from the parent, applying a merge or rebase into the feature branch, and guiding interactive conflict resolution before tests run.

Core Features & Use Cases

  • Fetch latest from origin and determine the parent branch
  • Merge or rebase the parent into the feature branch and assist with interactive conflict resolution
  • Run the appropriate test suite to verify a clean state before handoff

Quick Start

Identify your feature branch, run the preparing-branch-for-integration skill to fetch, merge/rebase, and run tests to prepare for handoff.

Frequently Asked Questions about preparing-branch-for-integration

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

FAQPage Schema
How do I prepare a git feature branch for integration without causing conflicts?

Preparing a feature branch for integration involves fetching the latest from origin, merging or rebasing the parent branch, resolving conflicts interactively, and running tests to verify a clean state before final integration decisions.

What steps should I take to resolve git branch conflicts before merging?

To resolve git branch conflicts before merging, fetch origin, apply a merge or rebase from the parent branch, follow interactive conflict resolution guidance, and run test validation to ensure a clean state before handoff.

Does this branch preparation workflow run tests after merging or rebasing?

Yes, the branch preparation workflow runs the appropriate test suite to verify a clean state after fetching origin, applying a merge or rebase, and completing conflict resolution before handing control to the user.

Should I use merge or rebase when preparing my feature branch for integration?

When preparing your feature branch for integration, you can choose either merge or rebase to apply parent branch updates; the workflow supports both scenarios and guides interactive conflict resolution before running test validation.

What happens if test validation fails after rebasing my feature branch?

If test validation fails after rebasing your feature branch, the workflow hands control back to you for final integration decisions, ensuring you address issues before proceeding with the fetch, merge or rebase, conflict resolution, and test verification requirements.

Can I use this skill to fetch origin and determine the parent branch automatically?

Yes, you can use this skill to fetch origin and determine the parent branch automatically, as it executes end-to-end prep covering fetch, merge or rebase, conflict handling, and test verification for feature branches ready for integration.