swap-planner

Generate PancakeSwap deep links for token swaps with pricing and contract checks.

44|85|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/pancakeswap/pancakeswap-ai --skill swap-planner-pancakeswap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swap-planner
Source: https://github.com/pancakeswap/pancakeswap-ai/tree/main/packages/plugins/pancakeswap-driver/skills/swap-planner
Command: npx skills add https://github.com/pancakeswap/pancakeswap-ai --skill swap-planner-pancakeswap

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users plan token swaps on PancakeSwap by discovering tokens, verifying contracts, fetching prices, and generating a direct link to the PancakeSwap interface for confirmation, without executing the trade itself.

Core Features & Use Cases

  • Token Discovery: Finds token contract addresses based on names or symbols.
  • Price Fetching: Retrieves real-time price data for trading pairs.
  • Deep Link Generation: Creates a URL that opens PancakeSwap pre-filled with swap details.
  • PCSX Integration: Informs users about PancakeSwap X benefits (gasless, MEV-protected swaps) where applicable.
  • Use Case: A user wants to swap 0.1 BNB for USDT on the BNB Smart Chain. This Skill will find the USDT contract address, get the current BNB/USDT price, and provide a link to pancakeswap.finance/swap pre-configured for this trade.

Quick Start

Use the swap-planner skill to generate a deep link for swapping 0.5 BNB to CAKE on the BNB Smart Chain.

Frequently Asked Questions about swap-planner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a deep link for a PancakeSwap token swap?

Generating a PancakeSwap deep link requires specifying your trading pair, chain, and amount. This Skill finds token contracts, fetches prices, and outputs a direct URL to PancakeSwap's swap interface pre-configured for your trade.

Can I plan a swap on PancakeSwap without executing the trade directly?

Yes, planning a swap without execution is possible. This Skill discovers tokens, verifies contracts, calculates price impacts, and provides a pre-filled PancakeSwap link for you to manually review and confirm the transaction.

Does the PancakeSwap swap planner support fetching prices across multiple chains?

Fetching prices across multiple chains is supported. The tool retrieves real-time price data and handles both native tokens and ERC-20 contracts to generate accurate swap links for your selected blockchain network.

How does this tool handle malicious token contracts and high price impact?

Handling malicious contracts and high price impact involves robust safety checks and explicit warnings. The planner verifies token addresses and alerts you to potential risks before generating the PancakeSwap deep link.

What is PancakeSwap X eligibility and how does it affect my token swap?

PancakeSwap X eligibility determines if your swap qualifies for gasless, MEV-protected transactions. The planner checks your selected tokens and provides guidance on whether your planned trade qualifies for these benefits.

What are the limitations of using a deep link for DeFi token swaps?

A limitation of using a deep link is that it does not execute the trade itself. You must manually open the URL and confirm the transaction in your wallet, ensuring a safe but non-automated swap process.