dev-reset-workspace

Reset a repository workspace to clean main with phase-by-phase checks.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill dev-reset-workspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-reset-workspace
Source: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/tree/main/.claude/skills/dev-reset-workspace
Command: npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill dev-reset-workspace

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Resetting a development workspace to a clean main prevents stale branches, uncommitted changes, and lingering background tasks from affecting new work.

Core Features & Use Cases

  • Phase-driven workflow that stops background agents, analyzes uncommitted changes, switches to main, prunes merged branches, and cleans up worktrees.
  • Safe prompts and safeguards that confirm destructive actions, stashing or reporting uncommitted work instead of deleting it.
  • Designed for PR-driven development cycles, ensuring a reproducible starting point before starting new work.

Quick Start

Run the dev-reset-workspace process to initialize a clean working state and follow prompts to confirm destructive actions when needed.

Frequently Asked Questions about dev-reset-workspace

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

FAQPage Schema
How do I reset my git workspace to a clean main branch?

To reset your git workspace to a clean main, this process removes stale branches, uncommitted changes, and lingering background tasks. It enforces phase-by-phase checks and prompts you to confirm destructive actions before proceeding.

What is the best way to clean up stale branches and uncommitted changes before a new PR?

The best way to clean up stale branches and uncommitted changes is a phase-driven workflow that stops background agents, switches to main, and prunes merged branches. It safely stashes uncommitted work instead of deleting it.

Does resetting a repository workspace delete my uncommitted work?

Resetting a repository workspace does not delete your uncommitted work. The workflow applies safe prompts and safeguards that stash or report uncommitted changes when appropriate, ensuring you do not lose data during the cleanup process.

How do I prune merged branches and clean up worktrees in git?

To prune merged branches and clean up worktrees, run a phase-driven workspace reset workflow that switches to main, removes stale branches, and cleans up lingering worktrees. It verifies a clean state before completion to ensure a fresh starting point.

When should I use a workspace reset workflow in my development cycle?

You should use a workspace reset workflow at the start of new development cycles and PR workflows to ensure a reproducible fresh starting point. It removes lingering background tasks and stale branches that could otherwise affect new work.