mine.worktree-rebase

Detect non-default parent branches and rebase Git worktrees onto them.

1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/NodeJSmith/Claudefiles --skill mine-worktree-rebase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mine.worktree-rebase
Source: https://github.com/NodeJSmith/Claudefiles/tree/main/skills/mine.worktree-rebase
Command: npx skills add https://github.com/NodeJSmith/Claudefiles --skill mine-worktree-rebase

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps maintain synchronization between a Git worktree and its parent repository's branch, preventing divergence and simplifying the rebase process.

Core Features & Use Cases

  • Worktree Synchronization: Detects if the parent repository is on a different branch than the default and offers to rebase the current worktree.
  • Conflict Management: Guides the user through rebase conflicts if they arise, providing options to continue or abort.
  • Use Case: After creating a new Git worktree for a feature, you can run this skill to ensure it's based on the latest changes in the main development branch before you start coding.

Quick Start

Run this skill immediately after entering a new Git worktree to check if a rebase is needed.

Frequently Asked Questions about mine.worktree-rebase

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

FAQPage Schema
How do I rebase a git worktree onto its parent branch?

To rebase a git worktree, this skill validates the worktree status, identifies if the parent repository is on a non-default branch, and prompts you to confirm before executing `git rebase --onto`.

What happens if there are rebase conflicts in a git worktree?

When rebase conflicts occur in a git worktree, the skill pauses the operation and instructs you to manually resolve the conflicts, providing options to either continue or abort the rebase process.

When should I synchronize my git worktree with the parent repository?

You should synchronize your git worktree immediately after entering it to ensure it is based on the latest changes in the main development branch before you start coding, preventing branch divergence.

Can I use this to rebase a worktree onto a non-default branch?

Yes, the skill specifically detects if the parent repository is on a non-default branch and offers to rebase the current worktree onto that specific branch.

Does git rebase --onto work for worktree synchronization?

Yes, git rebase --onto is used by this skill to maintain synchronization between a worktree and its parent repository's branch, simplifying the process and preventing divergence.