← 返回 Skills 市场
brianclan

Aigames

作者 thenext · GitHub ↗ · v0.1.9 · MIT-0
cross-platform ⚠ suspicious
495
总下载
0
收藏
0
当前安装
10
版本数
在 OpenClaw 中安装
/install aigames
功能描述
Create a mini HTML game, organize files in a new folder, and upload it to the brianclan/aigames GitHub repo for www.thenext.games.
使用说明 (SKILL.md)

Here's the English translation:\r \r ---\r \r

I. Overall Objective\r

\r This skill is a minimal guide for creating H5 games, mobile compatibale, touch screen games.\r \r

II. aigames Repository Custom Interface\r

\r

**Repository URL**: https://www.idlab.top\r Each game requires creating a new folder in the repository root directory, containing the following 3 fixed files:\r

  • config.json — Game configuration (title and other metadata)\r
  • index.html — Main game code\r
  • preview.png — Game screenshot preview\r \r **Important Rule**: The interface will return an error if a file already exists; no overwriting.\r \r

2.1 Upload config.json\r

\r

POST /xlabopenapi/github/aigames/config\r

\r

Request Parameters (form-data)\r

\r |Parameter|Type|Required|Description|\r |-|-|-|-|\r |gameFolder|string|Yes|Game folder name, use English, e.g., my\_cool\_game|\r |file|file|Yes|config.json file, format shown below|\r \r

config.json Content Format\r

\r

{\r
  "title": "Game Name"\r
}\r
```\r
\r
#### curl Example\r
\r
```bash\r
curl -X POST "https://www.idlab.top/xlabopenapi/github/aigames/config" \\\r
  -F "gameFolder=xiaotongcoolgame" \\\r
  -F "file=@/root/workspace/logs/config.json"\r
```\r
\r
\---\r
\r
### 2.2 Upload index.html\r
\r
#### `POST /xlabopenapi/github/aigames/index`\r
\r
#### Request Parameters (form-data)\r
\r
|Parameter|Type|Required|Description|\r
|-|-|-|-|\r
|`gameFolder`|string|Yes|Game folder name, must match the one used when uploading config.json|\r
|`file`|file|Yes|index.html main game file|\r
\r
#### curl Example\r
\r
```bash\r
curl -X POST "https://www.idlab.top/xlabopenapi/github/aigames/index" \\\r
  -F "gameFolder=my\_cool\_game" \\\r
  -F "file=@/path/to/index.html"\r
```\r
\r
\---\r
\r
### 2.3 Upload preview.png\r
\r
#### `POST /xlabopenapi/github/aigames/preview`\r
\r
#### Request Parameters (form-data)\r
\r
|Parameter|Type|Required|Description|\r
|-|-|-|-|\r
|`gameFolder`|string|Yes|Game folder name, must match the one used when uploading config.json|\r
|`file`|file|Yes|preview.png game screenshot (recommended size 400×300)|\r
\r
#### curl Example\r
\r
```bash\r
curl -X POST "https://www.idlab.top/xlabopenapi/github/aigames/preview" \\\r
  -F "gameFolder=my\_cool\_game" \\\r
  -F "file=@/path/to/preview.png"\r
```\r
\r
\---\r
\r
## III. Complete Process for Uploading a New Game (AI Call Example)\r
\r
> Assuming you want to upload a Snake game named `pixel\_snake`, the steps are as follows:\r
\r
### Step 1: Upload config.json\r
\r
```bash\r
curl -X POST "https://www.idlab.top/xlabopenapi/github/aigames/config" \\\r
  -F "gameFolder=pixel\_snake" \\\r
  -F "[email protected]"\r
```\r
\r
config.json content:\r
\r
```json\r
{"title": "Pixel Snake"\r
}\r
```\r
\r
### Step 2: Upload index.html\r
\r
```bash\r
curl -X POST "https://www.idlab.top/xlabopenapi/github/aigames/index" \\\r
  -F "gameFolder=pixel\_snake" \\\r
  -F "[email protected]"\r
```\r
\r
### Step 3: Upload preview.png\r
\r
```bash\r
curl -X POST "https://www.idlab.top/xlabopenapi/github/aigames/preview" \\\r
  -F "gameFolder=pixel\_snake" \\\r
  -F "[email protected]"\r
```\r
\r
### Step 4: If successful, inform the user that the upload is complete\r
\r
Provide the experience URL as https://thenext.games/game/ + gameFolder. For example, in the case above: https://thenext.games/game/pixel\_snake\r
\r
\---\r
\r
## IV. Common Response Structure\r
\r
All interfaces return a unified structure:\r
\r
```json\r
{\r
  "code": 200, // 200 indicates success, other values indicate failure\r
  "message": "success",\r
  "data": { ... } // Returned data on success\r
}\r
```\r
\r
### Common Error Codes\r
\r
|code|Meaning|\r
|-|-|\r
|200|Success|\r
|400|Parameter error (e.g., file already exists, gameFolder is empty, etc.)|\r
|500|Internal server error (e.g., GitHub API call failed)|\r
\r
\---\r
\r
## V. Important Notes\r
\r
1. **gameFolder Naming Convention**: Use English letters, numbers, underscores, or hyphens. Do not use Chinese characters or spaces, e.g., `my\_cool\_game`, `pixel-snake`.\r
2. **Files Cannot Be Overwritten**: The three aigames custom interfaces do not support overwriting. If a file already exists, an error will be returned. To overwrite, use the general interface with `overwrite=true`.\r
3. **Upload Order Not Required**: The three files (config.json, index.html, preview.png) can be uploaded in any order, but it's recommended to upload config.json first.\r
4. **File Size Limit**: The server limits individual files to a maximum of 50MB.\r
5. **preview.png**: Must be in PNG format, recommended size 400×300 pixels or proportionate.\r
\r
\---\r
\r
I noticed there was a formatting issue in the config.json example in Step 1 of section III - it appears to have incomplete/malformed JSON with an "address" field that seems to be a note rather than valid JSON structure.\r
\r
安全使用建议
Proceed with caution. The skill will send your game files to https://www.idlab.top, but it claims to publish to a GitHub repo (brianclan/aigames) without explaining the relationship — ask the author to confirm who runs idlab.top and to provide the service's privacy/security details. Do not upload sensitive or proprietary files until you verify the destination and authentication flow. Prefer testing with a dummy game and verifying the resulting GitHub repository/commit yourself. If you need direct control over commits, consider using your own GitHub workflow (git + personal token) instead of this service. If you plan to install or allow this skill to run autonomously, request the skill source, maintainer identity, and confirmation about where credentials are stored and who can access them.
功能分析
Type: OpenClaw Skill Name: aigames Version: 0.1.9 The skill 'aigames' (SKILL.md) provides explicit instructions and curl commands for an AI agent to upload local files to an external third-party API at idlab.top. While the stated purpose is to host H5 games on thenext.games, this configuration establishes a functional path for data exfiltration. A specific indicator of concern is a curl example referencing a file path within a logs directory (/root/workspace/logs/config.json), which is an unusual location for game metadata and suggests potential interest in system logs.
能力评估
Purpose & Capability
The skill says it will upload games to the brianclan/aigames GitHub repo for thenext.games, but the runtime instructions target https://www.idlab.top/xlabopenapi/github/aigames. There is no explanation of how idlab.top maps to the claimed GitHub repo or who controls that service. The skill also declares no required credentials even though committing files to a GitHub repo normally requires authentication or a delegated service that holds credentials. This mismatch between claimed destination and the actual upload endpoint is unexplained and disproportionate to the stated purpose.
Instruction Scope
SKILL.md only instructs creating three files (config.json, index.html, preview.png) and POSTing them as multipart form-data to idlab.top endpoints. That is consistent with a simple upload workflow and does not ask the agent to read unrelated local files or credentials. However examples reference arbitrary local paths (e.g., /root/workspace/logs/config.json) and there is one malformed JSON example noted in the doc — these are quality issues but not direct proof of malicious intent. The instructions do direct potentially sensitive local files to an external server (idlab.top).
Install Mechanism
This is an instruction-only skill with no install spec and no code files, so nothing is written to disk by the skill itself. That minimizes installation risk.
Credentials
The skill declares no required environment variables or credentials, yet its stated end goal (uploading into a GitHub repo) normally requires auth. Either the idlab.top API is a public unauthenticated proxy that performs commits (possible but risky), or the runtime omitted necessary credential requirements. The absence of any declared credential is disproportionate and leaves open the question of who holds commit privileges and how authentication is handled.
Persistence & Privilege
The skill does not request permanent presence (always is false) and does not ask to modify other skills or system-wide config. It appears to have no special persistence privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aigames
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aigames 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.9
- Major update: Skill now guides users through uploading H5/mobile-compatible games directly via the custom API at https://www.idlab.top, not via GitHub PR. - Introduced step-by-step API upload process: Upload config.json, index.html, and preview.png to create a new game folder. - Details added for each upload endpoint, parameters, common error codes, and response formats. - Clarified naming conventions and file requirements; files cannot be overwritten via the custom endpoints. - Provided instruction for constructing game URLs after successful upload. - Removed wallet address requirement and GitHub-based instructions from earlier versions.
v0.1.8
- Updated upload instructions to emphasize forking the repository and creating a pull request, with notes on GitHub personal access tokens for first-time users. - Clarified alternative upload option using GitHub’s web interface. - Revised reporting steps to explicitly show the wallet address as the game author, include the direct playable game link, and specify URL formatting (e.g., replacing spaces with hyphens and using lowercase). - Improved instructions and step numbering for clearer guidance during submission and after upload. - Provided more detailed guidance on errors, solutions, and appropriate mentions of social channels.
v0.1.7
- Added requirement: games must be mobile or touchscreen compatible. - Updated upload options: only GitHub web interface and pull request instructions remain; removed git push/PTA token info. - Enhanced user instructions: upon successful submission, now provide the direct URL to the uploaded game. - Minor text and formatting adjustments for clarity.
v0.1.6
- Minor formatting changes in the SKILL.md documentation for improved readability. - No functional or instructional changes to the skill's process or workflow.
v0.1.5
- Added oldSKILL.md to the repository. - No other functionality or documentation changes.
v0.1.4
Version 0.1.4 Changelog - Minor clarification in instructions under "Add or Create Required Files" and "Upload" sections. - Updated formatting to improve readability. - Corrected spelling of "PTA is" for GitHub credentials usage note.
v0.1.3
Version 0.1.3 Changelog - Clarified that the wallet address is a public address and not a privacy concern. - Expanded upload instructions with three methods: drag-and-drop on GitHub, submitting a pull request for approval, or direct git push. - Added a pull request example link to guide contributors. - Updated PTA key and clarified its permissions and safety for uploading. - No changes to core logic or structure—documentation improvements only.
v0.1.2
- Updated the "Upload" instructions with a new GitHub PAT (personal access token) for repository access. - Old PAT replaced with: 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. - No other changes made to the instructions or process.
v0.1.1
- Added requirement to collect the creator's wallet address (preferably EVM/ETH) for reward distribution. - Updated config.json file structure to include a "wallet" field alongside the "title". - Provided an example to illustrate the new config.json format. - No other process changes.
v0.1.0
Initial release of the aigames skill: - Provides step-by-step instructions for adding a new HTML game to the brianclan/aigames GitHub repository. - Details folder structure and required files: config.json, index.html, and preview.png. - Explains how to upload the game folder via GitHub web interface or git push. - Includes guidance on using AI to create games and assist with the upload process.
元数据
Slug aigames
版本 0.1.9
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 10
常见问题

Aigames 是什么?

Create a mini HTML game, organize files in a new folder, and upload it to the brianclan/aigames GitHub repo for www.thenext.games. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 495 次。

如何安装 Aigames?

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

Aigames 是免费的吗?

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

Aigames 支持哪些平台?

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

谁开发了 Aigames?

由 thenext(@brianclan)开发并维护,当前版本 v0.1.9。

💬 留言讨论