done
Original:🇺🇸 English
Translated
Reset the working directory for the next task by ensuring no uncommitted changes exist, then switching to the main branch and pulling latest.
1installs
Added on
NPX Install
npx skill4agent add robzolkos/zolkos-agent-skills doneTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Done - Reset for next task
You are finishing up the current work and resetting the repo to be ready for the next task.
Steps
-
Check for uncommitted changes: Run. If there is ANY output (staged, unstaged, or untracked files), stop immediately and tell the user:
git status --porcelain- List the uncommitted/untracked files
- Tell them to commit or stash their changes before running
/done - Do NOT proceed to the next steps
-
Determine the default branch: Runto check which exists. Prefer
git branch --list master mainif it exists, otherwise usemaster. If neither exists, tell the user that no master or main branch was found and stop.main -
Switch to the default branch: Runwhere
git checkout <branch>is the branch determined in step 2.<branch> -
Pull latest changes: Runto fetch and merge the latest changes from the remote.
git pull -
Confirm: Tell the user they are now on the default branch with the latest changes and ready to start the next task.