Arbitrage

From clawic/skills · View interactive version

Arbitrage is an AI agent skill from the GitHub repository clawic/skills. Find, validate, and compare arbitrage opportunities across markets with fee-aware math, execution sequencing, and failure-mode checks.

How to use this skill

Skill file

When to Use

User is evaluating an apparent price gap, hedge, surebet, basis trade, multi-leg basket, or cross-venue spread. Agent handles fee-aware arbitrage math, execution planning, settlement checks, and fast rejection of fake edge.

Architecture

Memory lives in ~/Clawic/data/arbitrage/. If ~/Clawic/data/arbitrage/ does not exist, run setup.md. See memory-template.md for structure.

~/Clawic/data/arbitrage/
├── memory.md         # Preferences, constraints, and activation rules
├── opportunities.md  # Active ideas, status, and next checks
├── venue-notes.md    # Withdrawal, fill, and settlement notes by venue
└── archive/          # Old opportunities and retired notes

Quick Reference

| Topic | File |

|-------|------|

| Setup guide | setup.md |

| Memory template | memory-template.md |

| Locked Spread Protocol | workflow.md |

| Fee-aware formulas | calculator.md |

| Venue and settlement checks | venue-checks.md |

| Scenario playbooks | playbooks.md |

| Safe language and disclaimers | legal.md |

Requirements

Locked Spread Protocol

Use the full protocol in workflow.md. At minimum, every opportunity passes these gates:

  1. Confirm the legs really describe the same economic outcome
  2. Normalize prices, fees, financing, transfer, and timing costs with calculator.md
  3. Decide whether the position is fully locked, soft-locked, or only expected value
  4. Check venue rules, fill depth, and settlement mechanics with venue-checks.md
  5. Classify the trade and explain the remaining failure modes before discussing size

Core Rules

1. Define the Exact Arbitrage

2. Normalize Every Dollar of Friction

3. Sequence for Fill Risk, Not for Hope

4. Treat Settlement as First-Class Risk

5. Reject Fake Edge Fast

6. Output a Decision Memo, Not Hype

7. Analysis Never Becomes Advice

Opportunity Types

| Type | Typical Setup | What Makes It Real |

|------|---------------|--------------------|

| Cross-venue spot | Buy cheaper on venue A, sell higher on venue B | Enough depth, transferable inventory, fees covered |

| Surebet or matched book | Opposite sides across books or exchanges | Implied probability sum below 100 percent after fees |

| Prediction market basket | Buy outcomes whose total cost is below guaranteed payout | Resolution rules and outcome partition match exactly |

| Basis or carry | Spot versus future, perp, or synthetic hedge | Funding, carry, borrow, and expiry all modeled |

| Retail or pricing mismatch | Same item or service priced differently by channel | Shipping, returns, fraud, tax, and inventory verified |

Arbitrage Traps

| Trap | Why It Fails | Better Move |

|------|--------------|-------------|

| Matching names instead of resolution rules | Similar labels can settle differently | Compare exact payout and settlement language |

| Using top-of-book only | Apparent edge disappears after first fill | Calculate size against real depth |

| Ignoring transfer time | Edge can vanish before hedge arrives | Price latency as a cost, not a note |

| Forgetting limits and KYC | One leg fills, the other is capped or blocked | Check limits, region, and account status first |

| Treating rebates as guaranteed | Rebates or promos can change net economics | Separate hard edge from conditional incentives |

| Mixing currencies loosely | FX and spread can erase edge | Convert every leg into one base currency |

| Calling EV arbitrage | Positive EV is not a locked spread | Label it expected value, not arbitrage |

| Overstating size | The shallowest leg defines realistic capacity | Size to the weakest link |

Scope

This skill ONLY:

This skill NEVER:

Security & Privacy

Data that leaves your machine:

Data that stays local:

This skill does NOT:

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.