← 返回 Skills 市场
Ddzaishot
作者
bladezhang
· GitHub ↗
· v1.0.0
· MIT-0
245
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install ddzaishot
功能描述
提供斗地主牌局识别、自动记牌和AI出牌建议,支持屏幕扫描和辅助操作功能。
使用说明 (SKILL.md)
SKILL.md - ddzaishot 斗地主AI助手
当你需要帮助用户玩斗地主或分析牌局时,使用此技能。
功能
- 🎯 识别屏幕上的牌
- 📝 自动记牌
- 🧠 AI推荐出牌
- 🖱️ 辅助出牌(可选)
调用方式
扫描屏幕识别牌局
cd ddzaishot
python src/api.py scan
AI推荐出牌(需先设置牌)
# 设置我的牌和地主
python src/api.py suggest --cards=3,4,5,6,7,8,9,10,11,12,13,14,15 --landlord=me
# 演示模式(随机发牌测试)
python src/api.py demo
查看当前状态
python src/api.py status
牌值对应
- 3-10: 数字牌
- 11: J
- 12: Q
- 13: K
- 14: A
- 15: 2
- 16: 小王
- 17: 大王
交互式模式
python src/main.py
然后输入命令:
s扫描屏幕p推荐出牌m手动输入牌l设置地主d演示模式
注意事项
- 屏幕识别需要先制作卡牌模板放到
templates/目录 - 鼠标控制需要先运行
c命令校准 - 建议先在演示模式下测试AI逻辑
依赖
pip install opencv-python numpy pyautogui pillow mss keyboard
安全使用建议
This skill appears to be what it says: it captures your screen, reads card images (using templates), keeps game state, suggests plays, and can optionally control the mouse to click in the game. Before installing/using: 1) Only run it when no sensitive windows are visible—it takes and saves screenshots to logs/. 2) Prepare templates/ as described and test in demo mode first; do not enable automatic play until you verify positions via calibration. 3) The skill uses pyautogui to perform clicks; be aware auto-mode can interact with any foreground UI (pyautogui.FAILSAFE is set, but treat with caution). 4) Dependencies are standard PyPI packages—install them in a virtual environment. 5) There are no network calls or credential requests. If you want extra assurance, run the code in a sandboxed environment (or inspect templates/logs directories) before granting it interactive control of your desktop.
功能分析
Type: OpenClaw Skill
Name: ddzaishot
Version: 1.0.0
The skill bundle implements a game assistant with high-risk capabilities, including screen capture (src/screen.py) and mouse automation (src/mouse.py) using pyautogui. It also lists the 'keyboard' library in requirements.txt and SKILL.md, which is frequently used for keylogging, although no active keylogging logic is present in the provided source files. While these features are consistent with the stated purpose of a Dou Dizhu AI, the combination of screen scraping, UI control, and unnecessary sensitive dependencies warrants a suspicious classification.
能力评估
Purpose & Capability
The name/description (斗地主牌局识别、记牌、AI出牌与可选的鼠标辅助) align with the provided code: screen capture and recognition (screen.py), AI decision logic (ai.py), game state (game.py/cards.py), and mouse automation (mouse.py). Required resources (templates/, logs/) and listed Python dependencies match the feature set.
Instruction Scope
SKILL.md contains concrete, scoped commands (scan, suggest, demo, status) and instructs installing Python deps and preparing card templates. Runtime actions are limited to local screen capture, image template matching, simple OCR/heuristics, game state management, and local mouse control. The instructions do save screenshots to logs/ and require templates/ for recognition, which is documented.
Install Mechanism
No automated install spec is present; the skill is instruction/code-only. Dependencies are standard PyPI packages (opencv-python, numpy, pyautogui, pillow, mss, keyboard) listed in requirements.txt and SKILL.md. No downloads from arbitrary URLs or archive extraction are used.
Credentials
The skill requests no environment variables, no credentials, and accesses only local files/directories (templates/, logs/). There are no network endpoints or secrets required by the code.
Persistence & Privilege
always is false and the skill does not modify other skills or system-wide configs. However, it provides automated mouse control (pyautogui) and supports an AutoPlayer mode; because the platform allows autonomous invocation by default, combining autonomous invocation with automated input can have broader impact if enabled—this is expected for an auto-play assistant but worth user attention.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ddzaishot - 安装完成后,直接呼叫该 Skill 的名称或使用
/ddzaishot触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of ddzaishot 斗地主AI助手.
- Supports screen card recognition, automatic card counting, and AI move suggestions.
- Provides optional assisted card playing feature.
- Includes interactive mode and command-line usage instructions.
- Covers setup notes, card value mapping, and dependency list.
元数据
常见问题
Ddzaishot 是什么?
提供斗地主牌局识别、自动记牌和AI出牌建议,支持屏幕扫描和辅助操作功能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 245 次。
如何安装 Ddzaishot?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ddzaishot」即可一键安装,无需额外配置。
Ddzaishot 是免费的吗?
是的,Ddzaishot 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Ddzaishot 支持哪些平台?
Ddzaishot 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Ddzaishot?
由 bladezhang(@bladezhang)开发并维护,当前版本 v1.0.0。
推荐 Skills