hub-swap-planner

Plan token swaps via PCS Hub and generate channel-specific handoff links.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/th-efool/PancakeSwapAI --skill hub-swap-planner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hub-swap-planner
Source: https://github.com/th-efool/PancakeSwapAI/tree/main/pancakeswap-ai/packages/plugins/pancakeswap-hub/skills/hub-swap-planner
Command: npx skills add https://github.com/th-efool/PancakeSwapAI --skill hub-swap-planner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Plans token swaps through PCS Hub — PancakeSwap's aggregator API. Fetches optimal routing across multiple DEXs on BSC, presents a route summary with split breakdowns, and generates a ready-to-use channel-specific handoff link for the target distribution interface.

Core Features & Use Cases

  • Hub-based routing: queries PCS Hub for best multi-dex routes on BSC and returns a prioritized path.
  • Route summary & splits: displays how the trade would be split across routes with clear percentages.
  • Channel handoff generation: outputs deep links or structured payloads for PancakeSwap, Binance Wallet, Trust Wallet, or headless use.
  • No-execution by default: this is a planning aid; actual trades are executed by the chosen channel.

Quick Start

Tell me the input token, output token, amount, and preferred channel to generate a PCS Hub swap plan.

Frequently Asked Questions about hub-swap-planner

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

FAQPage Schema
How do I generate a PancakeSwap swap deep link for Trust Wallet on BSC?

To generate a PancakeSwap swap deep link for Trust Wallet on BSC, you provide the input token, output token, and amount to get a channel-specific handoff link for executing the trade. The planner queries PCS Hub for optimal routing and formats the output specifically for Trust Wallet.

What is PCS Hub routing and how does it find the best token swap path?

PCS Hub routing is PancakeSwap's aggregator API that queries multiple DEXs on BSC to find the optimal token swap path. It returns a prioritized route summary displaying how the trade splits across routes with clear percentages.

Can I use PCS Hub to plan a headless token swap payload on BSC?

Yes, you can use PCS Hub to plan a headless token swap payload on BSC. The planner validates inputs, coordinates Hub API calls for quote and calldata, and outputs structured payloads suitable for headless execution.

Does the PancakeSwap Hub swap planner execute the token trade automatically?

No, the PancakeSwap Hub swap planner does not execute the token trade automatically. It is a planning aid that fetches optimal routing and generates a ready-to-use handoff link or payload for the chosen distribution channel to execute.

What's the best way to get multi-dex swap routing for Binance Wallet?

The best way to get multi-dex swap routing for Binance Wallet is to request a PCS Hub swap plan with Binance Wallet as the preferred channel. This fetches optimal multi-dex routes on BSC and generates a channel-specific handoff link.

When should I not use a PCS Hub swap planner for BSC token routing?

You should not use a PCS Hub swap planner for BSC token routing if you require direct, automatic trade execution. This tool only plans the route and generates handoff links, meaning the actual transaction must be executed by the chosen channel interface.