/engineering:next
/next — Reset Session to Start Fresh
Reset the working tree between tasks. Checks out a clean `dummy` branch rebased on latest `main` so the next task starts from a known good state. Use when user says "next", "start fresh", "reset for the next thing", or wants to clear out a finished branch before starting new work.
Resets the working tree to the `dummy` branch, rebased on latest `main`. Use this between tasks to start with a clean slate.
Full skill instructions
This is the same file the agent loads when the skill triggers. Source: plugins/engineering/skills/next/SKILL.md.
Instructions
When the user runs /next, execute the following steps:
Fetch latest main and switch to dummy:
git fetch origin mainThen switch to the
dummybranch. If it doesn't exist yet, create it:git switch dummy || git switch -c dummy origin/mainThen reset to latest main:
git reset --hard origin/mainThis works in worktrees where
mainis checked out by the parent tree. Thedummybranch exists solely as a parking branch for worktree sessions.Report the result:
- On success: Confirm the branch is ready and show the latest commit on
main - On conflict or error: Show what went wrong and ask the user how to proceed
- On success: Confirm the branch is ready and show the latest commit on
Prompt for next task: Ask the user what they'd like to work on next.