/ 目錄 / 演練場 / WebGPU Claude Skill
● 社群 dgreenheck ⚡ 即開即用

WebGPU Claude Skill

作者 dgreenheck · dgreenheck/webgpu-claude-skill

以 Claude 快速建立 WebGPU + Three.js 專案——樣板程式碼、著色器模式、效能檢查,全部包在一個 skill 中。

WebGPU 足夠新穎,Claude 常常產生幻覺 API。此 skill 讓它落地:能運行的 Three.js + WebGPU 鷹架、常見著色器模式、瀏覽器效能啟發式規則。

為什麼要用

核心特性

即時演示

實際使用效果

就緒

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "webgpu-claude-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/dgreenheck/webgpu-claude-skill"
      ],
      "_inferred": true
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "webgpu-claude-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/dgreenheck/webgpu-claude-skill"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "webgpu-claude-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/dgreenheck/webgpu-claude-skill"
      ],
      "_inferred": true
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "webgpu-claude-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/dgreenheck/webgpu-claude-skill"
      ],
      "_inferred": true
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "webgpu-claude-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/dgreenheck/webgpu-claude-skill"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "webgpu-claude-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/dgreenheck/webgpu-claude-skill"
        ]
      }
    }
  }
}

加入 context_servers。Zed 儲存後熱重載。

claude mcp add webgpu-claude-skill -- git clone https://github.com/dgreenheck/webgpu-claude-skill

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: WebGPU Claude Skill

搭建 WebGPU 場景鷹架

👤 Claude Code 使用者 ⏱ ~15 min intermediate

何時使用: 你希望有一個能運行的 WebGPU + Three.js 起始點,省去瑣碎工作。

步驟
  1. 說明
    描述場景;skill 起草。✓ 已複製
    → 檔案寫入
  2. 迭代
    調整著色器;skill 套用✓ 已複製
    → 可見輸出

結果: WebGPU 場景快速在瀏覽器中運行。

組合

與其他 MCP 搭配,撬動十倍槓桿

webgpu-claude-skill + filesystem

將場景寫入你的專案

結合 webgpu-claude-skill 與 filesystem:將場景寫入你的專案✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
scaffold / shade (詳見文件) 兩種流程 1 次呼叫

成本與限制

運行它的成本

API 配額
不適用
每次呼叫 Token 數
中等
費用
免費
提示
在 Chrome 穩定版測試;WebGPU 大致可用但仍有些奇特之處

安全

權限、密鑰、影響範圍

憑證儲存:
資料出站:

故障排查

常見錯誤與修復

WebGPU 不可用

Skill 在請求時會輸出 WebGL 回退方案

替代方案

WebGPU Claude Skill 對比其他方案

替代方案何時用它替代權衡
直接查閱 Three.js 文件你對 WebGPU 已很熟悉啟動速度較慢

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills