Hand Gestures (webcam hand controls for browser games)
/hand-gestures
Build webcam hand games and gesture controls for web pages with hand-gesture-kit on MediaPipe: 17 poses (fist, point, thumbs up, pinch…), motions (swipes, circles, taps, throws), two-hand clap and zoom, a mouse fallback, and synthetic hands so games are tested without a camera. Ships a complete three.js starter game with a ?bot=1 player, tests and capture tools, plus Google's hand model, so nothing downloads at setup.
- 许可证
- MIT
- 出品
- GameSkill 出品
我们测过
在 Node 22 + Vitest 5 + Vite 8 + Playwright driving Chrome headless (fake camera) 上通过 34/34 项检查(2026-11-09):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
Build webcam hand games and hand-gesture controls for browser apps (poses like fist, point, peace sign, thumbs up; motions like swipes, circles, pinch taps; two-hand clap/zoom) with hand-gesture-kit on top of MediaPipe. …
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 dd79fb7b3a9d,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 abouchedidxcode/open-source-hands(作者 abouchedidxcode),协议 MIT。ZIP 保留协议文件(LICENSE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 每个动作只对应一个清楚的手势 / Each action has one distinct gesture
- 合成手跑通真实手势引擎的测试通过 / Tests with synthetic hands through the real GestureEngine pass
- 有鼠标或触屏备用操作,摄像头从点击启动 / There is a mouse or touch fallback and the camera starts from a click
- 模型从自己的站点加载,不外发视频 / The model loads from your own site and no video leaves the page
- 只做原创游戏,不复刻现有游戏 / Original games only, never a remake of an existing game
中文指南
这个 skill 做什么
用 hand-gesture-kit(基于 Google MediaPipe)给网页游戏和网页应用加摄像头手势控制:17 种手势姿态(握拳、指向、点赞、捏合等)、动作(挥动、画圈、轻点、抛出)、双手拍手和缩放,带鼠标备用操作,还有"合成手",不用摄像头也能测试。附带一个完整的 three.js 起步游戏(?bot=1 自动玩家、测试、截图工具)和 Google 的手部模型,安装时不需要再下载。
什么时候用
- 做用摄像头手势操作的网页游戏:握拳抓取、指向瞄准、挥手闪避
- 给已有网页加手势快捷操作
- 不开摄像头测试手势游戏:合成手驱动真实的手势引擎
怎么装
下载本页 ZIP,把 hand-gestures/ 放进 .claude/skills/(Claude Code)或 .agents/skills/(Codex、Cursor)。做新游戏时:把 upstream-support/templates/game 复制成 my-game,把 upstream-support/public/models/hand_landmarker.task 复制到 my-game/public/models/,然后 npm install && npm run dev。需要 Node 20+。
最小示例
我们自己的小谜题《信号灯》:五盏港口灯排成一排,食指指向选灯,握拳点亮或熄灭,向左挥手全部熄灭,点赞发出信号,灯的组合对了就过关。规则是一个纯函数,测试用合成手经过真实的 GestureEngine 来玩。
我们怎么测的
- 按 SKILL.md 从 ZIP 里的文件建起步游戏,
npm ci后原作者的 7 个测试和我们《信号灯》的 4 个测试全部通过(Node 22); npm run build用随包模型,不从 Google 下载;产物里有模型和 wasm;- 无头 Chrome 里
?bot=1玩一局有得分;用 Chrome 的虚拟摄像头点"Use my camera",模型从游戏自己的服务器加载、进入摄像头模式,没有页面错误,也没有对外请求。 - 没有用真人手部视频测识别准确度。
GameSkill 的改动
原作者的步骤用 npx degit 从 GitHub 拉起步游戏和工具包,用 curl 从 Google 存储下载模型。我们把这些文件打包进 upstream-support/(模型原样,附 Apache-2.0 声明),并把 SKILL.md、AGENTS.md、MAKING-A-GAME.md 里的步骤改成从包内复制。详见 ZIP 里的 CHANGES.md。
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/hand-gestures/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/hand-gestures.zip -o /tmp/gameskill-hand-gestures.zip
unzip -oq /tmp/gameskill-hand-gestures.zip -d .claude/skills
rm /tmp/gameskill-hand-gestures.zip包含内容
- SKILL.md: start from the starter game or add the kit to an existing app, the gesture list, synthetic-hand testing and pitfalls
- upstream-support/templates/game: a complete three.js hand game (camera flow, mouse and touch fallback, ?bot=1 player, Vitest tests, capture, fps and loudness tools)
- upstream-support/src/kit: hand-gesture-kit TypeScript source (tracker, gesture engine, poses, motions, One Euro smoothing, drawing, synthetic hands)
- AGENTS.md and docs/MAKING-A-GAME.md, the author's full guide and game playbook, plus the MediaPipe model with its Apache-2.0 notice
适合
- Webcam-controlled browser games: grab with a fist, aim with a point, swipe to dodge
- Adding gesture shortcuts to an existing web page or tool
- Testing gesture games without a camera: synthetic hands drive the real engine
不适合
- Native engines (Unity, Godot, Unreal) or gamepad and keyboard mapping
- Full-body pose, face tracking or sign-language recognition
试试这条提示词
Make a small browser puzzle for my original game Signal Lamps: point at one of five harbour lamps to aim, make a fist to light it, swipe left to clear, thumbs up to signal, with tests that play it with synthetic hands.关于这个 Skill
Webcam hand controls for browser games and web apps, built on Google's MediaPipe hand tracking. hand-gesture-kit turns hand landmarks into pose and motion events (fist, point, pinch, thumbs up, swipes, circles, taps, two-hand clap and zoom), and synthetic hands let tests and a bot player drive the real engine without a camera.
Agent steps
- Start from the bundled starter game (or copy the kit into an existing app) and put the bundled hand model in
public/models/. - Pick one distinct gesture per action, keep the mouse or touch fallback, and start the camera from a click.
- Verify with synthetic hands through
GestureEngineand a?bot=1run in a headless browser before claiming it works.
Common problems it solves
- Gesture code that only works on the author's webcam and cannot be tested in CI.
- Noisy tracking: double-firing pinches, swipes on slow drift, extra smoothing lag.
- Camera permission flows and a missing fallback for players without a webcam.
Credits
hand-gestures in open-source-hands by abouchedidxcode, MIT; MediaPipe runtime and model by Google, Apache-2.0. GameSkill bundled the starter, kit and model and added a tested example: Signal Lamps, our own small gesture puzzle.
环境要求
- Node 20+ (tested on 22) and npm
- A browser with a webcam for play; https or localhost and a click to start the camera
- Chrome or Playwright's Chromium only for the screenshot and e2e tools
相关主题
常见问题
抽卡 Gacha Kit
单抽、十连演出:SSR 蓄力后金光爆发,飞到中央变成跟着鼠标或手机陀螺仪倾斜的全息卡。按稀有度分级演出,可跳过,内置中英文案。
基于 abouchedidxcode/open-source-hands (作者 abouchedidxcode,协议 MIT)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
Browser Game Input Check (keyboard that just works)
A GameSkill original for keyboard input in browser games: a drop-in input.js that binds physical keys, ignores OS repeats, stops page scrolling, releases keys on alt-tab, never loses quick taps, ignores text fields and leaves browser shortcuts alone, plus a checker that drives the game in headless Chrome and prints PASS / FAIL with a fix for 15 checks, including one press acting once through a slow frame.
Game Input Systems
Game input architecture: action mapping, rebinding with conflict checks, keyboard, gamepad and touch, deadzones, buffering and coyote time.
Three.js Game Skills
Nine Agent Skills for Codex and Claude Code that build playable Three.js browser games, with a director skill, a Vite scaffold and Playwright QA.
Playtesting
Structure playtest sessions and sort responses into UX friction, difficulty calibration and feature signal.
相似 skills
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
reanimate: clone an animation and prove it moves the same
Rebuild a UI animation from a live page, a screen recording, a gif or a Lottie file in your own code, then record the copy the same way and compare the two frame by frame, fixing timing, easing and stagger until the numbers match. Covers CSS, Web Animations, canvas, WebGL and three.js.
FunPlay Skill
14 MIT agent skills for game development with scripts and tests: sprite-sheet slicing, normal maps, audio conversion, game concept briefs, browser game slices, Unity MCP workflow and Cocos/WeChat minigame rules.
Motion Showreel (code-rendered motion video)
A workflow and toolkit for motion-graphics videos made with code: a page exposes a deterministic render(t), the tools render it frame by frame to MP4 with a synthesised or Tone.js score from the same timeline, check determinism and text framing, and run technical acceptance (size, fps, duration, audio, black frames, loudness). 40 style notes, a starter, an editor preview and chapter builds up to 20 minutes. For games: logo stings, title cards, UI motion, feature explainers and trailer inserts.