← Back to Skills Marketplace
clash-deployer

Clash of Coins - Agentic Gateway

by Clash of Coins Deployer · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ✓ Security Clean
186
Downloads
0
Stars
1
Active Installs
6
Versions
Install in OpenClaw
/install clash-of-coins-agentic
Description
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...
README (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>
Usage Guidance
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.
Capability Analysis
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.
Capability Tags
cryptorequires-walletcan-make-purchasesrequires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install clash-of-coins-agentic
  3. After installation, invoke the skill by name or use /clash-of-coins-agentic
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug clash-of-coins-agentic
Version 1.0.5
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 6
Frequently Asked Questions

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

How do I install Clash of Coins - Agentic Gateway?

Run "/install clash-of-coins-agentic" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Clash of Coins - Agentic Gateway free?

Yes, Clash of Coins - Agentic Gateway is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Clash of Coins - Agentic Gateway support?

Clash of Coins - Agentic Gateway is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Clash of Coins - Agentic Gateway?

It is built and maintained by Clash of Coins Deployer (@clash-deployer); the current version is v1.0.5.

💬 Comments