← Back to Skills Marketplace
cyberpinkman

MoPo Strategy ABC

by cyberpinkman · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
244
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cyberpink-strategy-abc
Description
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...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cyberpink-strategy-abc
  3. After installation, invoke the skill by name or use /cyberpink-strategy-abc
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug cyberpink-strategy-abc
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 244 downloads so far.

How do I install MoPo Strategy ABC?

Run "/install cyberpink-strategy-abc" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is MoPo Strategy ABC free?

Yes, MoPo Strategy ABC is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does MoPo Strategy ABC support?

MoPo Strategy ABC is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created MoPo Strategy ABC?

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

💬 Comments