pancakeswap

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

PancakeSwap Skill Directory

PancakeSwap Skill 目录

This skill is a directory. Read the specific guide for the user's request using
read_file
.
All guides live under this skill folder, organized into three plugins:
本Skill是一个目录,请使用
read_file
读取对应用户请求的具体指南。
所有指南都存放在本Skill文件夹下,分为三个插件:

How to Use

使用方法

  1. Match the user's intent to a guide below
  2. read_file
    the corresponding SKILL.md path
  3. Follow the instructions in that guide

  1. 将用户意图与下方的指南匹配
  2. 使用
    read_file
    读取对应的SKILL.md路径
  3. 遵循该指南中的说明操作

pancakeswap-driver — Swaps & Liquidity

pancakeswap-driver — 兑换与流动性

swap-planner

swap-planner

Path:
pancakeswap-driver/skills/swap-planner/SKILL.md
When to use: User wants to swap tokens on PancakeSwap — "swap BNB for USDT", "buy CAKE", "exchange tokens", "cross-chain swap", "bridge swap".
What it does: Discovers tokens, verifies contracts, fetches prices, generates a
pancakeswap.finance/swap?...
deep link. Does not execute transactions.
路径:
pancakeswap-driver/skills/swap-planner/SKILL.md
适用场景: 用户希望在PancakeSwap上兑换代币——"将BNB兑换为USDT"、"购买CAKE"、"兑换代币"、"跨链兑换"、"桥接兑换"。
功能说明: 发现代币、验证合约、获取价格、生成
pancakeswap.finance/swap?...
深度链接。不执行交易。

liquidity-planner

liquidity-planner

Path:
pancakeswap-driver/skills/liquidity-planner/SKILL.md
When to use: User wants to add liquidity — "add liquidity", "LP position", "provide liquidity", "earn yield with my ETH and USDT", "put tokens to work".
What it does: Plans LP positions (V2, V3, StableSwap, Infinity), recommends fee tiers and price ranges, assesses impermanent loss risk, generates add-liquidity deep links.
路径:
pancakeswap-driver/skills/liquidity-planner/SKILL.md
适用场景: 用户希望添加流动性——"添加流动性"、"LP头寸"、"提供流动性"、"用我的ETH和USDT赚取收益"、"让代币产生收益"。
功能说明: 规划LP头寸(V2、V3、StableSwap、Infinity),推荐手续费层级和价格区间,评估无常损失风险,生成添加流动性的深度链接。

collect-fees

collect-fees

Path:
pancakeswap-driver/skills/collect-fees/SKILL.md
When to use: User asks about uncollected LP fees — "collect my fees", "pending fees", "how much fees have I earned", "claim LP fees".
What it does: Checks uncollected fees across V3, Infinity, and Solana CLMM positions. Generates collection deep links.
Reference scripts:
collect-fees/references/
— fetch-v3-positions.mjs, fetch-infinity-positions.mjs, fetch-solana.cjs
路径:
pancakeswap-driver/skills/collect-fees/SKILL.md
适用场景: 用户询问未收取的LP手续费——"收取我的手续费"、"待领取手续费"、"我赚了多少手续费"、"领取LP手续费"。
功能说明: 检查V3、Infinity和Solana CLMM头寸中的未收取手续费,生成收取手续费的深度链接。
参考脚本:
collect-fees/references/
— fetch-v3-positions.mjs, fetch-infinity-positions.mjs, fetch-solana.cjs

swap-integration

swap-integration

Path:
pancakeswap-driver/skills/swap-integration/SKILL.md
When to use: Developer wants to integrate PancakeSwap swaps into an app — "integrate swaps", "Smart Router SDK", "Universal Router", "build swap frontend", "swap script".
What it does: SDK integration guide with working code for Smart Router, Universal Router, and direct V2 Router contract calls.
Shared utilities:
pancakeswap-driver/skills/common/
— discover-pools.mjs, pool-apr.mjs, protocol-fee.mjs, farm-apr.py, token-lists.md

路径:
pancakeswap-driver/skills/swap-integration/SKILL.md
适用场景: 开发者希望将PancakeSwap兑换功能集成到应用中——"集成兑换功能"、"Smart Router SDK"、"Universal Router"、"构建兑换前端"、"兑换脚本"。
功能说明: SDK集成指南,包含Smart Router、Universal Router和直接调用V2 Router合约的可用代码。
共享工具:
pancakeswap-driver/skills/common/
— discover-pools.mjs, pool-apr.mjs, protocol-fee.mjs, farm-apr.py, token-lists.md

pancakeswap-farming — Farms & Staking

pancakeswap-farming — 耕作与质押

farming-planner

farming-planner

Path:
pancakeswap-farming/skills/farming-planner/SKILL.md
When to use: User wants to farm or stake — "farm on PancakeSwap", "stake CAKE", "unstake CAKE", "yield farming", "syrup pool", "best farm APR", "deposit LP", "withdraw LP".
What it does: Discovers active farms, compares APR/APY, plans CAKE staking in Syrup Pools, generates farming UI deep links.
Note: If the user has a specific token pair and asks about yield, use
liquidity-planner
instead.
Reference scripts:
farming-planner/references/
— fetch-farms.py, fetch-syrup-pools.py
路径:
pancakeswap-farming/skills/farming-planner/SKILL.md
适用场景: 用户希望进行耕作或质押——"在PancakeSwap上耕作"、"质押CAKE"、"解除CAKE质押"、"收益耕作"、"糖浆池"、"最佳耕作APR"、"存入LP"、"取出LP"。
功能说明: 发现活跃耕作池,对比APR/APY,规划糖浆池中的CAKE质押,生成耕作UI深度链接。
注意: 如果用户针对特定代币对询问收益,请使用
liquidity-planner
参考脚本:
farming-planner/references/
— fetch-farms.py, fetch-syrup-pools.py

harvest-rewards

harvest-rewards

Path:
pancakeswap-farming/skills/harvest-rewards/SKILL.md
When to use: User wants to claim rewards — "harvest rewards", "claim CAKE", "pending rewards", "how much can I harvest", "collect farming rewards".
What it does: Checks pending CAKE and partner-token rewards across V2, V3, Infinity farms and Syrup Pools. Generates harvest deep links.
Reference scripts:
harvest-rewards/references/
— fetch-v3-pending.py, fetch-infinity-pending.py, fetch-syrup-pending.py

路径:
pancakeswap-farming/skills/harvest-rewards/SKILL.md
适用场景: 用户希望领取奖励——"提取奖励"、"领取CAKE"、"待领取奖励"、"我能提取多少奖励"、"收取耕作奖励"。
功能说明: 检查V2、V3、Infinity耕作池和糖浆池中的待领取CAKE及合作代币奖励,生成提取奖励的深度链接。
参考脚本:
harvest-rewards/references/
— fetch-v3-pending.py, fetch-infinity-pending.py, fetch-syrup-pending.py

pancakeswap-hub — PCS Hub Distribution

pancakeswap-hub — PCS Hub 分发

hub-swap-planner

hub-swap-planner

Path:
pancakeswap-hub/skills/hub-swap-planner/SKILL.md
When to use: User wants to swap via PCS Hub — "PCS Hub swap", "swap via Binance Wallet", "swap via Trust Wallet", "hub route".
What it does: Fetches optimal routing via PCS Hub aggregator API, generates channel-specific handoff links. BSC only.
路径:
pancakeswap-hub/skills/hub-swap-planner/SKILL.md
适用场景: 用户希望通过PCS Hub进行兑换——"PCS Hub兑换"、"通过Binance Wallet兑换"、"通过Trust Wallet兑换"、"Hub路由"。
功能说明: 通过PCS Hub聚合器API获取最优路由,生成特定渠道的转交链接。仅支持BSC链。

hub-api-integration

hub-api-integration

Path:
pancakeswap-hub/skills/hub-api-integration/SKILL.md
When to use: Developer wants to embed PCS Hub — "integrate PCS Hub", "embed PCS Hub swap", "Hub integration spec", "add PCS Hub to my wallet app".
What it does: Integration spec with API contracts, frontend state machine, allowance checking, and quote TTL management.
Shared utilities:
pancakeswap-hub/skills/common/
— token-lists.md

路径:
pancakeswap-hub/skills/hub-api-integration/SKILL.md
适用场景: 开发者希望嵌入PCS Hub——"集成PCS Hub"、"嵌入PCS Hub兑换"、"Hub集成规范"、"将PCS Hub添加到我的钱包应用"。
功能说明: 集成规范,包含API合约、前端状态机、额度检查和报价TTL管理。
共享工具:
pancakeswap-hub/skills/common/
— token-lists.md

Supported Chains

支持的链

ChainIDV2V3InfinityStableSwap
BNB Smart Chain56++++
Ethereum1++-+
Arbitrum One42161++-+
Base8453+++-
zkSync Era324++--
Linea59144++--
opBNB204++--
Monad143++--
链名称IDV2V3InfinityStableSwap
BNB智能链56++++
以太坊1++-+
Arbitrum One42161++-+
Base8453+++-
zkSync Era324++--
Linea59144++--
opBNB204++--
Monad143++--

Resources

资源