done

Reset a Git repository to a clean state by checking for uncommitted changes, switching to the default branch, and pulling latest updates.

3|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/robzolkos/zolkos-agent-skills --skill done-robzolkos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: done
Source: https://github.com/robzolkos/zolkos-agent-skills/tree/main/skills/done
Command: npx skills add https://github.com/robzolkos/zolkos-agent-skills --skill done-robzolkos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reset the repository to a clean state between tasks by ensuring there are no uncommitted changes, then switching to the default branch (master or main) and pulling the latest changes.

Core Features & Use Cases

  • Detects uncommitted changes and prompts to commit or stash before proceeding.
  • Determines the default branch (master or main) and switches to it.
  • Pulls the latest changes to ensure the working copy is up to date.

Quick Start

Reset the repository to a clean state before starting the next task.

Frequently Asked Questions about done

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reset my git repository to a clean state between tasks?

Resetting a git repository to a clean state involves detecting uncommitted changes, prompting to commit or stash them, checking out the default branch, and pulling the latest updates. This workflow prevents leftover code from affecting your next task.

How does branch detection work when switching to the default branch?

Branch detection works by automatically identifying whether the repository uses master or main as its default branch. Once detected, the workflow checks out that branch to ensure you are operating on the correct primary codebase line.

What happens if I have uncommitted changes when resetting the workspace?

If uncommitted changes exist when resetting the workspace, the workflow detects them and prompts you to either commit or stash them. This prevents accidental data loss before switching branches and pulling new updates.

Can I automate workspace cleanup for multi-task development sessions?

You can automate workspace cleanup for multi-task development sessions by running a workflow that verifies the working tree, checks out the default branch, and pulls recent changes. This standardizes repository hygiene across consecutive tasks.

Does this git workflow support both main and master branch defaults?

Yes, this git workflow supports both main and master branch defaults through its branch detection feature. It automatically determines which default branch your repository uses and switches to it accordingly.