doctor について
開発プロジェクトのコールドスタート時に状態を確認し、ユーザーの同意があれば修復するスキルです。ツールとファイルを調査し、スモークテストを実行して、利用可能なコマンドとスキルを表示します。
主な機能
- 01インストール済みツールとプロジェクトファイルの確認
- 02不足する依存関係とディレクトリの報告
- 03同意を得た修復の提示
- 04スモークテストの実行
- 05利用可能なコマンドとスキルの表示
活用シーン
- 01コールドスタート後のプロジェクト準備状況の確認
- 02開発前の不足ツールの特定
- 03同意を得た依存関係のインストール
- 04スライド生成ワークフローの検証
MCP 対応
Chrome DevTools MCP の接続状態を確認し、未接続の場合は Claude Code で追加するコマンドを提示します。インストールの反映には再起動が必要です。
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ bluzir/ claude-code-design --skill doctorインストール後、Claude Code で/doctorを入力して読み込まれたか確認します。
詳細
Doctor
コールドスタート時のヘルスチェックと、必要に応じた自動インストールを行います。何度実行しても安全です。
フェーズ 1 — インベントリ
可能な場合は並行して実行します。
Bash(claude mcp list)— 出力を解析し、chrome-devtools: ✓ Connectedを確認しますBash(which monolith)— 存在を確認しますBash(which node)— 必須ですBash(which gh)—/ingest-github用ですBash(test -f package.json && echo yes || echo no)Bash(test -d starters && echo yes || echo no)— yes を想定しますBash(test -d artifacts && echo yes || echo no)Bash(test -d .claude/skills && echo yes || echo no)— yes を想定します
フェーズ 2 — レポート
構造化されたレポートを出力します。
Chrome DevTools MCP: ✓ / ✗ (if ✗, show install command)
monolith CLI: ✓ / ✗ (optional; needed for /export-standalone)
Node: ✓ / ✗ (required)
gh CLI: ✓ / ✗ (needed for /ingest-github)
package.json: exists / missing
starters/ dir: exists / missing
artifacts/ dir: will create
.claude/skills/: N skills found
FIGMA_TOKEN env: set / not set (only needed for /ingest-figma)
フェーズ 3 — 修復(ユーザーの同意を得て実行)
不足している項目ごとに、AskUserQuestion を使ってユーザーに「X を今すぐインストールしますか?」(yes/skip/all)と尋ねます。
修復コマンド(yes の場合のみ):
- Chrome DevTools MCP:
Bash(claude mcp add chrome-devtools -s user -- npx chrome-devtools-mcp@latest)— 反映するには Claude Code の再起動が必要です - monolith:
Bash(brew install monolith)(macOS)または Linux の場合はユーザーに案内します - pptxgenjs + puppeteer:
Bash(test -f package.json || npm init -y) Bash(npm install -D pptxgenjs puppeteer) - artifacts/ ディレクトリ:
Bash(mkdir -p artifacts assets/thumbs test)
フェーズ 4 — スモークテスト
すべての項目が正常で(かつ、ユーザーがインストールを実行した直後ではなく、再起動済みの)場合:
test/smoke-deck.htmlを書き込みます。<!doctype html> <html><head><meta charset="utf-8"/><title>Smoke</title> <script src="../starters/deck_stage.js"></script></head> <body><deck-stage width="1920" height="1080"> <section style="padding:60px;font:48px/1.2 Georgia"><h1>One</h1></section> <section style="padding:60px;font:48px/1.2 Georgia;background:#f4e4d7"><h1>Two</h1></section> <section style="padding:60px;font:48px/1.2 Georgia;background:#4a5d2e;color:#fff"><h1>Three</h1></section> </deck-stage></body></html>/done test/smoke-deck.htmlを実行します- Chrome DevTools MCP が接続されている場合は、
.claude/last-preview.pngが存在し、コンソールに問題がないことを確認します - 成功または失敗を報告します
フェーズ 5 — ヒント集
一行のヒントを出力します。
Available commands & skills:
/make-deck <brief> — build a slide deck
/interactive-prototype <brief> — clickable React prototype
/wireframe <thing> — low-fi variants
/create-design-system <src> — extract style guide
/ingest-github <url> — pull tokens from repo
/ingest-screenshot <path> — extract tokens from image
/ingest-figma <url> — pull from Figma (needs FIGMA_TOKEN)
/make-tweakable <html> — add live tweak panel
/apply-tweaks <html> — persist panel changes
/register-asset <html> — add to assets.html overview
/verify-artifact <html> — vision-based QA
/export-pdf /export-pptx /export-standalone /handoff
/preview /done /screenshot — operational atomics
コメント
Markdown 対応