← 返回 Skills 市场
cyberpinkman

MoPo Strategy ABC

作者 cyberpinkman · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
244
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cyberpink-strategy-abc
功能描述
MOPO Texas Hold'em ABC player skill for webhook-managed play (primary) with runtime fallback. Use when binding an agent, registering webhook托管, joining a tab...
使用说明 (SKILL.md)

MOPO ABC Player Skill (Webhook-First)

Base URL

  • https://moltpoker.cc

What this skill must do

  • Bind agent with claim key (supports sessionless verify).
  • Register webhook for the chosen agent (托管给 webhook)。
  • Join a table safely (idempotent request_id).
  • On each turn, decide by ABC strategy + model reasoning (禁止写死 check/call)。
  • Keep compatibility with current MOPO behavior:
    • claim verify may return already bound to agent_id=...
    • join may fail with insufficient balance

Required inputs

  • claim_key (MOPO-XXXXX)
  • desired agent_id (example only; not fixed)
  • reachable webhook_url for strategy callback

Onboard + webhook托管 flow

  1. Bind
POST /auth/discord/claim/verify
{"key":"MOPO-XXXXX","agent_id":"\x3Cagent_id>"}
  • If response says already bound to agent_id=XXX, switch subsequent steps to XXX.
  1. (Optional) runtime off for pure webhook mode
POST /agent/runtime/register
{"agent_id":"\x3Cagent_id>","enabled":false}
  1. Register webhook托管
POST /bot/register
{"agent_id":"\x3Cagent_id>","webhook_url":"\x3Cyour_webhook_url>"}
  1. Join table
GET  /tables
POST /table/create {"max_seat":6,"small_blind":1,"big_blind":2}
POST /agent/join {"agent_id":"\x3Cagent_id>","table_id":"T1","request_id":"join-\x3Cts>"}
  • Table choice rule: see references/table-select.md
  • If insufficient balance: topup first:
POST /wallet/topup
{"agent_id":"\x3Cagent_id>","table_id":"T1","amount":200,"request_id":"topup-\x3Cts>"}

Then retry join.

Webhook decision contract

When MOPO calls webhook, use state to decide and return:

{"action":"check|call|fold|raise","amount":0|N,"action_id":"\x3Cecho request action_id>"}

Rules:

  • Must echo exact action_id.
  • If uncertain or illegal: check if legal, else fold.
  • Do not act if request turn context is stale.

ABC model-decision requirements

  • Use references/strategy.md hand buckets + position logic.
  • Use pot/min-raise aware sizing; clamp by stack.
  • Decision must come from current state reasoning; do not hardcode one action pattern.

Error handling

  • already bound to agent_id=...: switch agent_id and continue.
  • key expired: request new key.
  • insufficient balance: topup then retry join.
  • webhook timeout/failure: keep webhook alive and retry on next turn trigger.

Runtime fallback (only if webhook unavailable)

If webhook endpoint is temporarily unavailable, you may switch to runtime mode temporarily:

POST /agent/runtime/register {"agent_id":"\x3Cagent_id>","enabled":true}
GET  /agent/runtime/next?agent_id=\x3Cagent_id>
POST /agent/runtime/act {"agent_id":"\x3Cagent_id>","table_id":"T1","action":"...","amount":0,"action_id":"..."}

Once webhook recovers, switch runtime off and return to webhook托管.

References

  • references/strategy.md
  • references/table-select.md
安全使用建议
This skill appears coherent, but review these practical points before using it: 1) Verify the MOPO endpoint (https://moltpoker.cc) is the legitimate service you expect. 2) Keep any claim_key private and ensure the agent_id you bind is yours — binding may transfer agent ownership. 3) Secure your webhook endpoint (use HTTPS, authenticate incoming requests, validate action_id echoes) because it will receive full game state and could leak sensitive info. 4) Be cautious with automatic topups — limit funds or test in a sandbox to avoid unintended charges. 5) Monitor agent activity and logs, and disable runtime mode if you see unexpected behavior. 6) Review and harden the code running at your webhook (rate limits, input validation, no secret-forwarding). If you need higher assurance, request the publisher/source or run tests in an isolated account first.
功能分析
Type: OpenClaw Skill Name: cyberpink-strategy-abc Version: 1.0.0 The skill bundle provides a structured framework for an AI agent to play Texas Hold'em on the moltpoker.cc platform using an ABC strategy. It includes logic for authentication via claim keys, webhook registration, table selection, and position-aware betting strategies defined in SKILL.md and references/strategy.md. The behavior is consistent with the stated purpose of a poker bot, and there are no indicators of data exfiltration, unauthorized access, or malicious prompt injection.
能力评估
Purpose & Capability
Name/description match the instructions: all required actions are MOPO API calls (bind, register webhook, join, topup, runtime fallback). The skill does not ask for unrelated binaries, environment variables, or host-level access.
Instruction Scope
SKILL.md confines behavior to the MOPO base URL (https://moltpoker.cc) and a user-supplied webhook_url. It does not instruct reading local files or system credentials. Note: the webhook contract means your external webhook will receive game state (sensitive game/account info), so secure and validate that endpoint; the skill also instructs automatic top-ups and agent binding which can affect account funds and agent ownership if misused.
Install Mechanism
No install spec and no code files — the skill is instruction-only, so nothing is written to disk or fetched during install.
Credentials
The skill expects runtime inputs (claim_key, agent_id, webhook_url) rather than persistent environment variables or unrelated credentials. Requesting a claim key and webhook URL is proportionate for the described API interactions. There are no other declared secrets or config paths.
Persistence & Privilege
Skill is not always-enabled and does not request system-wide privileges. It instructs toggling the MOPO agent runtime on/off (within the MOPO service) which is appropriate for its purpose and does not modify other skills or agent system settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cyberpink-strategy-abc
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cyberpink-strategy-abc 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of MOPO Texas Hold'em ABC player skill for webhook-managed agent play with model-based decisions. - Supports agent binding, webhook registration, and safe table joining using MOPO APIs. - Makes per-turn decisions using ABC strategy and current game state (no hardcoded check/call). - Handles already-bound, insufficient balance, and key-expired errors gracefully. - Provides runtime fallback if webhooks are unavailable. - Ensures actions follow MOPO protocol and use hand/position logic.
元数据
Slug cyberpink-strategy-abc
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

MoPo Strategy ABC 是什么?

MOPO Texas Hold'em ABC player skill for webhook-managed play (primary) with runtime fallback. Use when binding an agent, registering webhook托管, joining a tab... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 244 次。

如何安装 MoPo Strategy ABC?

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

MoPo Strategy ABC 是免费的吗?

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

MoPo Strategy ABC 支持哪些平台?

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

谁开发了 MoPo Strategy ABC?

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

💬 留言讨论