npx claudepluginhub signalcompose/claude-tools --plugin x-article## Step 1: ワークスペースの確認 `.x-article/` ディレクトリの内容を一覧表示する。 ディレクトリが存在しない、または空の場合は「クリーンアップ対象のファイルはありません」と報告して終了する。 ## Step 2: ユーザーへの確認 一覧を表示した後、以下のメッセージでユーザーに確認を求める: ユーザーが「no」または「キャンセル」と答えた場合は処理を中止する。 ## Step 3: ゴミ箱に移動 ユーザーが確認した場合、`trash` コマンドの有無を確認してから実行する。 `trash` が利用できない場合は Finder で開く案内を行い、**Claude 自身は削除を実行しない**。 ## Step 4: 完了報告
/cleanupCleans up code and project structure by removing dead code, optimizing imports/files, with analysis, safe execution, validation, and summary report. Supports target path and --type, --safe, --interactive flags.
/cleanupDetects and safely removes dead code, unused imports/exports, unreachable branches, and dependencies in JS/TS, Python, Go, Rust. Outputs categorized findings with confidence; runs tests post-removal.
/cleanupCleans .a5c/runs and .a5c/processes: aggregates insights from old completed/failed runs into docs/run-history-insights.md and removes them plus orphans. Supports --dry-run and --keep-days N flags.
/cleanupRemoves temporary design lab files from .claude-design/ directory and Next.js/Vite preview routes after user confirmation. Reports deletions.
/cleanupDeletes all Lisa interview state files (.claude/lisa-*.md and lisa-draft.md) to reset plugin state. Lists files first, confirms deletion, skips completed specs.
/cleanupSurveys and safely cleans up abandoned CAT worktrees, task locks, orphaned branches, and stale remotes after user confirmation and uncommitted change checks.
.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 を実行すると自動的に再作成されます。