一键导入
workspace-prune
Delete workspaces not modified within N days
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Delete workspaces not modified within N days
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | workspace-prune |
| description | Delete workspaces not modified within N days |
This skill identifies workspaces that have not been modified within a specified number of days and allows batch deletion after user confirmation.
Paths: Use relative paths from project root (see CLAUDE.md for details).
Run the script to find stale workspaces:
./.claude/skills/workspace-prune/scripts/list-stale-workspaces.sh [days]
Default threshold is 7 days. The user can specify a different threshold (e.g., /workspace-prune 14 for 14 days).
Show the list of stale workspaces:
workspace/feature-old-task-20260110/ (2026-01-10)
workspace/bugfix-issue-20260115/ (2026-01-15)
Use AskUserQuestion to confirm:
For each workspace to delete, run:
./.claude/skills/workspace-delete/scripts/workspace-delete.sh {workspace-name}
Show a summary of deleted workspaces.
Detect and suggest blocked tool commands from recent sessions
Use when the user wants to start working on a task, ticket, or feature. Triggered by: ticket URLs (Jira, GitHub Issues, Linear, etc.), task descriptions, or requests like 'work on this', 'implement X', 'fix X', 'これをすすめて', 'これやって'. IMPORTANT: Before creating a new workspace, ALWAYS run /workspace-list first to check if a workspace already exists for the same ticket/task. If one exists, use /workspace-execute or /workspace-show-status instead. Creates workspace with README, clones repos, and plans TODO items via agents.
Add, remove, or modify TODO items
Review code changes and generate review reports
Create or update pull requests for all repositories (draft by default)
Continue working on an existing workspace by executing TODO items. Implements code, runs tests, makes commits. Use when the user wants to resume or continue work on a previously initialized workspace, or after /workspace-init completes.