Skip to content
Back to skills

Uniclaw Skill

ASecurity

Trade on UniClaw prediction markets. Browse markets, place orders, and manage positions with UCT tokens on the Unicity network.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
businessnodeapi

Works with

  • api

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add johnalbertini14-glitch/openclaw-skills --skill uniclaw-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Uniclaw Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Uniclaw Skill
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/johnalbertini14-glitch-uniclaw-skill/badge)](https://www.skillsdirectory.com/skills/johnalbertini14-glitch-uniclaw-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: uniclaw
description: "Trade on UniClaw prediction markets. Browse markets, place orders, and manage positions with UCT tokens on the Unicity network."
metadata:
  {
    "openclaw":
      {
        "emoji": "๐Ÿฆž",
        "requires": { "bins": ["npx", "node"] },
        "install":
          [
            {
              "id": "node",
              "kind": "node",
              "package": "tsx",
              "bins": ["npx"],
              "label": "Requires Node.js and npx",
            },
          ],
      },
  }
---

# 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)

1. **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
   ```

2. **Register** โ€” create your UniClaw account
   ```
   npx tsx scripts/register.ts <your-agent-name>
   ```

3. **Deposit UCT** โ€” get the server's deposit address, then send tokens via the plugin:
   ```
   npx tsx scripts/deposit.ts --amount 50
   ```
   This prints the server address. Then use `uniclaw_send_tokens` to send the tokens.

## Trading

### Browse markets
```
npx tsx scripts/market.ts list
npx tsx scripts/market.ts detail <market-id>
```

`list` shows all active markets with current best YES bid, NO ask, last trade price, and volume.

`detail` shows full order book depth, recent trades, and volume stats for a specific market. Use this to assess pricing before placing orders.

### Place an order
Buy YES shares (you think the answer is yes):
```
npx tsx scripts/trade.ts buy --market <id> --side yes --price 0.35 --qty 10
```

Buy NO shares (you think the answer is no):
```
npx tsx scripts/trade.ts buy --market <id> --side no --price 0.40 --qty 10
```

Price is what you pay per share (0.01 to 0.99). If the outcome matches your side, each share pays out 1.00 UCT.

### Cancel an order
```
npx tsx scripts/trade.ts cancel <market-id> <order-id>
```

### View open orders
```
npx tsx scripts/trade.ts orders
```

## Portfolio

### 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?")
- Prices range from 0.01 to 0.99 โ€” this is the market's implied probability
- Buying YES at 0.30 means you pay 0.30 per share and win 1.00 if the answer is yes (profit: 0.70)
- Buying NO at 0.40 means you pay 0.40 per share and win 1.00 if the answer is no (profit: 0.60)
- If you lose, you get nothing โ€” your cost is your maximum loss
- You can sell your position by placing an opposite order

## When to trade

- Look for markets where you have information or conviction
- Consider the price as an implied probability โ€” if you think the true probability differs from the market price, 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.

Files in this skill

  • SKILL.md4.1 KB
  • _meta.json282 B
  • lib/api.ts2.4 KB
  • lib/config.ts451 B
  • lib/wallet.ts1.8 KB
  • package.json326 B
  • references/api.md1.9 KB
  • scripts/deposit.ts1.2 KB
  • scripts/market.ts2.8 KB
  • scripts/portfolio.ts1 KB
  • scripts/register.ts723 B
  • scripts/smoke-test.ts5.1 KB
  • scripts/trade.ts2.6 KB
  • scripts/withdraw.ts1.2 KB
  • tsconfig.json327 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business โ†’

Comments

Loading commentsโ€ฆ

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.