sync-dev-from-master

Automates creation of synchronization pull requests from master to dev branches using gh CLI and git.

71|2|Updated Oct 26, 2019
One-click install
npx skills add https://github.com/TrainLCD/MobileApp --skill sync-dev-from-master
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-dev-from-master
Source: https://github.com/TrainLCD/MobileApp/tree/main/.claude/skills/sync-dev-from-master
Command: npx skills add https://github.com/TrainLCD/MobileApp --skill sync-dev-from-master

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the recurring pain point of manually synchronizing the dev branch with master after a production release, preventing human error and ensuring the integrity of the merge commit history.

Core Features & Use Cases

  • Automated PR Creation: Generates a standardized dev-master sync PR with pre-filled templates and correct metadata.
  • Conflict Resolution: Provides a structured workflow for handling version file conflicts when cherry-picked hotfixes cause version skew.
  • Safety Guardrails: Enforces merge-commit-only policies and prevents accidental squash merges that break branch history.

Quick Start

Run the sync-dev-from-master skill to create a synchronization pull request for the latest release version.

Frequently Asked Questions about sync-dev-from-master

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

FAQPage Schema
How do I automate syncing my dev branch with master after a production release?

Automating dev branch synchronization after a release requires generating a standardized pull request from master to dev. This skill uses git and gh CLI to create the sync PR automatically, enforcing merge-commit-only policies to maintain repository history integrity.

Why does my dev branch fall behind master after hotfixes and how do I fix it?

Dev branches fall behind master when hotfixes are cherry-picked directly into production, causing version skew. To fix this, a synchronization pull request must be created from master to dev, resolving any merge conflicts that arise in versioning files during the process.

What's the best way to prevent squash merges from breaking git branch history during release synchronization?

Preventing squash merges from breaking git branch history requires enforcing merge-commit-only policies during dev-master synchronization. This skill applies safety guardrails to the pull request workflow, ensuring the merge commit history remains intact and consistent across branches.

Do I need the gh CLI installed to automate dev-master pull request creation?

Yes, you need the gh CLI and git installed to automate dev-master pull request creation. These tools manage the local branch creation, remote repository interactions, and PR template population required to successfully execute the post-release synchronization workflow.

How are version file conflicts handled when synchronizing dev and master branches?

Version file conflicts during dev-master synchronization are handled through a structured conflict resolution workflow. When cherry-picked hotfixes cause version skew, the skill identifies conflicting versioning files and guides the merge conflict resolution process within the generated pull request.

Can I use this sync workflow to generate a pre-filled pull request template for release management?

Yes, you can use this workflow to generate a pre-filled pull request template for release management. It automates PR creation by populating standardized templates with correct metadata, providing a consistent structure for synchronizing your dev branch with the latest release version.