| name | workspace-delete |
| description | Delete a workspace (with confirmation) |
workspace-delete
Overview
This skill safely deletes a workspace by first showing its status and confirming with the user. It ensures the user is aware of any incomplete work before deletion.
Paths: Use relative paths from project root (see CLAUDE.md for details).
Steps
1. Workspace
Required: User must specify the workspace.
- If workspace is not specified, abort with message:
Please specify a workspace. Example: /workspace-delete workspace/feature-user-auth-20260116
- Workspace format:
workspace/{workspace-name} or just {workspace-name}
2. Check Workspace Status
Run the script to gather workspace status:
.claude/skills/workspace-delete/scripts/check-workspace-status.sh {workspace-name}
The script outputs:
- Last activity date and file
- TODO status (completed/incomplete counts per file)
- List of incomplete items
3. Read Workspace Overview
Read the README.md to understand the workspace context:
cat workspace/{workspace-name}/README.md
4. Display Status to User
Refer to .claude/skills/workspace-delete/templates/workspace-status.md for the format.
Fill in the placeholders with the collected information.
If there are incomplete TODO items, include a warning:
⚠️ **Warning**: This workspace has {count} incomplete TODO items.
Deleting this workspace will lose track of this pending work.