Skip to content

Skills

Skills are the core building blocks of PancakeSwap AI. Each skill is a Markdown file (SKILL.md) with YAML frontmatter that tells an LLM agent exactly how to perform a task.

All Skills

SkillPluginModelDescription
swap-plannerpancakeswap-driverSonnetPlan swaps with token discovery and deep link generation
liquidity-plannerpancakeswap-driverSonnetPlan LP positions with pool assessment and APY analysis
collect-feespancakeswap-driverSonnetCheck and collect pending LP fees across V3 and Infinity positions
swap-integrationpancakeswap-driverOpusIntegrate PancakeSwap swaps into apps using Smart Router or V2 Router
farming-plannerpancakeswap-farmingSonnetPlan yield farming, CAKE staking, and deep links
harvest-rewardspancakeswap-farmingSonnetCheck pending farming rewards and generate harvest deep links
hub-api-integrationpancakeswap-hubSonnetIntegrate PCS Hub quote/swap API into wallets and partner frontends

Skill Anatomy

Every skill file follows the same structure:

markdown
---
name: skill-name
description: When to activate this skill (trigger phrases)
allowed-tools: Read, Write, Edit, Bash(npm:*)
model: opus
license: MIT
metadata:
  author: pancakeswap
  version: '1.0.0'
---

# Skill Title

Content: decision guides, code templates, address tables,
validation rules, anti-patterns, and more.

Frontmatter Fields

FieldRequiredDescription
nameYesUnique skill identifier
descriptionYesTrigger phrases — when the agent should load this skill
allowed-toolsYesTools the agent may use while executing this skill
modelNoRecommended LLM model (opus, sonnet)
licenseNoLicense for the skill content
metadata.authorNoAuthor name
metadata.versionNoSemantic version

Design Principles

  1. Self-contained — each skill has everything an agent needs (addresses, ABIs, code templates)
  2. Decision-first — start with a decision guide so the agent picks the right approach
  3. Correct by default — code templates use verified addresses and safe defaults
  4. Anti-pattern aware — explicitly call out common mistakes with ::: danger blocks
  5. Chain-aware — tables map every address and behavior to specific chain IDs
  6. Testable — each skill has a corresponding eval suite under evals/suites/

Released under the MIT License.