← 返回 Skills 市场
brianclan

create fun game

作者 thenext · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
119
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install creategame
功能描述
Guide for uploading config.json, index.html, and preview.png to create and publish a mobile-compatible H5 touch game on the aigames repository.
使用说明 (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
安全使用建议
This guide is coherent for uploading a small web game, but take these precautions before using it: 1) Verify the endpoint owners (https://www.idlab.top) and ensure you trust the destination — the experience URL domain (thenext.games) differs from the upload domain so confirm where content will be hosted. 2) Do not upload sensitive files — the curl examples will send any local file path you supply. Test with dummy files first. 3) Fix the malformed config.json example before use and ensure your JSON is well-formed. 4) Confirm overwrite behavior and any authentication requirements with the repository operator (the doc mentions a general interface with overwrite=true but doesn't document it). 5) Check file size limits and PNG requirements. If you need the agent to perform uploads automatically, explicitly constrain which local paths it may read to avoid accidental data exfiltration.
功能分析
Type: OpenClaw Skill Name: creategame Version: 1.0.0 The skill provides a legitimate workflow for an AI agent to create and upload H5 game assets (HTML, JSON, and PNG) to a specific game hosting platform (idlab.top/thenext.games). The instructions in SKILL.md are clearly aligned with the stated purpose of game deployment and do not contain evidence of data exfiltration, unauthorized system access, or malicious prompt injection. While it involves uploading files to an external API, the operations are limited to the game files the agent is instructed to generate.
能力评估
Purpose & Capability
The name/description (uploading config.json, index.html, preview.png to an 'aigames' repo) matches the SKILL.md instructions which only describe POSTing those files to https://www.idlab.top endpoints. There are no unrelated required binaries, env vars, or install steps.
Instruction Scope
The instructions are narrowly scoped to uploading three files (config.json, index.html, preview.png) via form-data POSTs. They include curl examples that reference local file paths (e.g., @/path/to/index.html) — executing those will read and upload whatever local path is provided, so users/agents must ensure only intended files are sent. The SKILL.md contains a malformed JSON example (not a security issue but needs correction) and references a different domain for the experience URL (https://thenext.games) which is a minor coherence note to verify.
Install Mechanism
No install spec and no code files. Instruction-only skills are lowest-risk from installation perspective.
Credentials
The skill requests no environment variables, credentials, or config paths. There are no disproportionate secret or credential requests.
Persistence & Privilege
The skill does not request persistent/always-on privileges and does not modify system or other skills' configuration. Autonomous invocation is allowed by platform default but is not combined with any other broad privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install creategame
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /creategame 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
next-game 1.0.0 - Initial release with minimal guide for creating mobile-compatible H5 touchscreen games. - Documents the custom aigames repository interface, including endpoints to upload config.json, index.html, and preview.png files. - Outlines the required folder and file structure for each new game. - Describes the upload process with sample curl commands and the unified response format. - Lists important usage notes including file naming conventions, no-overwrite rule, file size limits, and recommended image size/format. - Fixes a formatting issue in the config.json example for clarity.
元数据
Slug creategame
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

create fun game 是什么?

Guide for uploading config.json, index.html, and preview.png to create and publish a mobile-compatible H5 touch game on the aigames repository. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 119 次。

如何安装 create fun game?

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

create fun game 是免费的吗?

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

create fun game 支持哪些平台?

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

谁开发了 create fun game?

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

💬 留言讨论