How this command is triggered — by the user, by Claude, or both
Slash command
/x-article:cleanupThe summary Claude sees in its command listing — used to decide when to auto-load this command
## Step 1: ワークスペースの確認 `.x-article/` ディレクトリの内容を一覧表示する。 ディレクトリが存在しない、または空の場合は「クリーンアップ対象のファイルはありません」と報告して終了する。 ## Step 2: ユーザーへの確認 一覧を表示した後、以下のメッセージでユーザーに確認を求める: ユーザーが「no」または「キャンセル」と答えた場合は処理を中止する。 ## Step 3: ゴミ箱に移動 ユーザーが確認した場合、`trash` コマンドの有無を確認してから実行する。 `trash` が利用できない場合は Finder で開く案内を行い、**Claude 自身は削除を実行しない**。 ## Step 4: 完了報告
.x-article/ ディレクトリの内容を一覧表示する。
ls -lh .x-article/ 2>/dev/null || echo ".x-article/ ディレクトリが存在しません"
ディレクトリが存在しない、または空の場合は「クリーンアップ対象のファイルはありません」と報告して終了する。
一覧を表示した後、以下のメッセージでユーザーに確認を求める:
以下のファイルをゴミ箱に移動します:
(ファイル一覧)
よろしいですか?(yes/no)
ユーザーが「no」または「キャンセル」と答えた場合は処理を中止する。
ユーザーが確認した場合、trash コマンドの有無を確認してから実行する。
trash が利用できない場合は Finder で開く案内を行い、Claude 自身は削除を実行しない。
if command -v trash &>/dev/null; then
trash .x-article/
else
echo "trash コマンドが見つかりません。以下のいずれかを実行してください:"
echo " 1. brew install trash && trash .x-article/"
echo " 2. Finder で手動削除: open .x-article/"
fi
.x-article/ をゴミ箱に移動しました。
次回 /x-article:draft を実行すると自動的に再作成されます。
npx claudepluginhub signalcompose/claude-tools --plugin x-article/workspace-prune-workingCleans .aiwg/working/ directory: classifies files to promote valuable ones to main docs, archive preservable content, delete temporaries. Supports --dry-run, --interactive, bulk flags.
/cleanupRemoves temporary design lab files from .claude-design/ directory and Next.js/Vite preview routes after user confirmation. Reports deletions.
/cleanupCleans old log files from workflows, commands, audio, Figma, JIRA, and plugins older than specified days (default 30). Supports --dry-run preview.
/cleanRemoves old sprint directories in .claude/sprint/ after listing, user confirmation, git safety checks, and optional archiving. Supports --all, --keep-latest, --keep N quick flags.
/grok-filesLists, prunes, or garbage-collects Grok (xAI) uploaded files tagged with the deliberation bridge prefix. Also supports dry-run prune and local cache sync.
/council-cleanupRemoves the .council/ working directory and temporary files from LLM Council sessions. Idempotent and safe to run multiple times.