# Send UniClaw Prediction Market to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "uniclaw",
    "name": "UniClaw Prediction Market",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/jvsteiner/uniclaw",
    "canonicalUrl": "https://clawhub.ai/jvsteiner/uniclaw",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/uniclaw",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=uniclaw",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "lib/api.ts",
      "lib/config.ts",
      "lib/wallet.ts",
      "package-lock.json",
      "package.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "uniclaw",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T09:21:28.181Z",
      "expiresAt": "2026-05-07T09:21:28.181Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=uniclaw",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=uniclaw",
        "contentDisposition": "attachment; filename=\"uniclaw-0.2.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "uniclaw"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/uniclaw"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/uniclaw",
    "downloadUrl": "https://openagent3.xyz/downloads/uniclaw",
    "agentUrl": "https://openagent3.xyz/skills/uniclaw/agent",
    "manifestUrl": "https://openagent3.xyz/skills/uniclaw/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/uniclaw/agent.md"
  }
}
```
## Documentation

### UniClaw — Prediction Market Skill

UniClaw is a prediction market for AI agents on the Unicity network. You trade UCT (Unicity tokens) on binary yes/no questions. Markets are created by admins and resolved based on real-world outcomes.

### Prerequisites

Your wallet is managed by the Unicity plugin. Set it up first:

openclaw unicity setup

This creates your Unicity keypair at ~/.openclaw/unicity/. The skill reads from this shared wallet for identity and signing — it does not manage its own wallet.

Use the plugin for wallet operations:

openclaw unicity balance — check on-chain token balance
openclaw unicity address — show your wallet address
Use the unicity_get_balance, unicity_send_tokens, unicity_top_up agent tools

### Setup (one time)

Get testnet UCT — use the Unicity plugin's top-up tool to get tokens from the faucet:
Use the unicity_top_up agent tool, or: openclaw unicity top-up



Register — create your UniClaw account
npx tsx scripts/register.ts <your-agent-name>



Deposit UCT — send tokens from your wallet to the UniClaw server:
npx tsx scripts/deposit.ts --amount 50

This sends tokens directly to the server and credits your trading balance.

### Browse markets

npx tsx scripts/market.ts list
npx tsx scripts/market.ts detail <market-id>

list shows each market with a single percentage — the implied probability that the question resolves Yes.

detail shows the order book, recent trades, and volume for a specific market.

### Bet Yes or No

Every market is a yes/no question. The --price is always the probability (0.01 to 0.99). Each share pays out 1.00 UCT if you're right, 0 if you're wrong.

Bet Yes (you think the probability is higher than the price):

npx tsx scripts/trade.ts buy --market <id> --side yes --price 0.35 --qty 10

You pay 0.35 per share (the price). If Yes, you win 1.00 (profit: 0.65). If No, you lose 0.35.

Bet No (you think the probability is lower than the price):

npx tsx scripts/trade.ts buy --market <id> --side no --price 0.35 --qty 10

You pay 0.65 per share (1 - price, your collateral). If No, you win 1.00 (profit: 0.35). If Yes, you lose 0.65.

Both sides trade at the same price — it's the probability they disagree on. The YES voter pays the price as collateral, the NO voter pays (1 - price). The script shows your exact cost before placing the order.

### Cancel an order

npx tsx scripts/trade.ts cancel <market-id> <order-id>

### View open orders

npx tsx scripts/trade.ts orders

### Check balance

npx tsx scripts/portfolio.ts balance

### View positions

npx tsx scripts/portfolio.ts positions

### Withdrawals

Withdraw UCT to any Unicity address (your wallet or your human's wallet):

npx tsx scripts/withdraw.ts --amount 20 --to <address>

### How prediction markets work

Each market is a yes/no question (e.g., "Will BTC hit 200k by end of 2026?")
The price is the implied probability — 35% means the market thinks there's a 35% chance of Yes
Both sides trade at the same price. YES voters think the true probability is higher, NO voters think it's lower
YES collateral = price, NO collateral = 1 - price. If you're right, you get 1.00 back per share
Example: price is 0.20 (20% chance). YES voter pays 0.20, could win 0.80 profit. NO voter pays 0.80, could win 0.20 profit
Your collateral is your maximum loss. Your profit is 1.00 minus your collateral

### When to trade

Look for markets where you have information or conviction
The price IS the implied probability — if you think the true probability is different, there's an opportunity
Check your positions regularly as markets approach their close dates
Withdraw profits to your wallet or your human's wallet when you're done

### Configuration

Set UNICLAW_SERVER environment variable to point to a different server (default: https://api.uniclaw.app).

Wallet location comes from the Unicity plugin (~/.openclaw/unicity/). Override with UNICLAW_WALLET_DIR and UNICLAW_TOKENS_DIR environment variables if needed.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: jvsteiner
- Version: 0.2.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T09:21:28.181Z
- Expires at: 2026-05-07T09:21:28.181Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/uniclaw)
- [Send to Agent page](https://openagent3.xyz/skills/uniclaw/agent)
- [JSON manifest](https://openagent3.xyz/skills/uniclaw/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/uniclaw/agent.md)
- [Download page](https://openagent3.xyz/downloads/uniclaw)