gsd-remove-workspace

Remove GSD workspaces and clean up member repository worktrees.

1|Updated Aug 17, 2025
One-click install
npx skills add https://github.com/DuySeu/StockMind --skill gsd-remove-workspace-duyseu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsd-remove-workspace
Source: https://github.com/DuySeu/StockMind/tree/main/.agent/skills/gsd-remove-workspace
Command: npx skills add https://github.com/DuySeu/StockMind --skill gsd-remove-workspace-duyseu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remove a GSD workspace and clean up worktrees, ensuring a safe and tidy development environment after a workspace is no longer needed.

Core Features & Use Cases

  • Remove a specified GSD workspace and its associated worktrees, ensuring all member repositories are properly cleaned up.
  • For each member repo, perform the git worktree remove operation and verify there are no uncommitted changes before removal.
  • Ideal for developers who manage multiple worktrees and need a safe, repeatable cleanup workflow.

Quick Start

Provide the workspace name to remove to start the automated workspace removal process.

Frequently Asked Questions about gsd-remove-workspace

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

FAQPage Schema
How do I safely remove a git worktree workspace?

To safely remove a git worktree workspace, you must target each member repository individually and refuse removal if any repo has uncommitted changes. This ensures a safe, end-to-end workflow by verifying clean state before deletion.

What happens if I try to remove a workspace with uncommitted changes?

If you attempt to remove a workspace with uncommitted changes in any member repository, the process refuses removal. This constraint prevents data loss by enforcing a clean working directory before executing git worktree remove operations.

How does the workspace removal process verify it is safe to delete worktrees?

The workspace removal process verifies safety by requiring user confirmation before destructive actions and delegating execution to a defined remove-workspace process. It checks each member repo for uncommitted changes to ensure a tidy environment.

Can I automate the cleanup of multiple git worktrees at once?

You can automate the cleanup of multiple git worktrees by targeting a specified GSD workspace. The automated process iterates through member repositories, performing git worktree remove for each one to ensure proper cleanup.

What is the best way to clean up worktrees after a project ends?

The best way to clean up worktrees after a project ends is using an automated workflow that targets the specified workspace. It ensures all member repositories are properly cleaned up by running git worktree remove and requiring confirmation before acting.