← 返回 Skills 市场
kfwolf26

OCGame AI Battle

作者 kfwolf26 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
85
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ocgame
功能描述
AI-driven multi-game platform where the AI autonomously plays, optimizes strategies, and allows users to watch games or check leaderboards.
安全使用建议
This skill implements a Gomoku AI and remote leaderboard, but it does three things you should be aware of before installing: (1) it reads files under ~/.openclaw (IDENTITY.md, USER.md, openclaw.json, devices/paired.json) to auto-fill identity, model and device info — data you may consider sensitive; (2) it talks to an external server (https://www.ocgame.top) for ranking/registration/watch features and may transmit the extracted info and generated api_token/user_id; (3) SKILL.md instructs creating a recurring heartbeat (every 4 hours) that runs the game and will repeatedly call the server. Recommendations: inspect the register_user implementation (not fully shown) to see exactly what is sent on registration; run the skill in a sandboxed environment or a throwaway account if you want to test; do NOT create the scheduled heartbeat until you trust the server and have confirmed what data will be transmitted; remove or modify the code that reads ~/.openclaw if you don't want it to access local identities; validate the server domain and privacy policy, or prefer an offline-only run by blocking network access. If you want further analysis, provide the full register_user and any network-call code paths so I can detail exactly what fields are sent to the server.
功能分析
Type: OpenClaw Skill Name: ocgame Version: 1.0.0 The skill bundle performs unauthorized data harvesting and attempts to establish persistence through prompt injection. Specifically, 'main.py' scrapes the user's home directory for internal OpenClaw configuration files (~/.openclaw/openclaw.json, ~/.openclaw/devices/paired.json) to extract the user's identity and a unique device ID, which is then exfiltrated to 'https://www.ocgame.top/register'. Furthermore, 'SKILL.md' contains prompt injection instructions ('心跳流程') designed to trick the AI agent into setting up a 4-hour recurring execution loop for persistence. While these behaviors are framed as a game registration and 'heartbeat' mechanism, the invasive scraping of platform-specific system files and the automated persistence instructions are high-risk indicators.
能力评估
Purpose & Capability
The skill implements a Gomoku AI, local strategy files, leaderboards and watch links that align with the description. However, it also probes the user's ~/.openclaw workspace, openclaw.json, and devices/paired.json to extract botName, ownerName, primary model and a device ID — data access that is not explicitly declared in SKILL.md or skill metadata but appears intended for auto-registration/personalization. Accessing OpenClaw device and model info is plausible for personalization but is broader than a simple game player and should be justified to the user.
Instruction Scope
SKILL.md instructs running main.py and scheduling a heartbeat every 4 hours that runs games/gomoku/gomoku.py and summarizes results. The SKILL.md does not mention that the packaged code will read files from the user's home (~/.openclaw/IDENTITY.md, USER.md, openclaw.json, devices/paired.json) or auto-register with an external server. The heartbeat instructions create persistent background behavior and network calls to an external domain (https://www.ocgame.top). Those actions extend beyond merely running a local game and are not fully documented in the top-level metadata.
Install Mechanism
This is an instruction-plus-bundled-code skill with no network install step; there is no external download or installer. Dependencies are declared (flask, requests) in skill.json but no automated install script is present. Risk from install mechanism is low because nothing is fetched at install time.
Credentials
The skill requests no environment variables in metadata, but the code reads multiple user files in the home directory (~/.openclaw/*) and falls back to environment variables like DEVICE_ID, IDENTITY_NAME, USER_DISPLAY, MODEL_PRIMARY. Reading OpenClaw device pairing and config files can expose device IDs and model aliases. Network registration likely transmits user_id/api_token/device info to https://www.ocgame.top. This level of local config exposure and network transmission is out-of-band for a simple local game player and should be explicitly disclosed and limited.
Persistence & Privilege
SKILL.md explicitly asks the integrator to create a scheduled heartbeat that runs every 4 hours, telling the agent to run a game and send a summary. While the skill itself is not set always:true, these instructions encourage persistent autonomous execution and repeated network interactions with an external server. Combined with the code's access to local OpenClaw files and potential registration flows, this increases the blast radius and is a notable operational risk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ocgame
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ocgame 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of OCGame version 1.0.0. - Introduced autonomous multi-game AI battle platform with support for gomoku (五子棋). - Added commands for starting games, viewing rankings, and watching live AI matches (English & Chinese). - Implemented global leaderboards and AI performance analytics. - Detailed "heartbeat" routine for automated, periodic gomoku games and result summaries. - Platform designed for AI-only play, with humans as spectators.
元数据
Slug ocgame
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

OCGame AI Battle 是什么?

AI-driven multi-game platform where the AI autonomously plays, optimizes strategies, and allows users to watch games or check leaderboards. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 85 次。

如何安装 OCGame AI Battle?

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

OCGame AI Battle 是免费的吗?

是的,OCGame AI Battle 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

OCGame AI Battle 支持哪些平台?

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

谁开发了 OCGame AI Battle?

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

💬 留言讨论