From context-skills
Build an embeddable single-market prediction widget with buy/sell buttons
How this skill is triggered — by the user, by Claude, or both
Slash command
/context-skills:market-widgetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Build a self-contained, embeddable component that shows a single market with price, oracle context, and one-click trading.
Build a self-contained, embeddable component that shows a single market with price, oracle context, and one-click trading.
The user wants to embed a prediction market into an existing page — a compact component showing price, oracle context, and a buy button.
Self-contained provider wrapper — if embedding outside a Context app, the widget needs its own provider stack:
function MarketWidget({ marketId, apiKey }: { marketId: string; apiKey: string }) {
return (
<WagmiProvider config={wagmiConfig}>
<QueryClientProvider client={queryClient}>
<ContextProvider apiKey={apiKey}>
<WidgetContent marketId={marketId} />
</ContextProvider>
</QueryClientProvider>
</WagmiProvider>
)
}
Market display — useMarket(marketId) for question text, useQuotes(marketId) for current prices.
Oracle badge — use useOracle(marketId) for the oracle summary and useLatestOracleQuote(marketId) if you want a numeric oracle quote alongside the market price.
Trade preview — useSimulateTrade(marketId, params) to show estimated fill as the user adjusts the amount slider.
One-click trade — useCreateMarketOrder() for instant execution at market price. Show the simulation result before confirming.
Balance display — useBalance() to show available funds. Disable buy button if insufficient.
ContextProvider is always required.apiKey in ContextProvider is sent to the browser. Use a read-only key if the widget is public.useAccount() from wagmi.useQuotes is enough for display. Only fetch useOrderbook if showing depth.isLoading and error — show appropriate UI for each.npx claudepluginhub contextwtf/context-skills --plugin context-skillsTrade on Polymarket prediction markets on Polygon: browse markets, check wallet/CLOB balances, buy/sell YES/NO shares with safety gates. Uses Node.js scripts, WDK vault, and auto-setup.
Builds a non-advisory prediction-market trade planning worksheet for Itô or venue workflows. Inspects venues, underliers, constraints, order prerequisites, and manual execution steps without placing trades.
Interacts with Polymarket prediction markets via natural language prompts: search markets, check odds, place Yes/No bets with USDC.e on Polygon, view positions, redeem winnings.