con un clic
done
// Reset the working directory for the next task by ensuring no uncommitted changes exist, then switching to the main branch and pulling latest.
// Reset the working directory for the next task by ensuring no uncommitted changes exist, then switching to the main branch and pulling latest.
| name | done |
| description | Reset the working directory for the next task by ensuring no uncommitted changes exist, then switching to the main branch and pulling latest. |
| disable-model-invocation | true |
| allowed-tools | Bash(git *) |
You are finishing up the current work and resetting the repo to be ready for the next task.
Check for uncommitted changes: Run git status --porcelain. If there is ANY output (staged, unstaged, or untracked files), stop immediately and tell the user:
/doneDetermine the default branch: Run git branch --list master main to check which exists. Prefer master if it exists, otherwise use main. If neither exists, tell the user that no master or main branch was found and stop.
Switch to the default branch: Run git checkout <branch> where <branch> is the branch determined in step 2.
Pull latest changes: Run git pull to fetch and merge the latest changes from the remote.
Confirm: Tell the user they are now on the default branch with the latest changes and ready to start the next task.
Commit, run bin/ci, and open a PR if CI passes. Use when ready to ship changes.
Quick user-centric interview to capture requirements from a time-poor stakeholder.
Convert feature requirements into structured end-to-end test cases as JSON.
Interview me about the plan
Catch up on codebase changes by reviewing the diff from master and reading relevant spec files.
Prime yourself on a codebase by listing files and reading the README.