DW

dgreenheck/webgpu-claude-skill

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

1,3 тыс. stars Качество 45 Тренд 25

Навык Клода для разработки WebGPU-приложений с Three.js

Обзор

Навык агента для разработки Three.js приложений с поддержкой WebGPU с использованием TSL (Three.js Shading Language). 1 апреля 2026 года — соответствует изменениям Three.js API r183+. Этот навык даёт Клоду глубокие знания для: - Настройка Three.js с помощью рендерера WebGPU - Запись шейдеров с использованием TSL (Three.js Shading Language) - Создание материалов на основе узлов - Создание вычислительных шейдеров GPU - Реализация эффектов постобработки - Интеграция собственного кода WGSL Этот репозиторий поставляет один и тот же контент в двух форматах, поэтому он работает и в Claude Code (как Agent Skill), и в Cursor (как правила проекта). Навык Claude в разделе skills/ — это источник истины; правила курсора под .cursor/rules/ — это тонкие прокладки, которые @file ссылаются на те же документы, поэтому правки проходят автоматически. Или вручную скопируйте папку skills/webgpu-threejs-tsl в: - : ~/.claude/skills/ - : /.claude/skills/ Клонируйте этот репозиторий и открывайте его напрямую — курсор автоматически забирает .cursor/rules/.

Обзор (машинный перевод)

Навык агента для разработки Three.js приложений с поддержкой WebGPU с использованием TSL (Three.js Shading Language).

Последнее обновление: 1 апреля 2026 года — соответствует изменениям Three.js API r183+.

Обзор

Этот навык даёт Клоду глубокие знания для:

  • Настройка Three.js с помощью рендерера WebGPU
  • Написание шейдеров с использованием TSL (Three.js Shading Language)
  • Создание материалов на основе узлов
  • Создание вычислительных шейдеров GPU
  • Реализация эффектов постобработки
  • Интеграция пользовательского кода WGSL

Установка

Этот репозиторий предоставляет один и тот же контент в двух форматах, поэтому работает и в Claude Code (как агентский навык), и в Cursor (как в рамках правил проекта). Навык Claude в skills/ является источником истины; правила курсора в [.cursor/rules/ — это тонкие прокладки, которые @file ссылаются на те же документы, поэтому правки проходят автоматически.

Код Клода

Или вручную скопировать папку skills/webgpu-threejs-tsl в:

  • Global: ~/.claude/skills/
  • Проект: /.claude/skills/

Курсор

Клонируйте этот репозиторий и открывайте его напрямую — Курсор автоматически принимает .cursor/rules/.

Чтобы использовать правила в вашем проекте, скопируйте оба каталоги в корень проекта, сохраняя пути:

The '.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

WebGPU Three.js TSL Skill

An Agent Skill for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language).

Last updated: April 1, 2026 — aligned with Three.js r183+ API changes.

Overview

This skill provides Claude with comprehensive knowledge for:

  • Setting up Three.js with WebGPU renderer
  • Writing shaders using TSL (Three.js Shading Language)
  • Creating node-based materials
  • Building GPU compute shaders
  • Implementing post-processing effects
  • Integrating custom WGSL code

Installation

This repo ships the same content in two formats so it works in both Claude Code (as an Agent Skill) and Cursor (as project rules). The Claude skill under skills/ is the source of truth; the Cursor rules under .cursor/rules/ are thin shims that @file-reference those same docs, so edits flow through automatically.

Claude Code

# Install from this repository
/skill install webgpu-threejs-tsl@/webgpu-claude-skill

Or manually copy the skills/webgpu-threejs-tsl folder to:

  • Global: ~/.claude/skills/
  • Project: /.claude/skills/

Cursor

Clone this repo and open it directly — Cursor picks up .cursor/rules/ automatically.

To use the rules in your own project, copy both directories into your project root, preserving the paths:

your-project/
├── .cursor/rules/              # from this repo
└── skills/webgpu-threejs-tsl/  # from this repo (referenced by the rules)

The .mdc files use @file references pointing at skills/webgpu-threejs-tsl/..., so the skills/ directory must travel with them. If you’d rather not keep the skills/ folder, inline the referenced content into each .mdc file.

The rules are scoped by globs and auto-attach only on relevant files:

  • webgpu-threejs-tsl.mdc — entry point, JS/TS files
  • compute-shaders.mdc — files matching *compute* or *particle*
  • post-processing.mdc — files matching *post*, *effect*, *bloom*
  • wgsl-integration.mdc — .wgsl files and *wgsl* JS/TS
  • device-loss-and-limits.mdc — files matching *renderer* or *webgpu*

Skill Structure

skills/webgpu-threejs-tsl/
├── SKILL.md                    # Entry point with overview
├── REFERENCE.md                # Quick reference cheatsheet
├── docs/
│   ├── core-concepts.md        # Types, operators, uniforms, control flow
│   ├── materials.md            # Node materials and properties
│   ├── compute-shaders.md      # GPU compute documentation
│   ├── post-processing.md      # Built-in and custom effects
│   ├── wgsl-integration.md     # Custom WGSL functions
│   └── device-loss.md          # GPU device loss handling and recovery
├── examples/
│   ├── basic-setup.js          # Minimal WebGPU project
│   ├── custom-material.js      # Custom shader material
│   ├── particle-system.js      # GPU compute particles
│   ├── post-processing.js      # Effect pipeline
Открыть полный README на GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add dgreenheck/webgpu-claude-skill
Новичок в MCP? Начните с руководства на mcpskill.org →