← 返回 Skills 市场
ravenquasar

React Game Loop Hooks

作者 U3UT7 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
52
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install react-game-loop
功能描述
Create custom React hooks in TypeScript for game loops and animations. Use when the user asks for a React hook, requestAnimationFrame integration, game loop...
安全使用建议
This skill appears to be what it claims: a small, browser-only React hook for game loops. Before installing, review the hook to ensure it matches your app's type/encoding (TypeScript/React versions) and confirm you only copy the files into projects that run in the browser (not SSR/Node). The hook catches callback errors and cleans up RAF on unmount, but as with any third-party code, inspect it for fit and license compatibility (MIT) before use.
功能分析
Type: OpenClaw Skill Name: react-game-loop Version: 1.0.0 The skill provides a standard React hook for managing game loops and animations using requestAnimationFrame. The implementation in assets/hooks/useGameLoop.ts follows React best practices, including stale-closure safety, delta-time clamping, and proper cleanup on unmount, with no evidence of malicious intent or suspicious behavior.
能力评估
Purpose & Capability
The name/description (React game loop hooks) matches the included files and declared behavior. The files implement a requestAnimationFrame-based useGameLoop hook and an example component — nothing unrelated is requested.
Instruction Scope
SKILL.md instructs the agent/user to copy the hook file into their project and documents API, patterns, and an example. Instructions are narrowly scoped to installing and using the hook; they do not instruct reading unrelated files, accessing environment variables, or contacting external endpoints.
Install Mechanism
There is no install spec and no download/install-from-URL behavior. The code is provided in the skill assets and the user is instructed to copy the file into their project — low-risk and transparent.
Credentials
The skill requests no environment variables, credentials, or system config paths. Declared dependencies (React/TypeScript/react-dom) are appropriate and expected for a TypeScript React hook.
Persistence & Privilege
The skill does not request always:true and uses default user-invocable/autonomous settings. It does not modify other skills or system-wide settings and does not persist credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install react-game-loop
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /react-game-loop 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of react-hooks-game-loop: - Provides a production-ready `useGameLoop` React hook for animating with requestAnimationFrame and safe delta-time handling. - Supports start/stop controls, running state, and automatic cleanup on unmount. - Ensures stale-closure safety, robust error handling, and delta-time clamping. - Includes comprehensive documentation and example usage.
元数据
Slug react-game-loop
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

React Game Loop Hooks 是什么?

Create custom React hooks in TypeScript for game loops and animations. Use when the user asks for a React hook, requestAnimationFrame integration, game loop... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 52 次。

如何安装 React Game Loop Hooks?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install react-game-loop」即可一键安装,无需额外配置。

React Game Loop Hooks 是免费的吗?

是的,React Game Loop Hooks 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

React Game Loop Hooks 支持哪些平台?

React Game Loop Hooks 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 React Game Loop Hooks?

由 U3UT7(@ravenquasar)开发并维护,当前版本 v1.0.0。

💬 留言讨论