Skip to content
Development
Command

/sync-branch

Sync feature branch with the latest main branch.

From plugin
claude-code-skill-factory
86320 skills5 agents20 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/sync-branch

Context preview

What this command does when you run it.

Sync feature branch with the latest main branch.

Command definition

sync-branch.md
description: Sync feature branch with the latest main branch.
argument-hint: [target]

1. Fetch latest upstream refs: `git fetch origin --prune`. 2. Identify target branch (default `main`, or override via argument). 3. Rebase current branch onto target:

   git rebase origin/${target:-main}

4. Resolve any conflicts, rerun `/review` and `/security-scan` afterwards. 5. Force-with-lease push to update the PR:

   git push --force-with-lease origin $(git branch --show-current)
Ships withclaude-code-skill-factory

A comprehensive toolkit for generating production-ready Claude Skills and Claude Code Agents at scale.

Get the whole plugin
Stats
866
Stars
176
Forks
Quiet
Maintenance
Python
Language
MIT
License
10mo ago
Last commit
10mo ago
Created

Repo: alirezarezvani/claude-code-skill-factory

Other commands on claude-code-skill-factory.