skills/git-rebase-sync/SKILL.md
Use when syncing a feature branch onto the latest origin base branch via git rebase.
npx skillsauth add awfixers-stuff/opencode-config git-rebase-syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when you need to sync a feature branch onto the latest origin/{base_branch} via git rebase, including conflict resolution with explicit clarification questions when intent is ambiguous.
dev or main).git rebase ..., git push --force*), print the exact command(s) you will run and wait for my confirmation.git push --force-with-lease, never plain --force.git branch --show-currentgh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'git fetch origingit statusgit status indicates an in-progress merge/rebase/cherry-pick, stop and ask what to do (abort vs continue).HEAD:
git tag -a {branch_name}-rebase-backup-$(date +%Y%m%d-%H%M%S) -m "pre-rebase backup" HEAD{backup_ref} for recovery.git rev-list --count --merges origin/{base_branch}..HEAD--rebase-merges) or flatten them (plain rebase).git rebase origin/{base_branch}git rebase --rebase-merges origin/{base_branch}When conflicts happen:
git statusgit add <file...>git rebase --continueHelpful commands during conflicts:
git diffgit showgit rebase --abort (this is safe and should be preferred over destructive resets)git log --oneline --decorate origin/{base_branch}..HEADgit push --force-with-lease origin HEAD:{branch_name}{backup_ref} to restore the pre-rebase state.git reset --hard) unless I explicitly confirm after you show the exact command.development
Use when starting dev servers, watchers, tilt, or any process expected to outlive the conversation. Provides zmx session management patterns for long-lived processes.
development
Zig testing skill for writing and running tests. Use when using zig build test, writing comptime tests, using test filters, working with test allocators to detect leaks, or using Zig's built-in fuzz testing (0.14+). Activates on queries about Zig tests, zig test, zig build test, comptime testing, test allocators, Zig fuzz testing, or detecting memory leaks in Zig tests.
development
Zig debugging skill. Use when debugging Zig programs with GDB or LLDB, interpreting Zig runtime panics, using std.debug.print for tracing, configuring debug builds, or debugging Zig programs in VS Code. Activates on queries about debugging Zig, Zig panics, zig gdb, zig lldb, std.debug.print, Zig stack traces, or Zig error return traces.
tools
Zig cross-compilation skill. Use when cross-compiling Zig programs to different targets, using Zig's built-in cross-compilation for embedded, WASM, Windows, ARM, or using zig cc to cross-compile C code without a system cross-toolchain. Activates on queries about Zig cross-compilation, zig target triples, zig cc cross-compile, Zig embedded targets, or Zig WASM.