
pancakeswap/pancakeswap-ai
6 skills733 installs264 starsGitHub
Install
npx skills add https://github.com/pancakeswap/pancakeswap-aiSkills in this repo
1Swap Plannerswap-planner is a Claude Code skill for productivity & planning. It helps solo builders move faster with AI-assisted development.142installs2Collect Feescollect-fees is a PancakeSwap pancakeswap-ai agent skill (version 1.0.0) that discovers pending LP fees and generates deep links for collection in the PancakeSwap UI—it never executes on-chain collect transactions. The 5-step workflow gathers wallet intent, discovers positions, resolves token prices, displays a USD fee summary, and outputs pancakeswap.finance deep links. V3 positions on 7 EVM networks use viem readContract against NonfungiblePositionManager ERC-721 NFTs. Infinity v4 on BSC and Base uses the Explorer API plus @pancakeswap/infinity-sdk CL fee math without NFT positions. Solana mainnet CLMM and farm positions use @pancakeswap/solana-core-sdk. V2 fees are out of scope because they embed in LP token value. Security rules enforce wallet regex validation, block state-changing contract calls, and restrict curl to approved PancakeSwap and DexScreener endpoints. The parent pancakeswap-ai repo has 41 GitHub stars. Developers reach for collect-fees when checking uncollected fees across chains before confirming harvest in their own wallet.125installs3Swap Integrationswap-integration is a PancakeSwap pancakeswap-ai skill (version 1.0.0) that walks developers through three integration methods for adding token swaps: the PancakeSwap Routing API at router.pancakeswap.finance/v0/quote, the Smart Router plus Universal Router SDK stack, or direct V2 Router contract calls. It documents 6 protocol types—V2, V3, StableSwap, Infinity CL, Infinity Bin, and mixed routes—across 9 mainnet chains with Universal Router addresses, key BSC token lists, Permit2 approval flows, and React/wagmi frontend examples. Method 1 suits quick quotes; Method 2 targets React, Next.js, and backend bots using @pancakeswap/smart-router, @pancakeswap/sdk, @pancakeswap/v3-sdk, and @pancakeswap/universal-router-sdk with viem 2.37.13; Method 3 covers BSC testnet when Smart Router pool indexing is unavailable. A swap-integration-expert subagent handles complex encoding questions. Reach for swap-integration when implementing PancakeSwap quotes, calldata, or swap UI widgets.120installs4Hub Swap Plannerhub-swap-planner plans token swaps through PancakeSwap PCS Hub on BSC (chainId 56). It resolves tokens via PancakeSwap curated lists with red-flag warnings for unlisted assets, fetches optimal routes from the Hub API using PCS_HUB_TOKEN, converts human amounts to wei, and presents protocol split tables with gas estimates. It does not execute swaps—output is a route summary plus a deep link for wallet handoff.116installs5Harvest Rewardsharvest-rewards is a PancakeSwap pancakeswap-ai agent skill (version 1.0.0) that checks pending CAKE and partner-token rewards across V2, V3, Infinity, and Syrup Pool positions on 8 supported chains including BSC, Ethereum, Arbitrum, Base, zkSync, zkEVM, Linea, and Solana. The skill does not sign transactions; it runs bundled reference scripts such as fetch-v3-pending.py, fetch-infinity-pending.py, and fetch-syrup-pending.py against MasterChef contracts and explorers, validates EVM and Solana wallet formats, fetches live CAKE prices from CoinGecko, and outputs a pending-rewards table with USD values and mandatory PancakeSwap UI harvest links on every row. Seven mandatory security rules enforce shell-safe quoting, allowlisted curl domains, and rejection of untrusted API strings. Reach for harvest-rewards when wiring `/harvest-rewards` into a DeFi agent, auditing claimable farm rewards, or planning a harvest run before the user confirms in their own wallet.115installs6Hub Api Integrationhub-api-integration is a PancakeSwap pancakeswap-ai skill (version 1.0.0) that produces integration specifications for embedding PCS Hub swap functionality into external UIs—it does not ship executable swap code. The skill walks through gathering target chains (BSC chainId 56 only), channel type (wallet app, mobile, webview, browser extension, headless bot, Binance Web3 Wallet), wallet signing environment, token whitelist scope, and user flow preferences. Output covers frontend screens, Hub API contract usage against hub-api.pancakeswap.com, channel-specific UX differences, and fallback logic when PCS_HUB_TOKEN is unavailable. Security mandates validate 0x token addresses, never print auth tokens, and restrict curl to hub-api.pancakeswap.com and tokens.pancakeswap.finance. Allowed tools include Read, Write, curl, and jq. Developers reach for hub-api-integration when building a wallet or partner app that needs a ready-to-implement PCS Hub spec rather than ad-hoc API exploration. Parent repo pancakeswap-ai has 41 GitHub stars.115installs