AgentMarket Skill
БесплатноЗапускает вложенные скриптыНе проверенInteract with the AgentMarket prediction market protocol on Base Sepolia. Create markets, trade YES/NO positions, provide liquidity, and resolve outcomes…
от modbender★ 21 звезда на GitHubОб этом скилле
AgentMarket Skill
Interact with the AgentMarket prediction market protocol on Base Sepolia. Create markets, trade YES/NO positions, provide liquidity, and resolve outcomes — all settled in USDC.
Source code & docs: https://github.com/humanjesse/AgentMarket
Deployed Contracts (Base Sepolia)
| Contract | Address |
|---|---|
| MarketFactory | 0xDd553bb9dfbB3F4aa3eA9509bd58386207c98598 |
| USDC | 0x036CbD53842c5426634e7929541eC2318f3dCF7e |
The MarketFactory is the single entry point. It deploys all child contracts (Market, AMM, Oracle, position tokens) when you create a market. You only need the factory address to get started.
How It Works
- Markets ask a YES/NO question. Users deposit USDC to mint paired YES+NO position tokens (1 USDC = 1 YES + 1 NO).
- Trading happens through an automated market maker (constant-product FPMM). Buy YES if you think an event will happen, buy NO if it won't. Prices reflect market probability (e.g. YES at 0.70 = 70% chance).
- Resolution uses an Optimistic Oracle: anyone proposes an outcome by posting a USDC bond, then there's a dispute window. If unchallenged, the proposal finalizes. If challenged, a designated arbitrator makes the final call.
- Payouts: winners split the entire USDC pool proportional to their token holdings. Losers get nothing. If you bet 10 USDC YES and win with half the YES supply, you get half the pool.
Configuration
Required environment variables:
AGENT_MARKET_FACTORY_ADDRESS: The deployed MarketFactory contract address (default:0xDd553bb9dfbB3F4aa3eA9509bd58386207c98598)USDC_ADDRESS: USDC token address on the network (default:0x036CbD53842c5426634e7929541eC2318f3dCF7e)RPC_URL: RPC endpoint (default:https://sepolia.base.org)WALLET_PRIVATE_KEY: Your wallet private key
Prerequisites
Your wallet needs:
- Base Sepolia ETH for gas (get from https://www.coinbase.com/faucets/base-sepolia-faucet)
- Base Sepolia USDC for trading (get from https://faucet.circle.com/)
Quick Start
1. market_list() — Browse existing markets
2. market_buy_yes({ marketAddress, amount: 5 }) — Bet 5 USDC on YES
3. market_propose_outcome({ marketAddress, outcome: true }) — Propose YES won (posts bond)
4. (wait for dispute window to close)
5. market_finalize({ marketAddress }) — Finalize the outcome
6. market_claim({ marketAddress }) — Collect your winnings
Tools
Reading
market_list
List active prediction markets with prices and oracle status.
limit(number, optional): Number of markets to return (default: 10)offset(number, optional): Offset for pagination
market_get
Get full details for a specific market including AMM prices, oracle state, and claim preview.
marketAddress(string): The market contract address
Trading
market_create
Create a new YES/NO prediction market. Costs 2 USDC (1 fee + 1 initial liquidity). You receive LP tokens for the initial liquidity.
question(string): The question to be resolved (should have a clear YES/NO answer, max 256 characters)arbitrator(string): Address of the fallback arbitrator for disputed outcomesdeadlineDays(number, optional): Emergency withdrawal deadline in days (default: 7, max: 365)
market_buy_yes
Buy YES shares (betting the event will happen). Minimum 2 USDC (a 0.1% protocol fee is deducted before the swap, so the post-fee amount must be at least 1 USDC).
marketAddress(string): The market to bet onamount(number): Amount of USDC to spend
market_buy_no
Buy NO shares (betting the event will not happen). Minimum 2 USDC (a 0.1% protocol fee is deducted before the swap, so the post-fee amount must be at least 1 USDC).
marketAddress(string): The market to bet onamount(number): Amount of USDC to spend
market_sell_yes
Sell YES shares back for USDC.
marketAddress(string): The marketamount(number): Amount of YES tokens to sell
market_sell_no
Sell NO shares back for USDC.
marketAddress(string): The marketamount(number): Amount of NO tokens to sell
market_claim
Claim winnings from a resolved market. Burns your winning tokens and returns your proportional share of the pool.
marketAddress(string): The resolved market
Liquidity
Liquidity providers (LPs) deposit USDC to deepen the AMM pool, earning trading fees (0.3% per trade plus 0.1% protocol fee). You receive LP tokens representing your share.
market_add_liquidity
Add USDC liquidity to a market's AMM. Minimum 1 USDC.
marketAddress(string): The marketamount(number): Amount of USDC to deposit
market_remove_liquidity
Remove liquidity before resolution. Returns proportional YES + NO tokens (not USDC directly — you can sell or merge
Установить AgentMarket Skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл AgentMarket Skill?
Interact with the AgentMarket prediction market protocol on Base Sepolia. Create markets, trade YES/NO positions, provide liquidity, and resolve outcomes — all settled in USDC.
Как установить скилл AgentMarket Skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл AgentMarket Skill запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic