agent-workspace-clean
CommunitySafely remove agent workspaces with guardrails.
Authorsamuerio
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Safely remove the current git worktree only when it is inside the agent workspace under <repo>/.worktree/*. This prevents accidental deletions of unrelated worktrees and helps maintain a clean development environment.
Core Features & Use Cases
- Deterministic removal of the current agent worktree using the bundled clean_workspace.sh script.
- Safety checks ensure the operation only runs inside the agent workspace path and respects the --force flag when explicitly requested.
- Provides structured results, including a success message, the workspace path, and a summary of any leftovers for follow-up review.
Quick Start
Run the clean script for the agent workspace to remove the current worktree.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: agent-workspace-clean Download link: https://github.com/samuerio/.dotfiles/archive/main.zip#agent-workspace-clean Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.