robzolkos

done

1
0
# Install this skill:
npx skills add robzolkos/zolkos-agent-skills --skill "done"

Install specific skill from multi-skill repository

# Description

Reset the working directory for the next task by ensuring no uncommitted changes exist, then switching to the main branch and pulling latest.

# SKILL.md


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 *)


Done - Reset for next task

You are finishing up the current work and resetting the repo to be ready for the next task.

Steps

  1. Check for uncommitted changes: Run git status --porcelain. If there is ANY output (staged, unstaged, or untracked files), stop immediately and tell the user:
  2. List the uncommitted/untracked files
  3. Tell them to commit or stash their changes before running /done
  4. Do NOT proceed to the next steps

  5. Determine 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.

  6. Switch to the default branch: Run git checkout <branch> where <branch> is the branch determined in step 2.

  7. Pull latest changes: Run git pull to fetch and merge the latest changes from the remote.

  8. Confirm: Tell the user they are now on the default branch with the latest changes and ready to start the next task.

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.