Skip to content

pancakeswap-hub

AI-powered assistance for planning and integrating swaps through PCS Hub.

Metadata

FieldValue
Namepancakeswap-hub
Version1.8.0
AuthorPancakeSwap
LicenseMIT
Keywordspancakeswap, defi, hub, portfolio, bsc, bnb, cake

Skills

hub-api-integration

Design and generate the full integration spec for embedding PCS Hub swap functionality into an external UI — wallet apps, mobile apps, webviews, or headless bots.

Capabilities:

  • Frontend screen specifications (quote, route, confirmation, success/error)
  • Hub API contract documentation (quote and execution endpoints)
  • Channel UX differences across distribution interfaces
  • Fallback and error-handling logic
  • Code snippets for fetching quotes and parsing routing responses

Installation

bash
claude plugin add @pancakeswap/pancakeswap-hub
bash
cp -r packages/plugins/pancakeswap-hub/skills/hub-swap-planner/SKILL.md \
  .cursor/skills/hub-swap-planner/SKILL.md
cp -r packages/plugins/pancakeswap-hub/skills/hub-api-integration/SKILL.md \
  .cursor/skills/hub-api-integration/SKILL.md

Quick Example

Ask your agent:

Swap 100 USDT for BNB via Trust Wallet using PCS Hub

The agent fetches the optimal route from the Hub API and returns a route summary plus a Trust Wallet-specific handoff link:

## Route Summary

100 USDT → 0.1842 BNB
Price impact: 0.03%
Route: USDT → BNB (direct, PancakeSwap V3)

Deep link (Trust Wallet):
https://link.trustwallet.com/open_url?coin_id=20000714&url=https%3A%2F%2Fpancakeswap.finance%2F...

Released under the MIT License.