sync

You are assisting with syncing a feature branch with the latest main branch. Follow these steps:

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "sync" with this command: npx skills add yusuke-suzuki/dotfiles/yusuke-suzuki-dotfiles-sync

Sync

You are assisting with syncing a feature branch with the latest main branch. Follow these steps:

  1. Initial Assessment
  • Run git status to check for uncommitted changes (must be clean)

  • Run git fetch origin to retrieve remote updates

  • Display unpushed commits with git log origin/main..HEAD --oneline

  1. Pre-Sync Validation

Critical Check:

  • Ensure working directory is clean with no uncommitted changes

  • If there are uncommitted changes, ask user to commit or stash them first

  • Do NOT proceed with rebase if working directory is not clean

  1. Synchronization Process

Execute the rebase:

git rebase origin/main

If conflicts occur:

  • Display the conflicting files

  • Guide user to resolve conflicts manually

  • After resolution, continue with git rebase --continue

  1. Post-Sync Actions

After successful rebase:

  • Display the rebased commit history

  • Inform the user to run /publish to push the rebased changes

Conflict Resolution Flow

If conflicts occur during rebase:

  • Show conflicting files with git status

  • User resolves conflicts in their editor

  • Stage resolved files with git add <files>

  • Continue rebase with git rebase --continue

  • Repeat until rebase completes

If rebase fails or conflicts are too complex, user can abort with git rebase --abort .

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

resolve-comments

No summary provided by upstream source.

Repository SourceNeeds Review
General

fixup

No summary provided by upstream source.

Repository SourceNeeds Review
General

lint-doc

No summary provided by upstream source.

Repository SourceNeeds Review