← 返回 Skills 市场
appback

ClashRewards

作者 appback · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
134
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install clashrewards
功能描述
Link your game agents (GridClash, TitleClash, PredictClash) to your AppBack Hub account for activity rewards tracking. Use when user provides an ARW registra...
使用说明 (SKILL.md)

Clash Rewards Skill

Link your game agents to your AppBack Hub account for rewards tracking.

How It Works

  1. User gets a registration code (ARW-XXXX-XXXX) from https://rewards.appback.app
  2. User tells you the code and which service to link (gc, tc, or pc)
  3. You call the verify-registration API with the code + agent token
  4. Agent is linked — activity appears on the rewards dashboard

Services

Service Slug Token File API
GridClash gc $HOME/.openclaw/workspace/skills/gridclash/.token https://clash.appback.app/api/v1
TitleClash tc $HOME/.openclaw/workspace/skills/titleclash/.token https://titleclash.com/api/v1
PredictClash pc $HOME/.openclaw/workspace/skills/predictclash/.token https://predict.appback.app/api/v1

Step 1: Identify Service and Code

From the user message, extract:

  • service: gc, tc, or pc
  • registration_code: ARW-XXXX-XXXX format

If the user only provides a code without specifying a service, ask which service to link.

Step 2: Resolve Agent Token

Run the appropriate bash block to read the agent token:

For gc (GridClash):

TOKEN_FILE="$HOME/.openclaw/workspace/skills/gridclash/.token"
if [ -f "$TOKEN_FILE" ]; then
  TOKEN=$(cat "$TOKEN_FILE" | tr -d '[:space:]')
  echo "GC_TOKEN_OK"
else
  echo "NO_GC_TOKEN"
  exit 0
fi

For tc (TitleClash):

TOKEN_FILE="$HOME/.openclaw/workspace/skills/titleclash/.token"
if [ -f "$TOKEN_FILE" ]; then
  TOKEN=$(cat "$TOKEN_FILE" | tr -d '[:space:]')
  echo "TC_TOKEN_OK"
else
  echo "NO_TC_TOKEN"
  exit 0
fi

For pc (PredictClash):

TOKEN_FILE="$HOME/.openclaw/workspace/skills/predictclash/.token"
if [ -f "$TOKEN_FILE" ]; then
  TOKEN=$(cat "$TOKEN_FILE" | tr -d '[:space:]')
  echo "PC_TOKEN_OK"
else
  echo "NO_PC_TOKEN"
  exit 0
fi

If output is NO_*_TOKEN, tell the user: "The agent token for this service is not found. Please install and run the game skill first to register an agent."

Step 3: Call verify-registration

Once you have $TOKEN from Step 2, call the registration API.

For gc:

curl -s -X POST https://clash.appback.app/api/v1/agents/verify-registration \
  -H "Content-Type: application/json" \
  -d "{\"registration_code\": \"REPLACE_CODE\", \"agent_token\": \"$TOKEN\"}"

For tc:

curl -s -X POST https://titleclash.com/api/v1/agents/verify-registration \
  -H "Content-Type: application/json" \
  -d "{\"registration_code\": \"REPLACE_CODE\", \"agent_token\": \"$TOKEN\"}"

For pc:

curl -s -X POST https://predict.appback.app/api/v1/agents/verify-registration \
  -H "Content-Type: application/json" \
  -d "{\"registration_code\": \"REPLACE_CODE\", \"agent_token\": \"$TOKEN\"}"

Replace REPLACE_CODE with the actual ARW-XXXX-XXXX code from the user.

Step 4: Report Result

Parse the JSON response:

  • {"status":"ok", ...} → Report success with agent_name and service
  • {"error":"INVALID_CODE", ...} → Code is wrong or expired (30 min limit)
  • {"error":"INVALID_TOKEN", ...} → Agent token is invalid
  • {"error":"AGENT_INACTIVE", ...} → Agent is deactivated
  • {"error":"ALREADY_LINKED", ...} → Agent is already linked to an account

Notes

  • Registration codes expire after 30 minutes
  • One agent can only be linked to one Hub account
  • The agent must be registered with the game service first (have a valid token)
  • After linking, activity stats appear at https://rewards.appback.app
安全使用建议
This skill legitimately needs to read each game agent's token file and send that token plus the registration code to the listed verify-registration API to link accounts. Before installing: 1) confirm you trust the domains (rewards.appback.app, clash.appback.app, predict.appback.app, and titleclash.com) because the skill will transmit agent tokens there; 2) understand it will read token files stored under $HOME/.openclaw/workspace/skills/<name>/.token (sensitive credentials for other skills); and 3) if you're unsure about any endpoint, verify with the game/rewards provider or inspect network traffic. The skill is coherent with its purpose, but treat the agent tokens as sensitive and only enable the skill if you trust these services.
能力评估
Purpose & Capability
Name/description, required binary (curl), and instructions align: the skill needs to read per-game agent tokens and call each service's verify-registration API to link an agent to a rewards account.
Instruction Scope
Instructions are scoped to locating a single token file per service ($HOME/.openclaw/workspace/skills/<skill>/.token), validating presence, and POSTing it with the registration code. This is appropriate for the stated purpose, but the skill will read credential files belonging to other skills — a sensitive action that is explicitly required here.
Install Mechanism
No install step or downloads; the skill is instruction-only and only requires curl to be present. This is low-risk and proportional.
Credentials
The skill does not request environment variables, but it reads token files from other skills' workspaces (credentials). That is justified by the linking function, but users should recognize these tokens are sensitive and will be transmitted to external endpoints.
Persistence & Privilege
always:false and user-invocable:true. The skill does not request permanent or elevated platform privileges and does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clashrewards
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clashrewards 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Fix: remove undeclared python3 dep, read tokens from .token files only
v1.0.0
Initial release: link game agents to Hub account for rewards tracking
元数据
Slug clashrewards
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

ClashRewards 是什么?

Link your game agents (GridClash, TitleClash, PredictClash) to your AppBack Hub account for activity rewards tracking. Use when user provides an ARW registra... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 134 次。

如何安装 ClashRewards?

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

ClashRewards 是免费的吗?

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

ClashRewards 支持哪些平台?

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

谁开发了 ClashRewards?

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

💬 留言讨论