From personal
Reset current worktree to origin/main. Cleans stale branches, resets to main, and runs npm install on all worktrees.
How this skill is triggered — by the user, by Claude, or both
Slash command
/personal:mThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Perform the following steps to reset the current worktree branch to origin/main:
Perform the following steps to reset the current worktree branch to origin/main:
Kill any active background job
Check for uncommitted changes: Run git status to see if there are any staged or unstaged changes. If there are uncommitted changes, stop and inform the user - they need to commit or stash these changes first.
Check for untracked files: Run git status to list any untracked files. If untracked files exist:
Run git clean: If the user confirms cleanup (or if all untracked files are clearly throwaway), run git clean -df from the root of the repository to remove untracked files and directories.
Reset state: Run the m.sh script located next to this SKILL.md file:
bash "$(find ~/.claude -path '*/personal/skills/m/m.sh' 2>/dev/null | head -1)"
Report the final status to the user when complete.
npx claudepluginhub p/pedropaulovc-personal-plugins-personalManually removes Git worktrees for development tracks with safety checks for uncommitted changes and unpushed commits. Optionally deletes merged branches; use when auto-cleanup fails.
Creates isolated git worktrees for branch work, auto-installs dependencies, verifies baselines, and handles branch finishing with clean isolation.
Removes a git worktree and its branch after work completes, with automatic harvest of docs/ artifacts before teardown. Useful after PR merge, sub-scope consolidation, or manual cleanup.