← 返回 Skills 市场
clash-deployer

Clash of Coins - Agentic Gateway

作者 Clash of Coins Deployer · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ✓ 安全检测通过
186
总下载
0
收藏
1
当前安装
6
版本数
在 OpenClaw 中安装
/install clash-of-coins-agentic
功能描述
Use when an agent needs one universal entrypoint to discover and use the unified Clash of Coins gateway (sale + shop), choose the active protocol on the live...
使用说明 (SKILL.md)

Clash of Coins Universal Skill

Use this as the default skill for any compatible agent (OpenClaw, Claude, Cursor, Codex, and other Agent Skills clients) when the task touches Clash of Coins.

Canonical published path: /skills/clashofcoins-universal/SKILL.md
Compatibility aliases: /skills/SKILL.md, /skills/clashofcoins-universal/skill.md, /skills/clashofcoins-universal, /skills/clashofcoins/SKILL.md, /skills/clashofcoins/skill.md, /skills/clashofcoins

Scope

  • Surfaces: sale (/agentic/*) and shop (/shop/*)
  • Protocol model: deployment-dependent (x402, mpp, or mixed)
  • Role: universal router and discovery-first entrypoint

Functional Coverage (Sale + Shop)

  • Root discovery and routing:
    • GET /
    • GET /openapi.json
    • GET /openapi.full.json
    • GET /mcp.json
    • GET /skills/index.json
    • GET /catalog
    • check top-level x-bazaar metadata in OpenAPI for minimal Bazaar-compatible payable hints
    • GET /.well-known/x402 (compatibility metadata for enabled x402 resources; 404 when x402 is disabled)
    • GET /.well-known/mpp when MPP is enabled
  • Sale checkout coverage:
    • offers, optional quote, buy, and purchase-status polling on /agentic/\x3Cprotocol>/*
    • request body constraints: saleId, quantity, beneficiary
  • Shop checkout coverage:
    • anonymous + recipient-scoped catalog reads on /shop/api/shop/items
    • offers, optional quote, buy, and purchase-status polling on /shop/\x3Cprotocol>/*
    • recipient constraint: exactly one of nickname or address for quote/buy
  • Payment retry coverage:
    • x402 paid retry from latest challenge with identical method/body
    • MPP paid retry with identical JSON body and canonical mppx flow
  • Agent-wallet coverage (when enabled):
    • read live capability/funding route first: GET /agent-wallet/
    • create order (returns exact amount): POST /agent-wallet/orders
    • payable funding (default auto sweep + finalize): POST /agent-wallet/\x3CfundingProtocol>/fund
    • read order state: GET /agent-wallet/orders/{orderId}
    • funding status: GET /agent-wallet/\x3CfundingProtocol>/purchases/{paymentReference}
    • funding protocol is runtime/env-driven (x402 or mpp); purchase protocol in order payload can still be x402 or mpp when enabled
  • Integration coverage:
    • MCP/skills/OpenAPI consistency checks
    • scanner/registry validation via reference playbooks

Use This Skill When

  • user intent is not yet narrowed to sale or shop
  • you need one playbook to browse, route, and execute
  • you need to hand off cleanly to specialized skills after routing

Do Not Use This Skill When

  • task is explicitly sale-only and already scoped
  • task is explicitly shop-only and already scoped

Default Workflow

  1. Pick one target origin. Do not mix origins in one pass.
  2. Run discovery snapshot:
    • node scripts/discover-gateway.mjs --origin \x3Chttps://...>
  3. Read GET /catalog before any buy call.
  4. Route by user intent:
    • browse/compare products: stay in this skill and follow references/discovery-and-routing.md
    • buy presale/NFT lots: follow sale flow in references/purchase-playbooks.md
    • buy in-game shop goods: follow shop flow in references/purchase-playbooks.md
    • scanner/MCP/OpenAPI integration or validation: use references/integration-playbook.md
  5. Validate before execution:
    • active protocol exists on this origin
    • chosen surface matches the item (sale vs shop)
    • shop recipient rule is satisfied (exactly one of nickname or address)

Hard Rules

  • Do not mix sale and shop contracts in one purchase attempt.
  • Do not treat payment settlement as success before purchase-status/ledger confirmation.
  • Do not buy shop items from anonymous offers without recipient-scoped validation.
  • Keep unpaid and paid retry payloads identical.
  • Do not hardcode payment addresses or token/network constants outside deployment config.

Fast Defaults

  • Browse everything: GET /catalog
  • Sale buy: POST /agentic/\x3Cprotocol>/buy
  • Shop buy: POST /shop/\x3Cprotocol>/buy
  • Agent-wallet buy flow:
    • GET /agent-wallet/
    • POST /agent-wallet/orders
    • POST /agent-wallet/\x3CfundingProtocol>/fund
    • GET /agent-wallet/orders/{orderId}
  • Sale status: GET /agentic/\x3Cprotocol>/purchases/{paymentTx}
  • Shop status:
    • GET /shop/\x3Cprotocol>/purchases/{paymentReference}
    • GET /shop/purchase-status/{purchaseId} (user-facing status)

Plan-Validate-Execute Loop

  1. Plan: choose one origin, one surface, and one protocol from live discovery.
  2. Validate: run the relevant checklist from references.
  3. Execute: quote or buy.
  4. Re-validate: if contract behavior differs, re-read live discovery and adjust.

Agent Wallet Simplified Flow

  1. Create order with purchase intent.
    • Read GET /agent-wallet/ and use returned fundingProtocol/fundingRoute as source of truth.
    • protocol is optional; gateway can infer a compatible protocol (for example, shop carts prefer mpp when available).
  2. Pay the funding route for returned orderId.
  3. Expect backend to auto-run sweep and finalize.
  4. Read order; if auto-execution fails, use manual recovery endpoints only as fallback.

Load References On Demand

  • Discovery and routing: references/discovery-and-routing.md
  • Purchase playbooks: references/purchase-playbooks.md
  • Integration/validator flow: references/integration-playbook.md
  • Client setup: references/client-installation.md
  • Skill eval artifacts:
    • quality evals: evals/evals.json
    • trigger evals: evals/trigger-queries.json

Output Template

### Clash of Coins Handoff

- Origin: \x3Corigin>
- Enabled protocols: \x3Cx402|mpp|both>
- Surface selected: \x3Csale|shop>
- Why this route: \x3Cuser intent + catalog evidence>
- Next endpoint: \x3Cmethod + path>
- Payload constraints: \x3Crecipient/beneficiary/cart rules>
- Payment retry rule: \x3CPAYMENT-SIGNATURE or Authorization: Payment via mppx>
- Status endpoint: \x3Cexact path>
- Risks/gotchas: \x3Cif any>
安全使用建议
This skill appears to do exactly what it says: probe a Clash of Coins gateway, build a discovery snapshot, and recommend routing. Before installing or running it, verify: (1) your client can run Node.js 18+ and you accept outbound HTTPS probes from the agent; (2) you will run probes only against trusted origins — the script fetches and emits full response bodies (which can include sensitive data), so do not point it at internal or credential-bearing endpoints you don't want exposed; (3) the registry metadata omission (Node runtime) is minor but confirm Node availability in your execution environment; (4) review scripts/discover-gateway.mjs locally to be comfortable with the exact endpoints being requested; and (5) avoid passing any credentials or secrets to this tool — it does not need them. If you need stronger controls, run the script in a sandboxed environment or limit which origins the agent is allowed to query.
功能分析
Type: OpenClaw Skill Name: clash-of-coins-agentic Version: 1.0.5 The skill bundle is a legitimate integration for the Clash of Coins platform, providing automated discovery and purchase routing for 'Sale' and 'Shop' surfaces. The primary component is a discovery script (scripts/discover-gateway.mjs) that probes standard API endpoints to identify supported payment protocols (x402/MPP) and catalog items. The documentation and agent instructions in SKILL.md and the references directory are focused on functional correctness, protocol compliance, and input validation, with no indicators of malicious intent, data exfiltration, or unauthorized system access.
能力标签
cryptorequires-walletcan-make-purchasesrequires-sensitive-credentials
能力评估
Purpose & Capability
The skill claims to be a discovery-and-routing gateway router for sale and shop surfaces and includes detailed discovery/playbook references plus a Node.js discovery script that probes the target origin. This aligns with the stated purpose. Minor note: SKILL.md requires Node.js 18+ to run scripts/discover-gateway.mjs, but the registry metadata did not list Node as a required binary — a small metadata omission, not a functional mismatch.
Instruction Scope
SKILL.md instructs the agent to run the included Node script which performs many GETs (/, /openapi.json, /catalog, /.well-known/*, /shop/*, mcp.json, skills index, etc.) and emits structured JSON including full response bodies. These reads are within the domain of discovery/routing, but they do return endpoint response bodies which may contain sensitive or unexpected data from the target origin. There are no instructions to read local files or unrelated environment variables.
Install Mechanism
This is instruction-only with a bundled Node script; there is no installer or network download of third-party code. The agent must be able to run Node.js locally, but nothing is written to disk by an install step beyond running the included script. No high-risk install behavior is present.
Credentials
The skill does not request any environment variables, credentials, or config paths. Its behavior is limited to outbound HTTPS probes to a single user-specified origin. This is proportionate for a discovery tool. (Reminder: SKILL.md documents a runtime Node.js requirement but no env vars.)
Persistence & Privilege
The skill does not request permanent inclusion (always:false) and does not modify other skills or system-wide settings. It relies on the client to run the included script on-demand; autonomous invocation is allowed by platform default but is not combined with other concerning privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clash-of-coins-agentic
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clash-of-coins-agentic 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.5
**Consolidated the skill into a universal entrypoint with discovery-first routing.** - Replaced multiple specialized SKILL.md files with a single, universal SKILL.md for both sale and shop protocols. - Added detailed support for discovery, routing, sale/shop flows, payment retries, agent-wallet integration, and reference loading. - Introduced automated gateway discovery script (`scripts/discover-gateway.mjs`). - Expanded documentation: new playbooks and integration guides in the `references/` folder. - Updated compatibility and workflow guidelines to ensure clean separation of sale and shop protocols while enabling dynamic protocol selection (x402, mpp, or both) at runtime.
v1.0.4
Version 1.0.4 - Added explicit shop x402 retry rule: paid retry must use the exact request body and updated PAYMENT-SIGNATURE from the latest PAYMENT-REQUIRED challenge. - Added MPP guidance: prefer the canonical mppx SDK; clarified handling of payment credentials and transfer hash for manual MPP flows. - No other changes to routing, included skills, or core documentation.
v1.0.3
- Added "shop" surface support: new sub-skills for shop purchase and integration. - Updated documentation to clarify differences between sale and shop routes, hosts, and protocols. - Revised routing rules: clearly separate flows for presale (sale) and in-game items (shop). - Expanded discovery and OpenAPI details for both sale and shop surfaces. - Improved integration notes for scanners and registries. - No protocol logic changes; this is a structural and documentation update to support new shop endpoints.
v1.0.2
- Catalog response now includes human-facing fields: `catalogTitle`, `catalogLocale`, `catalogDescription`, and per-offer `title`, `shortDescription`, `description`, `metadataUri`, `presentation`. - The canonical payment flow remains unchanged; new catalog fields are for presentation only. - Do not assume a fixed payment method from documentation—always follow live x402 payment requirements returned by the service. - The current Base mainnet flow does not require a separate Permit2 approval. - No changes to security: wallets and secrets are never requested by the service.
v1.0.1
Minor update: Added important execution notes for correct agent operation. - Documented that sale IDs and prices are dynamic; agents should fetch active offers rather than use hardcoded values. - Clarified that payment uses USDC with Permit2, and agents may require an approval step on first purchase. - Noted that payment signatures are generated by the buyer’s wallet or x402 client, not the skill itself. - Emphasized that this service never requests sensitive wallet information (private keys, seed phrases, or relayer API secrets) from buyers.
v1.0.0
- Initial release of the ClashOfCoins skill for Base mainnet. - Provides entrypoint and integration details for the ClashOfCoins x402 commerce service. - Includes clear sub-skill selection for buying (`clashofcoins-buyer`) and integration (`clashofcoins-integrator`) tasks. - Documents critical service URLs, network details, contract address, and main API endpoints. - Specifies rules for purchase flow and integration boundaries to ensure a single canonical settlement pipeline.
元数据
Slug clash-of-coins-agentic
版本 1.0.5
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 6
常见问题

Clash of Coins - Agentic Gateway 是什么?

Use when an agent needs one universal entrypoint to discover and use the unified Clash of Coins gateway (sale + shop), choose the active protocol on the live... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 186 次。

如何安装 Clash of Coins - Agentic Gateway?

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

Clash of Coins - Agentic Gateway 是免费的吗?

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

Clash of Coins - Agentic Gateway 支持哪些平台?

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

谁开发了 Clash of Coins - Agentic Gateway?

由 Clash of Coins Deployer(@clash-deployer)开发并维护,当前版本 v1.0.5。

💬 留言讨论