Delete a workspace after confirming with the user
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).
Required: User must specify the workspace.
Please specify a workspace. Example:
/workspace-delete workspace/feature-user-auth-20260116
workspace/{workspace-name} or just {workspace-name}Run the script to gather workspace status:
.claude/skills/workspace-delete/scripts/check-workspace-status.sh {workspace-name}
The script outputs:
Read the README.md to understand the workspace context:
cat workspace/{workspace-name}/README.md
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.
Ask the user for confirmation using the AskUserQuestion tool:
If the user confirms, run the deletion script:
.claude/skills/workspace-delete/scripts/workspace-delete.sh {workspace-name}
The script:
Report the result to the user.
Refer to .claude/skills/workspace-delete/templates/deletion-confirmed.md for the format.
User: Delete workspace feature-user-auth-20260116
Assistant: Let me check the workspace status first...
## Workspace Status
**Workspace**: feature-user-auth-20260116
**Last Activity**: 2026-01-16 15:30:00
### Overview
Task: Implement user authentication
Created: 2026-01-16
### TODO Status
#### TODO-auth-service.md
- Completed: 5
- Incomplete: 2
- [ ] Add rate limiting
- [ ] Write integration tests
ā ļø **Warning**: This workspace has 2 incomplete TODO items.
Are you sure you want to delete this workspace?
User: Yes, delete it
Assistant: [Deletes workspace and confirms]