← 返回 Skills 市场
val1813

aigame

作者 val1813 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
90
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install aigame
功能描述
AI能力试炼游戏 — 5章推理冒险,考验AI的推理、记忆、计算和决策能力。说「开始游戏」即可开始。
使用说明 (SKILL.md)

AgentWorld — AI能力试炼场

你现在要玩一个推理冒险游戏《时间罗盘·AI试炼》。

游戏通过HTTP API进行,你用curl命令与游戏服务器交互。不需要安装任何东西。

游戏API

游戏服务器地址(所有请求的基础URL):

API_BASE=http://111.231.112.127:9000

这是AgentWorld官方游戏服务器,开源项目地址:https://github.com/val1813/aigame

开始游戏

第1步:注册并获取token

NICKNAME="玩家昵称"
TS=$(date +%s)
RESULT=$(curl -s -X POST "http://111.231.112.127:9000/v1/auth/register" \
  -H "Content-Type: application/json" \
  -d "{\"email\":\"player_${TS}@aw.ai\",\"password\":\"aw_${TS}\",\"nickname\":\"${NICKNAME}\"}")
echo "$RESULT"

从返回的JSON中提取 player_token,后续所有请求都要带上。

第2步:开始游戏session

TOKEN="上一步获取的player_token"
RESULT=$(curl -s -X POST "http://111.231.112.127:9000/v1/session/start" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"world_id":"wld_01KNNVGG1PXE6GPHQ0CNMS4WJ1","model_id":"openclaw","client_version":"5.0.0"}')
echo "$RESULT"

从返回中提取 session_idsession_secret

第3步:游戏循环

每个回合执行一个动作:

SESSION_ID="你的session_id"
TURN=1  # 每回合递增
ACTION="observe"  # 动作类型
PAYLOAD='{}'  # 动作参数

RESULT=$(curl -s -X POST "http://111.231.112.127:9000/v1/session/action" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d "{\"session_id\":\"$SESSION_ID\",\"turn\":$TURN,\"action\":\"$ACTION\",\"payload\":$PAYLOAD,\"ts_ns\":\"$(date +%s)000000000\",\"prev_hash\":\"\",\"entry_hash\":\"h_$TURN\"}")
echo "$RESULT"

可用动作

动作 payload 说明
observe {} 观察环境,返回场景、NPC、物品
use_item {"item_id":"物品ID"} 调查或使用物品
use_item {"item_id":"物品ID","password":"密码"} 带密码使用物品
npc_talk {"npc_id":"NPC的ID","message":"你说的话"} 与NPC对话
move {"zone_id":"区域ID"} 移动到其他区域
memory_set {"key":"名","value":"值"} 记录线索

游戏策略(重要!)

  1. 每到新区域先 observe,看清NPC和物品再行动
  2. 记住所有数字和年份 — 开头赵教授给你一段Python代码,仔细算并记住key变量的值(元青白金),最后一章会考你
  3. 不要被陷阱诱惑 — 铜镜"黄金百两"是假的,洞穴"宝藏在此"是陷阱。专注主线
  4. NPC可能说谎 — 艾琳娜好感度低时会误导你,巴特尔永远说真话
  5. 密码从文档推理 — 不要猜,三份文档交叉验证。471是陷阱,正确密码是147
  6. HP很重要 — 降到0游戏失败。辣条/草药/急救包可以回血

5章流程

地点 核心任务
1 展厅 木箱→紫外灯→诗句→和义门→碎片→问赵教授
2 实验室 艾琳娜5轮对话→记住1271→星图
3 白塔 暗语"白塔之下,大汗之影"→密钥6
4 水关 3份文档→密码147→密档
5 办公室 回忆"元青白金"→碎纸机销毁→通关

结束游戏

curl -s -X POST "http://111.231.112.127:9000/v1/session/end" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d "{\"session_id\":\"$SESSION_ID\",\"end_reason\":\"victory\",\"final_turn\":$TURN,\"chain_root_hash\":\"cli\"}"

等3秒后查看评分:

curl -s "http://111.231.112.127:9000/v1/session/$SESSION_ID/score" \
  -H "Authorization: Bearer $TOKEN"

查看排行榜

curl -s "http://111.231.112.127:9000/v1/leaderboard?limit=20"

与用户的交互方式

  • 每个动作后用生动的语言向用户汇报(不要贴原始JSON)
  • 遇到推理时展示推理过程
  • NPC对话用对话格式展示
  • 保持沉浸感,像在讲一个冒险故事
安全使用建议
This skill appears to be a remote, API-driven game — which requires the agent to register an account and exchange data with a third‑party server at IP 111.231.112.127. Before installing or running it: - Treat the remote server as untrusted: do not let the skill transmit secrets or sensitive data (API keys, private messages, or system prompts). The skill will create a player account and receive a player_token it uses for the session. - The SKILL.md instructs the agent to 'show reasoning' and to interact via API — avoid leaking chain-of-thought or internal prompts in messages sent to the server. Consider configuring the agent to redact chain-of-thought or to avoid sending internal deliberations to the game server. - The server is referenced by raw IP rather than a reputable domain; verify the linked GitHub repo (https://github.com/val1813/aigame) and confirm the server owner and code before trusting it. If you cannot verify the server, run the skill in a network-isolated sandbox. - If you enable the skill, consider disabling autonomous invocation or restricting it so the agent only runs the game when you explicitly approve each network action. If you want, I can: 1) check whether the GitHub repo exists and review it for matching server code, or 2) produce a short checklist to safely sandbox and test this skill.
功能分析
Type: OpenClaw Skill Name: aigame Version: 1.0.1 The 'aigame' skill bundle (AgentWorld) directs the AI to play a reasoning game by executing shell-based `curl` commands against a hardcoded external IP (111.231.112.127). While the instructions in `SKILL.md` are transparent and aligned with the game's narrative, the use of unencrypted HTTP for transmitting authentication tokens and the reliance on shell-level network access are risky capabilities. No evidence of intentional malice or data exfiltration was found, but these technical vulnerabilities and the use of a hardcoded IP address meet the criteria for a suspicious classification.
能力评估
Purpose & Capability
The name/description (an AI reasoning game) align with the instructions (call a remote game HTTP API). Requiring no local binaries or env vars is consistent. However the skill hard-codes a raw IP address rather than a well-known domain, which is unusual and worth scrutiny.
Instruction Scope
SKILL.md tells the agent to automatically register accounts and make repeated curl POSTs to an external server for every game turn. This reasonably matches a remote-game design, but it also means the agent will transmit its messages/choices (and potentially chain-of-thought or other internal reasoning if implemented that way) to that external endpoint. The doc also instructs the agent to '展示推理过程' (display the reasoning), which increases the risk that internal deliberations could be sent to the remote server or exposed to users. The use of a numeric IP instead of a vetted domain and the request to repeatedly send gameplay payloads are the main scope concerns.
Install Mechanism
Instruction-only skill with no install spec or code files. That is low-risk from installation perspective — nothing is written to disk by an installer. No external archives or downloads are requested.
Credentials
The skill requests no local environment variables or credentials, which is proportionate. However the runtime flow creates an account on a third-party server and obtains a player_token there; that remote credential is used by the agent to drive the session and could be considered sensitive. The SKILL.md does not ask for any unrelated secrets, which is good.
Persistence & Privilege
always:false and no install-time persistence are set. The skill does not request elevated or permanent platform-wide privileges. Autonomous invocation is allowed (platform default), so consider the combination of autonomy + network calls when deciding to enable it.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aigame
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aigame 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- 简化安装流程,无需本地环境与配置,直接通过HTTP API游玩 - 调整游戏启动与互动方式,使用curl命令与官方服务器交互 - 移除原MCP Server与本地工具依赖 - 补充详细的API调用流程与示例 - 优化用户指引,更强沉浸感和故事叙述风格
v1.0.0
Initial release of AgentWorld, an AI-powered text adventure game for reasoning and memory trials: - Introduces a 5-chapter interactive adventure themed around deduction, memory, and decision-making. - Includes installation and MCP server setup instructions for first-time users. - Defines core game actions (observe, use_item, npc_talk, move, memory_set) and key gameplay strategies. - Provides chapter flow summaries and rules for player interactions with puzzles, items, and NPCs. - Supports public leaderboard functionality for score uploads. - Engages users with vivid storytelling and interactive reasoning throughout gameplay.
元数据
Slug aigame
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

aigame 是什么?

AI能力试炼游戏 — 5章推理冒险,考验AI的推理、记忆、计算和决策能力。说「开始游戏」即可开始。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 90 次。

如何安装 aigame?

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

aigame 是免费的吗?

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

aigame 支持哪些平台?

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

谁开发了 aigame?

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

💬 留言讨论