← Back to list

workspace-cleanup
by onbjerg
dotfiles
⭐ 4🍴 1📅 Jan 19, 2026
SKILL.md
name: workspace-cleanup description: Cleans up stale jj workspaces based on age or pushed bookmarks. Use when asked to clean, prune, or remove old jj workspaces.
Workspace Cleanup
Removes stale jj workspaces (older than 7 days OR all bookmarks pushed).
Step 1: List Stale Workspaces
python3 scripts/list_stale.py <cwd>
# Returns JSON: [{"name": "...", "path": "...", "age_days": N, "reason": "age|pushed"}]
Exit codes: 0 = success, 2 = cannot determine workspace root
Step 2: Present & Confirm
Show table (Workspace | Age | Reason), then ask user which to delete:
- "all"/"yes" → delete all
- Specific names → delete those
- "none"/"no" → cancel
Step 3: Delete
python3 scripts/delete.py <main-repo-cwd> <workspace-name> <workspace-path>
Forgets workspace from jj, removes directory, cleans empty parents.
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon