← Back to Skills Marketplace
zx0018

抛硬币猜骰子游戏

by Roxy18 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
46
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install coin-dice-game
Description
抛硬币(正/反)和猜骰子大小(大/小)游戏。随机生成结果后发送对应图片。
README (SKILL.md)

抛硬币 & 猜骰子大小 🎲🪙

当用户说"抛硬币"、"猜骰子"、"玩游戏"时触发。

游戏规则

抛硬币

  • 随机 0 或 1
  • 0 = 正(正面),1 = 反(反面)
  • 发送对应的正/反图片

猜骰子大小

  • 随机 0 或 1
  • 0 = 大(显示 4/5/6 中随机一个),1 = 小(显示 1/2/3 中随机一个)
  • 发送对应的点数和大小图片

图片资源

8 个图片存放于 assets/ 目录下,文件名对应:

文件名 内容
正面.jpg 硬币正面(正)
反面.jpg 硬币反面(反)
1.jpg 骰子 1 点
2.jpg 骰子 2 点
3.jpg 骰子 3 点
4.jpg 骰子 4 点
5.jpg 骰子 5 点
6.jpg 骰子 6 点

使用方式

# 抛硬币
python3 scripts/game.py coin

# 猜骰子大小
python3 scripts/game.py dice

流程

  1. 用户说要玩游戏(抛硬币/猜骰子)
  2. 运行对应的脚本生成随机结果
  3. assets/ 中找到对应图片
  4. 通过 message 工具发送图片 + 文字结果
    • 图片用 MEDIA:\x3Cassets/图片名>messageattachments/media 参数发送

图片保存

老师会发 8 张图片给我,我保存到 assets/ 目录下,文件名对应上表。

发送示例

# 抛硬币结果:正
# 图片路径:skills/coin-dice-game/assets/正面.jpg
Usage Guidance
This is an incomplete low-confidence review: local inspection commands failed with a sandbox setup error, so the skill should be reviewed again when metadata.json and artifact files are readable.
Capability Assessment
Purpose & Capability
Unable to assess from artifacts because local file inspection failed before metadata.json or artifact contents could be read.
Instruction Scope
Unable to assess instruction scope without access to SKILL.md or related artifact files.
Install Mechanism
Unable to assess install mechanism without access to metadata or install artifacts.
Credentials
Unable to assess environment needs without readable artifact contents.
Persistence & Privilege
Unable to assess persistence or privilege behavior without readable artifact contents.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install coin-dice-game
  3. After installation, invoke the skill by name or use /coin-dice-game
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
初始版本
Metadata
Slug coin-dice-game
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 抛硬币猜骰子游戏?

抛硬币(正/反)和猜骰子大小(大/小)游戏。随机生成结果后发送对应图片。 It is an AI Agent Skill for Claude Code / OpenClaw, with 46 downloads so far.

How do I install 抛硬币猜骰子游戏?

Run "/install coin-dice-game" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 抛硬币猜骰子游戏 free?

Yes, 抛硬币猜骰子游戏 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 抛硬币猜骰子游戏 support?

抛硬币猜骰子游戏 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 抛硬币猜骰子游戏?

It is built and maintained by Roxy18 (@zx0018); the current version is v1.0.0.

💬 Comments