🏥computer-health-check
- プラグイン
- desktop-commander
- ソース
- GitHub で見る ↗
説明
ユーザーのコンピュータに対して包括的で読み取り専用のヘルスチェックを実行し、スコア付きのチャットサマリーと優先度付けされた平易な英語の推奨事項および安全なクリーンアップ提案を返す。 次のような場合に使用:ユーザーがコンピュータのヘルスチェック、高速化、ディスク領域の解放・回復、CPU/メモリ/ストレージの使用状況確認、バッテリーヘルスと劣化度の確認、ログイン項目とスタートアップ項目の監査、保留中の更新確認を希望する場合、または「tune-up」「checkup」「system report」「health check」といった用語で問い合わせがある場合。「ノートパソコンが遅い」「ファンの音がうるさい」「コンピュータが重い」「ストレージがなくなりそう」「マシンをクリーンアップしたい」といったカジュアルな表現でも自動的にトリガーされる。 macOS、Windows、Linux で動作する。これはDesktop Commander skillであり、実際のローカルシェル(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/メモリ/ストレージ使用状況を確認するとき
- ✓バッテリーヘルスと劣化度を調べるとき
- ✓スタートアップ項目を監査するとき
- ✓コンピュータの動作が遅いとき
本文(日本語訳)
コンピュータ ヘルスチェック
このスキルの機能
ユーザーのコンピュータの状態を迅速かつ信頼性高く把握し、実施すべき対応の簡潔なリストを提供します。優れた技術者のように:まず確認し、分かりやすく説明し、許可を得てからのみ修正します。
Desktop Commander のローカルシェル経由で完全に実行され、読み取り専用の診断をまとめて収集し、各領域をスコア化して、簡潔なサマリーをチャットに表示してから、ユーザーが個別に承認できるクリーンアップ提案を提供します。
セーフティ契約(先にお読みください)
ユーザーの信頼を獲得する重要な部分です。厳密に遵守してください:
- デフォルトは読み取り専用。 収集フェーズは(サイズ、個数、ステータスを)観察するだけで、何も変更しません。
sudoまたは昇格を使用しない。 Desktop Commander はsudo、shutdown、reboot、dd、mount、mkfs、diskpartなどをブロックしています。これは正当な理由によるものです。下記のすべてのチェックはこれらなしで動作するように設計されています。何かが昇格が必要に見える場合は、スキップしてその旨を述べてください。ブロックを回避しようとしないでください。- クリーンアップはオプトイン。 クリーンアップを自由に提案できますが、実行するのはユーザーが当該アクション を明示的に承認した後のみで、かつ実行前に正確なコマンドを表示してください。
- 可逆的で非破壊的なアクションを優先。 再生成されるキャッシュの削除、パッケージマネージャーのダウンロードキャッシュのクリア、ゴミ箱の空にしは提案しても問題ありません。ユーザードキュメントの削除、アプリのアンインストール、システムファイルの編集は提案のみにし、ユーザーに実行させてください。
ワークフロー
ステップ 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 回の呼び出しにまとめることで、多くの小さな呼び出しよりはるかに高速になり、出力も整理された状態で保たれます。
ガイダンス:
- 出力の量を制限してください(
head、Select-Object -Firstなど)。長いプロセスリストやファイル一覧が レスポンスを圧倒しないようにするためです。 - 最初のパスでは、本当に時間のかかるチェック(完全な OS 更新リスト、インターネット速度テスト)はスキップしてください。ただし、ユーザーが更新やネットワークについて質問した場合を除きます。利用可能な旨を記載してください。
- 単一のコマンドがエラーになった場合(例:ツールがインストールされていない)は続行してください。部分的なデータでも問題ありません。
ステップ 3 — 各領域をスコア化
下記のルーブリックを使用して各カテゴリを 🟢 良好 / 🟡 注視 / 🔴 対応 で評価し、シンプルな総合スコアを計算します。100 から開始し、🟡 あたり 8 ポイント、🔴 あたり 18 ポイントを差し引き、最小値は 0 です。数値と 1 語の評価(90 以上 優秀、75~89 良好、60~74 標準、60 未満 要注意)をレポートしてください。
| 領域 | 🟢 良好 | 🟡 注視 | 🔴 対応 |
|---|---|---|---|
| 空きディスク容量 | 20% 以上 | 10~20% | 10% 未満 |
| ディスク健全性(SMART) | 確認済み / OK / PASSED | — | 障害 / サポートされず&エラー発生 |
| メモリ圧力 | 低スワップ、空きページ健全 | 著しいスワップ/圧縮 | 激しいスワップ、ほぼゼロの空き容量 |
| バッテリー(ノートパソコン) | ≥80% 最大容量、正常 | 70~80% | <70% または「サービス/交換推奨」 |
| メンテナンス | 稼働時間 <7 日、保留中の更新なし | 稼働時間 7~30 日 または軽微な更新 | 稼働時間 >30 日 または セキュリティ更新保留中 |
| 起動負荷 | 少数の第三者ログイン項目 | 中程度 | 多数の重い第三者エージェント |
| ライブリソース消費 | アイドル時に 50% を超えるなし | 1 つの持続的な重いプロセス | 複数 / 暴走プロセス |
バッテリーはノートパソコンのみ — デスクトップ/VM ではスキップしてください。回収可能な容量は情報的な数値として報告され、スコア化されません。
ステップ 4 — チャットで報告
この正確な構造を使用します。コンパクトでスキャン可能に保ってください。これが成果物です。
🖥️ Health Check — <モデル>, <OS バージョン> スコア: <N>/100 (<評価>)
🟢/🟡/🔴 ストレージ — <合計>の<空き容量> (<%>). 回収可能: 約<X> GB
🟢/🟡/🔴 メモリ — <1 行で状態>
🟢/🟡/🔴 バッテリー — <サイクル>サイクル、最大容量 <%>、<状態>
🟢/🟡/🔴 メンテナンス — 稼働<日数>日、<更新状態>
🟢/🟡/🔴 起動 — <数>個のログイン項目(<特筆すべき項目>)
🟢/🟡/🔴 現在 — トップ: <プロセス> <CPU%>、<プロセス> <CPU%>
推奨対応トップ
1. <最高影響度のアクション>(<期待される効果、例:約 13 GB 解放>)
2. <次>
3. <次>
最大 3~5 個の最高影響度の推奨を効果順に列挙します。すべての発見をダンプしないでください。目標はシグナルであって、テキストの壁ではありません。
ステップ 5 — クリーンアップを提案し、承認後のみ実行
具体的なコマンドにマッピングされる各推奨事項について(リファレンスファイルの「クリーンアップ」セクションを参照)、提案を提示し正確なコマンドを表示します。その後:
- 安全で可逆的(イエスで実行を提案):ゴミ箱を空にする、パッケージマネージャーキャッシュクリーンアップ(
brew cleanup、npm cache clean)、再生成されるユーザーキャッシュフォルダのクリア。(Linux ではapt-get clean/dnf cleanは root が必要 — 提案のみで、自動実行しない。) - ユーザーが判断/実行する必要がある(提案のみで、自動実行しない):ログイン項目の無効化、OS 更新のインストール(再起動が必要)、アプリのアンインストール、Downloads のファイル削除。
- 決して実行しない:sudo/管理者権限が必要なもの、システムファイルの削除、ディスク/パーティション操作。
ユーザーが安全なアクションを承認したら、実行して何が変わったかをレポートしてください(例:解放された容量)。その後ステップ 2 のストレージチェックを再実行すると、良好な確認になります。
推奨ルール(発見 → アドバイス)
これらは高価値のマッピングです。プラットフォームに合わせて文言を調整してください。
- 稼働時間 > 30 日 → 「コンピュータを再起動してください — <N> 日間稼働しています。再起動はメモリをクリアし、保留中の更新を適用します。」(最高 ROI、最小労力。)
- 保留中の OS/セキュリティ更新 → プラットフォーム更新ステップ;セキュリティ更新をより高い優先度として標記。
- 空き容量 < 15% → 測定した最大の回収可能なバケットを先頭にしてください。
- 大規模な Downloads / キャッシュ / ゴミ箱 → ゴミ箱を空にする;最大の Downloads 項目を名前で確認;再生成されるキャッシュをクリア。
- パッケージマネージャーに多くの古いアイテム / 大規模キャッシュがある →
upgrade+ キャッシュクリーンアップ。 - バッテリー最大容量 < 80% → 摩耗は正常であることを説明;実行時間に影響を与えている場合はバッテリーサービスを検討することを提案。
- 多くの第三者起動エージェント → 名前を付けて、ユーザーが認識していない/必要としないものの無効化を提案(システム設定 / タスクマネージャーを指す — 直接編集しない)。
- アイドル時にプロセスが高く固定されている → 名前を付けて、終了/調査を提案。
注意事項と落とし穴
- 仮定しない — 測定してください。 常にコマンドを実行して実数をレポートしてください。サイズ、サイクル数、またはステータスを作成しないでください。
- 出力を制限してください。 プロセスとファイルのリストは膨大になります。常に上限を設定してください。
- オプションの詳細チェック(記載、リクエスト時に実行):インターネット速度テスト、完全な更新リスト、ホームディレクトリ全体のフォルダ単位でのディスクスキャン、クラッシュレポート傾向分析。
- プライバシー。 これはローカルシステムメタデータのみを読み取ります。マシンの外にはなにも送信しないでください。パブリック 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
sudoor elevation. DC blockssudo,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 thesystemInfo.isMacOS/isWindows/isLinuxbooleans (orplatformName) 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 cleanneed 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 cache →
upgrade+ 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 による自動翻訳です。