trade

Installation
SKILL.md

Trade / Swap Tokens

Exchange one token for another via Fibrous aggregation. The CLI finds the best route, handles token approvals, simulates the swap, and executes.

Note: Automatically detects and executes Wrap (Native -> Wrapped) and Unwrap (Wrapped -> Native) operations directly via contract calls, bypassing aggregation to save gas.

Prerequisites

  • Active session required.
  • Sufficient balance of the source token + gas fees.

Rules

  1. BEFORE any trade, you MUST run npx fibx@latest status and npx fibx@latest balance to verify connectivity and source token balance.
  2. If the user specifies a chain, you MUST include --chain <name>. If not specified, default to base and state it.
  3. Default slippage is 0.5%. To change it, you MUST ask the user for confirmation before using --slippage.
  4. The CLI defaults to exact approval for ERC-20 tokens. NEVER use --approve-max unless the user explicitly requests it.
  5. AFTER a successful trade, you MUST verify the transaction using tx-status with the same --chain flag.
Related skills
Installs
13
First Seen
Feb 13, 2026