claude-skills/

Anthropic公式スキル・プラグインの日本語ディレクトリ

last sync 22h ago
スキルKnowledge Workproductivity

🏥computer-health-check

プラグイン
desktop-commander

説明

ユーザーのコンピューターに対して包括的かつ読み取り専用のヘルスチェックを実行し、スコア付きのチャットサマリーと優先順位付きの平易な英語の推奨事項および安全なクリーンアップ提案を返します。 **次のような場合に使用:** - ユーザーがコンピューターのヘルスチェック、高速化、ディスク空き容量の確保、CPU/メモリ/ストレージ使用量の調査、バッテリーの健康状態と経年劣化の確認、ログイン・スタートアップアイテムの監査、保留中の更新プログラムの確認を求める場合 - 「tune-up」「checkup」「system report」「health check」「自分のMac/PC/ラップトップは健康か」といった専門用語を使用する場合 - 「ラップトップが遅く感じる」「ファンの音がうるさい」「コンピューターがカクカクしている」「ディスク容量がなくなる」「マシンをクリーンアップしてほしい」といったカジュアルな言い回しを使用する場合 macOS、Windows、Linuxで動作します。本スキルはDesktop Commanderに分類されます。実ローカルシェル(start_process/interact_with_process)に依存しており、デフォルトでは厳密に読み取り専用です。sudoを必要とせず、ユーザーが明示的に承認したクリーンアップのみを実行します。

原文を表示

Run a comprehensive, read-only health check on the user's computer and return a scored chat summary with prioritized, plain-English recommendations and safe cleanup suggestions. Use this whenever the user wants to check their computer's health, speed it up, free up / reclaim disk space, find what's eating CPU / memory / storage, check battery health and wear, audit login & startup items, see pending updates, or asks for a "tune-up", "checkup", "system report", "health check", or "is my Mac/PC/laptop healthy". Trigger even on casual phrasing like "my laptop feels slow", "why is my fan so loud", "my computer is laggy", "running out of space", or "clean up my machine". Works on macOS, Windows, and Linux. This is a Desktop Commander skill: it relies on a real local shell (start_process / interact_with_process) and is strictly read-only by default — it never needs sudo and only performs cleanups the user explicitly approves.

ユースケース

  • コンピューターの健康状態をチェックしたい
  • システムの高速化方法を知りたい
  • ディスク空き容量を確保したい
  • CPU/メモリ/ストレージ使用量を調査したい
  • バッテリーの健康状態を確認したい
  • ログイン・スタートアップアイテムを監査したい

本文(日本語訳)

コンピュータ ヘルス チェック

このskillが行うこと

ユーザーのコンピュータの健康状態について、迅速で信頼性の高い全体像と実施する価値のある行動の短いリストを提供します。優れたテクニシャンのように:まず観察し、明確に説明し、許可を得てからのみ対応します。

Desktop Commanderのローカルシェルを通じて完全に実行され、読み取り専用の診断情報をまとめて収集し、各領域をスコア化し、簡潔なサマリーをチャットに出力してから、ユーザーが一つずつ承認できるクリーンアップ提案を提示します。

セーフティ契約(まず読んでください)

ユーザーがこのskillを信頼する理由になる部分なので、厳密に守ってください:

  • デフォルトでは読み取り専用。 収集フェーズは(サイズ、カウント、ステータスを)観察するだけで、何も変更しません。
  • sudoや昇格は決して使用しない。 Desktop Commanderがsudoshutdownrebootddmountmkfsdiskpartなどをブロックするのは正当な理由があります。以下のチェックはすべて昇格なしで動作するよう設計されています。何かが昇格を必要とするように見える場合は、スキップしてその旨を伝えてください。ブロックを回避しようとしないでください。
  • クリーンアップはオプトイン。 クリーンアップを自由に提案できますが、ユーザーが特定のアクションを明示的に承認した後、かつその正確なコマンドを最初に表示した場合のみ実行してください。
  • 可逆的で破壊的でないアクションを優先。 再生成されるキャッシュのクリア、パッケージマネージャーのダウンロードキャッシュ削除、ごみ箱の空化は提案しても問題ありません。ユーザードキュメントの削除、アプリのアンインストール、システムファイルの編集は提案のみとし、ユーザーに実行させてください。

ワークフロー

ステップ 1 — OSの検出

他の操作を行う前に、プラットフォームを判定してください。コマンドが異なるためです。

  • 最速:Desktop Commanderの設定(get_config)を読み込み、systemInfo.isMacOS / isWindows / isLinuxブール値(またはplatformName)を使ってプラットフォームを選択します。
  • またはunameを実行(macOS/Linux)。失敗した場合はWindowsと想定してください。

その後、対応するリファレンスファイルを開き、そのコマンドセットを使用します:

  • macOS → references/macos.md
  • Windows → references/windows.md
  • Linux → references/linux.md

一致するファイルのみを読んでください。各ファイルには、単一のバッチ収集スクリプト、解釈ノート、クリーンアップコマンドが含まれています。

ステップ 2 — 収集(読み取り専用)

start_processでリファレンスファイルのバッチ収集スクリプトを実行します。すべてを1つの呼び出しにまとめることで、多くの小さな呼び出しより格段に高速で、出力が整然としています。

ガイダンス:

  • 出力を制限してください(headSelect-Object -Firstなど)。プロセスリストやファイルリストが長すぎて応答を圧倒しないようにします。
  • 最初のパスでは、ユーザーが更新やネットワークについて質問した場合を除き、本当に遅いネットワークチェック(完全なOS更新リスト、インターネット速度テスト)はスキップしてください。利用可能なことを記載してください。
  • 単一のコマンドがエラーになった場合(例:ツールがインストールされていない場合)は続行してください。部分的なデータで問題ありません。

ステップ 3 — 各領域をスコア化

各カテゴリを以下のルーブリックに基づいて🟢良好 / 🟡注意 / 🔴対応の3段階で評価し、シンプルな総合スコアを計算します。100から開始し、🟡ごとに8を、🔴ごとに18を減算します。最低は0です。数値と1語の評価を報告してください(90以上:優秀、75~89:良好、60~74:標準、60未満:対応が必要)。

領域 🟢良好 🟡注意 🔴対応
空き容量 >20% 10~20% <10%
ディスク健康性(SMART) 確認済み / OK / 合格 故障 / 非対応且つエラーあり
メモリ圧力 スワップ低、空きページ正常 スワップ/圧縮が顕著 大量スワップ、ほぼゼロの空き
バッテリー(ノートパソコン) ≥80%最大容量、正常 70~80% <70%または「サービス/交換」
メンテナンス 稼働時間<7日、待機中の更新なし 稼働時間7~30日または軽微な更新 稼働時間>30日またはセキュリティ更新待ち
スタートアップ負荷 サードパーティログイン項目が少ない 中程度 多くの重いサードパーティエージェント
リソースホッグ(現在) アイドル時に>50%はなし 持続的な重いプロセス1つ 複数/暴走プロセス

バッテリーはノートパソコンのみ対象。デスクトップ/VMではスキップしてください。回収可能な領域は情報数値として報告されます。スコアリング対象ではありません。

ステップ 4 — チャットでレポートする

この正確な構造を使用してください。スキャン可能でコンパクトに保ってください。これが最終成果物です。

🖥️  ヘルス チェック — <モデル>, <OS バージョン>     スコア: <N>/100 (<評価>)

🟢/🟡/🔴  ストレージ    — <合計>のうち<空き> (<%>)。回収可能:約<X> GB
🟢/🟡/🔴  メモリ       — <1行の状態>
🟢/🟡/🔴  バッテリー    — <サイクル数>サイクル、<最大容量>%、<条件>
🟢/🟡/🔴  メンテナンス  — <日数>日間稼働、<更新状態>
🟢/🟡/🔴  スタートアップ — <個数>ログイン項目(<注目すべきもの>)
🟢/🟡/🔴  現在          — トップ:<プロセス> <CPU%>、<プロセス> <CPU%>

トップ推奨事項
1. <最高影響度アクション>(<予想効果、例:約13 GBを解放>)
2. <次>
3. <次>

最大3~5個の最高影響度推奨事項を、効果順に記載してください。すべての知見をダンプしないでください。目標は信号であり、テキストの壁ではありません。

ステップ 5 — クリーンアップを提案し、承認後のみ実行

具体的なコマンドにマップされる各推奨事項(リファレンスファイルの「クリーンアップ」セクションを参照)について、提案し正確なコマンドを表示します。その後:

  • 安全で可逆的(承認時に実行):ごみ箱の空化、パッケージマネージャーキャッシュクリーンアップ(brew cleanupnpm cache clean)、再生成されるユーザーキャッシュフォルダのクリア。(Linux上ではapt-get clean / dnf cleanはrootが必要。提案のみで自動実行しないでください。)
  • ユーザーが判断/実行する必要がある(提案のみで自動実行しない):ログイン項目の無効化、OS更新のインストール(再起動が必要)、アプリのアンインストール、Downloadsのファイル削除。
  • 決してしない:sudo/admin権限が必要なもの、システムファイルの削除、ディスク/パーティション操作。

ユーザーが安全なアクションを承認したら実行し、何が変わったかを報告してください(例:解放された容量)。その後ステップ2のストレージチェックを再実行すると、良い確認になります。

推奨ルール(知見→アドバイス)

高価値マッピング。プラットフォームに合わせて表現を適応させてください。

  • 稼働時間 > 30日 → 「コンピュータを再起動してください。<N>日間稼働しています。再起動はメモリをクリアし、待機中の更新を適用します。」(最高ROI、最小努力。)
  • 待機中のOS/セキュリティ更新 → プラットフォーム更新ステップ。セキュリティ更新をより高優先度としてフラグします。
  • 空き容量 < 15% → 測定した最大の回収可能バケットで始めます。
  • 大きなDownloads / キャッシュ / ごみ箱 → ごみ箱を空化、最大Downloadsアイテムを名前で確認、再生成されるキャッシュをクリア。
  • パッケージマネージャーに多くの古いアイテム/大きなキャッシュupgrade + キャッシュクリーンアップ。
  • バッテリー最大容量 < 80% → 消耗は正常であることを説明。実行時間に影響している場合はバッテリーサービスを検討するよう提案。
  • 多くのサードパーティスタートアップエージェント → 名前を付けてから、ユーザーが認識していない/不要なものを無効化するよう提案(システム設定/タスクマネージャーを指す。直接編集しないでください。)
  • アイドル時に高くピンポイントされたプロセス → 名前を付けて、終了/調査を提案。

注記と落とし穴

  • 推測しない。測定してください。 常にコマンドを実行して実数を報告してください。サイズ、サイクル数、ステータスを捏造しないでください。
  • 出力を制限。 プロセスとファイルリストは巨大になる可能性があります。常に上限を設定してください。
  • オプショナルな詳細チェック(記載し、リクエスト時に実行):インターネット速度テスト、完全な更新リスト、ホームディレクトリ全体の1フォルダあたりディスクスキャン、クラッシュレポート傾向分析。
  • プライバシー。 これはローカルシステムメタデータのみを読み込みます。マシンの外に何も送信しないでください。パブリックIPチェックはオプションであり、ラベルを付ける必要があります。
  • クロスプラットフォームパリティ。 3つのリファレンスファイルは同じカテゴリをミラーしているため、OSに関係なくレポートは同じ外観です。
原文(English)を表示

Computer Health Check

What this skill does

Give the user a fast, trustworthy picture of their computer's health and a short list of actions worth taking — the way a good technician would: look first, explain plainly, fix only with permission.

It runs entirely through Desktop Commander's local shell, gathers a batch of read-only diagnostics, scores each area, prints a concise summary in the chat, and then offers cleanup suggestions the user can approve one by one.

The safety contract (read this first)

This is the part that makes users trust the skill, so honor it strictly:

  • Read-only by default. The collection phase only observes (sizes, counts, status). It changes nothing.
  • Never use sudo or elevation. DC blocks sudo, shutdown, reboot, dd, mount, mkfs, diskpart, etc. for good reason. Every check below is designed to work without them. If something seems to need elevation, skip it and say so — don't try to work around the block.
  • Cleanups are opt-in. You may suggest cleanups freely, but only execute one after the user explicitly approves that specific action, and only show the exact command first.
  • Prefer reversible, non-destructive actions. Emptying caches that regenerate, clearing a package-manager download cache, or emptying Trash are fine to offer. Deleting user documents, uninstalling apps, or editing system files are not — suggest those, let the user do them.

Workflow

Step 1 — Detect the OS

Determine the platform before doing anything else, because the commands differ.

  • Quickest: read Desktop Commander's config (get_config) and use the systemInfo.isMacOS / isWindows / isLinux booleans (or platformName) to pick the platform.
  • Or run uname (macOS/Linux) — if it fails, assume Windows.

Then open the matching reference file and use its command set:

  • macOS → references/macos.md
  • Windows → references/windows.md
  • Linux → references/linux.md

Read only the one that matches. Each file contains a single batched collection script plus interpretation notes and cleanup commands.

Step 2 — Collect (read-only)

Run the batched collection script from the reference file with start_process. Batching everything into one call is much faster than many small calls and keeps the output tidy.

Guidance:

  • Keep outputs bounded (head, Select-Object -First, etc.) so a long process list or file listing doesn't flood the response.
  • Skip the genuinely slow / network checks (full OS-update list, internet speed test) on the first pass unless the user asked about updates or network. Mention they're available.
  • If a single command errors (e.g., a tool isn't installed), continue — partial data is fine.

Step 3 — Score each area

Rate each category 🟢 Good / 🟡 Watch / 🔴 Act using the rubric below, then compute a simple overall score. Start at 100 and subtract 8 per 🟡 and 18 per 🔴; floor at 0. Report the number and a one-word verdict (90+ Excellent, 75–89 Good, 60–74 Fair, <60 Needs attention).

Area 🟢 Good 🟡 Watch 🔴 Act
Free disk space >20% free 10–20% <10%
Disk health (SMART) Verified / OK / PASSED failing / not supported & errors present
Memory pressure low swap, free pages healthy noticeable swap/compression heavy swapping, near-zero free
Battery (laptops) ≥80% max capacity, Normal 70–80% <70% or "Service/Replace"
Maintenance uptime <7d, no pending updates uptime 7–30d or minor updates uptime >30d or security updates pending
Startup load few third-party login items moderate many heavy third-party agents
Live resource hogs nothing >50% at idle one sustained heavy process multiple / runaway processes

Battery is laptop-only — skip it on desktops/VMs. Reclaimable space is reported as an informational figure, not scored.

Step 4 — Report in the chat

Use this exact structure. Keep it tight and scannable — this is the deliverable.

🖥️  Health Check — <Model>, <OS version>     Score: <N>/100 (<verdict>)

🟢/🟡/🔴  Storage      — <free> free of <total> (<%>). Reclaimable: ~<X> GB
🟢/🟡/🔴  Memory       — <one-line state>
🟢/🟡/🔴  Battery      — <cycles> cycles, <max capacity>%, <condition>
🟢/🟡/🔴  Maintenance  — up <days>d, <updates state>
🟢/🟡/🔴  Startup      — <count> login items (<notable ones>)
🟢/🟡/🔴  Right now    — top: <proc> <cpu%>, <proc> <cpu%>

Top recommendations
1. <highest-impact action> (<expected benefit, e.g. frees ~13 GB>)
2. <next>
3. <next>

List at most the 3–5 highest-impact recommendations, ordered by benefit. Don't dump every finding — the goal is signal, not a wall of text.

Step 5 — Suggest cleanups, execute only on approval

For each recommendation that maps to a concrete command (see the reference file's "Cleanup" section), offer it and show the exact command. Then:

  • Safe, reversible (offer to run on a yes): empty Trash, package-manager cache cleanup (brew cleanup, npm cache clean), clearing a regenerating user cache folder. (On Linux, apt-get clean / dnf clean need root — suggest, don't auto-run.)
  • Needs the user to decide / act (suggest, don't auto-run): disabling login items, installing OS updates (requires restart), uninstalling apps, deleting files in Downloads.
  • Never: anything requiring sudo/admin, removing system files, disk/partition operations.

When the user approves a safe action, run it, then report what changed (e.g., space freed). Re-running Step 2's storage check afterward is a nice confirmation.

Recommendation rules (findings → advice)

These are the high-value mappings; adapt the wording to the platform.

  • Uptime > 30 days → "Restart your computer — it's been up <N> days. A reboot clears memory and applies pending updates." (Highest ROI, lowest effort.)
  • Pending OS/security updates → platform update step; flag security updates as higher priority.
  • Free space < 15% → lead with the biggest reclaimable buckets you measured.
  • Large Downloads / Caches / Trash → empty Trash; review largest Downloads items by name; clear caches that regenerate.
  • Package manager has many outdated items / big cacheupgrade + cache cleanup.
  • Battery max capacity < 80% → explain wear is normal; consider a battery service if it's affecting runtime.
  • Many third-party startup agents → name them and suggest disabling the ones the user doesn't recognize/need (point to System Settings / Task Manager — don't edit them directly).
  • A process pinned high at idle → name it and suggest quitting/investigating.

Notes & pitfalls

  • Don't assume — measure. Always run the commands and report real numbers. Never fabricate sizes, cycle counts, or statuses.
  • Bounded output. Process and file listings can be huge; always cap them.
  • Optional deep checks (mention, run on request): internet speed test, full update list, per-folder disk scan of the whole home directory, crash-report trend analysis.
  • Privacy. This reads local system metadata only. Don't send anything off the machine; the public-IP check is optional and should be labeled.
  • Cross-platform parity. The three reference files mirror the same categories so the report looks the same regardless of OS.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。