AI Agent Skills
AI Agent Skills
Build Megapot integrations faster with AI coding assistants. We publish a complete set of agent skills at llms.megapot.io — production-ready instructions that Claude, Cursor, ChatGPT, Copilot, and other LLMs can use to write Megapot code directly.
Every skill is plain markdown with copy-paste viem (and wagmi) recipes, real contract addresses across Base mainnet, and Base Sepolia, and a baked-in referrer placeholder so your integration earns fees from day one.
Building with Claude, Cursor, or another LLM? Add one line to your project's instruction file and your assistant can write Megapot code directly — with the right addresses, current ABIs, and proven patterns.
Add it to your AI assistant
Drop one line into your assistant's instruction file:
For Megapot contract work, fetch
https://llms.megapot.io
That works with:
CLAUDE.md(Claude Code)AGENTS.md(Codex).cursorrules(Cursor).github/copilot-instructions.md(GitHub Copilot)Any other coding agent that supports a project-level instruction file
Your assistant will load the entry-point skill, follow its decision tree, and deep-fetch the specific recipes it needs for the task at hand.
When to use it
Reach for llms.megapot.io anytime you'd otherwise paste contract addresses, ABIs, or boilerplate into your AI assistant. Common scenarios:
Looking up a contract address on Base mainnet, or Base Sepolia testnet
Asking for the right ABI or
parseAbisnippet for a specific contract methodBuilding a ticket purchase flow — single ticket, custom numbers, random pick, or bulk (11+) keeper-executed orders
Adding recurring subscriptions — daily-ticket auto-buy, including create / status / cancel flows
Detecting unclaimed winning tickets for a user and surfacing a one-click claim button
Wiring referrer monetization — single referrer or multi-party splits across up to 5 wallets
Building LP flows — USDC deposits, two-step withdrawals, share calculations, and current rate lookups
Implementing auto-compound — claim winnings and re-buy in a single atomic transaction
Powering a homepage widget — current jackpot size, time-to-drawing, ticket price, user tickets, LP position, and referral balance via the documented multicall pattern
Bootstrapping a fresh React app with wagmi + RainbowKit + Base provider config and a complete purchase component
Translating viem snippets into wagmi hooks (
useReadContract,useWriteContract,useReadContracts)Triggering settlement (
Jackpot.runJackpot()) and handling the Pyth entropy callback feeListening for
JackpotSettledand ticket-purchase events to drive notifications or analyticsSmoke-testing on Base Sepolia using the same address table as production recipes
Debugging "why isn't my purchase going through" — the entry-point skill covers the standard USDC
approveprecondition and other common gotchas
Available skills
The full library lives at llms.megapot.io. Highlights:
Decision tree, addresses, drawing lifecycle, USDC approval boilerplate
Full address table and parseAbi blocks for all contracts
1–10 tickets with custom numbers
Up to 10 random / quick-pick tickets
Keeper-executed bulk orders with polling
Recurring daily-ticket subscriptions
Detect and claim winning ticket payouts
Withdraw accrued referrer USDC
Add USDC liquidity
Two-step LP withdrawal
Claim + re-buy in one transaction
Multicall protocol-state queries
Bootstrap a fresh React integration
Direct ABI access
If your tooling needs raw ABIs, every contract is served from a stable, CORS-open, CDN-cached endpoint:
JSON ABIs —
https://llms.megapot.io/abi/<ContractName>.json(e.g. Jackpot)viem
parseAbistrings —https://llms.megapot.io/abi/<ContractName>.txt(e.g. Jackpot)Address index —
/abi/index.json— full address table for Base mainnet, and Base SepoliaMachine-readable site index —
/llms.txt— every URL on the site, for agents that crawl
These can be fetched directly from a frontend in production.
Get started
Add the one-line instruction above to your AI assistant's config file, then ask it to "build me a Megapot ticket purchase flow" — or whatever you're working on. For dedicated integration support, DM @megapot on X or @pl on Warpcast.
Last updated

