sync-with-main

Sync a feature branch with main, resolve conflicts, and push changes.

1|1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/adobecom/mas-claude-config --skill sync-with-main
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-with-main
Source: https://github.com/adobecom/mas-claude-config/tree/main/config/skills/sync-with-main
Command: npx skills add https://github.com/adobecom/mas-claude-config --skill sync-with-main

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of syncing a feature branch with the main branch, handling conflicts, rebuilding dependencies, and pushing updates.

Core Features & Use Cases

  • Automated Syncing: Syncs the branch with the main branch automatically.
  • Conflict Resolution: Auto-resolves common dist file conflicts and prompts for source file resolution.
  • Dependency Rebuild: Ensures all dependencies are up-to-date after merging.
  • Pushing Updates: Commits and pushes the merged changes to the remote origin.
  • Use Case: Before creating a pull request, this Skill ensures your feature branch is in sync with the main branch, minimizing conflicts and potential issues.

Quick Start

To sync your branch with main, use the command /sync-with-main.

Frequently Asked Questions about sync-with-main

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

FAQPage Schema
How do I sync a feature branch with the main branch before a pull request?

To sync a feature branch with the main branch, you can automate the process to handle merging, resolve conflicts, rebuild dependencies, and push updates. This ensures your branch is current and minimizes pull request issues.

What is the best way to automate resolving merge conflicts with main?

Automating merge conflict resolution involves auto-resolving common dist file conflicts while prompting for manual source file resolution. This streamlines syncing your feature branch with an active main branch.

Do I need git and npm to automate branch syncing?

Yes, you need git and npm to automate branch syncing. These tools are required to perform essential operations like merging branches, installing dependencies, and pushing changes to the remote origin.

Can I rebuild npm dependencies automatically after merging main?

Yes, you can rebuild npm dependencies automatically after merging main. The automated sync process ensures all dependencies are fully up-to-date once the merge is complete.

Why does syncing my branch with main fail due to source file conflicts?

Syncing fails because automated tools only auto-resolve common dist file conflicts. Source file conflicts require manual intervention and resolution prompts to ensure correct code integration before pushing.