Skip to main content

Build

Skill for building prediction market frontends — React components, wallet integration, and UI patterns using the Context React SDK.
Claude Code: /context:build · Codex / Hermes / OpenClaw: Load SKILL.md as system prompt

Subskills

SubskillWhat it doesKey React hooks
trading-appComplete trading interface with market list, detail view, and order formuseMarkets, useMarket, useCreateOrder, useMarketOrder
market-widgetEmbeddable single-market component with buy/sell buttonsuseMarket, useQuotes, useCreateOrder
portfolio-dashboardPosition tracking, balance display, and claimable winningsusePositions, useBalance, useClaimable, usePortfolioStats
account-setup-flowWallet connection and account onboarding UIuseAccountStatus, useAccountSetup, useDeposit, useApproveUsdc, useApproveOperator

Prerequisites

  • Context MCP server (optional)
  • Familiarity with React, wagmi, and TanStack Query

Example prompts

  • “Build a market card component showing live bid/ask quotes”
  • “Create an order form with price and size inputs for a specific market”
  • “Build a portfolio dashboard showing all active positions”
  • “Add wallet connection with automatic account setup flow”
  • “Create a real-time orderbook visualization component”
  • “Build a market search page with status and category filters”
  • “Create an embeddable prediction market widget for a single market”

React SDK

Full React SDK documentation

Trade skill

Order management and execution

TypeScript SDK

Core SDK documentation