Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

swap-execute-fast

БесплатноЗапускает вложенные скриптыНе проверен

This skill should ONLY be used when the user explicitly asks for immediate, no-confirmation execution using phrases like "fast swap", "execute immediately"…

jiayaoqijiaот jiayaoqijia★ 81 звезда на GitHub

Об этом скилле

KyberSwap Fast Execute Skill

⚠️ VIGILANT WARNING — EXTREME CAUTION REQUIRED ⚠️

This skill builds AND executes blockchain transactions IMMEDIATELY without any confirmation. Once executed, transactions are IRREVERSIBLE and cannot be cancelled.

Critical Risks:

  1. NO CONFIRMATION — Transaction broadcasts the instant this skill runs
  2. IRREVERSIBLE — Blockchain transactions cannot be undone
  3. REAL MONEY AT STAKE — Gas fees are charged even if the swap fails
  4. NO QUOTE VERIFICATION — You cannot review the swap rate before execution
  5. NO SECOND CHANCE — Wrong parameters or bad rates will still execute

Before Using This Skill, Ensure:

  • You have double-checked all swap parameters (amount, tokens, chain)
  • You understand this sends a real transaction immediately
  • You have sufficient gas fees in your wallet
  • You trust the current market conditions
  • You have used /swap-build before to understand typical swap outputs

When NOT to Use This Skill:

  • High-value transactions (> $1,000 USD equivalent) — Use /swap-build + /swap-execute instead
  • First time using these skills
  • When you want to review the quote before executing
  • When you're unsure about any swap parameter
  • Volatile market conditions

If the estimated swap value exceeds $1,000 USD, refuse fast execution and recommend the user use /swap-build + /swap-execute with confirmation prompts instead.

Safer Alternatives:

  • Use /swap-build to build (with confirmation), review, then /swap-execute to execute (with confirmation)
  • Use /swap-build for step-by-step quote verification before building

Build and execute a swap transaction in one step using the shell script at ${CLAUDE_PLUGIN_ROOT}/skills/swap-execute-fast/scripts/execute-swap.sh. The script calls fast-swap.sh internally to build the swap, then immediately broadcasts it. No confirmation prompts.

Prerequisites

  • Foundry installed: cast must be available in PATH
  • curl and jq installed: Required for API calls
  • Wallet configured: See ${CLAUDE_PLUGIN_ROOT}/skills/swap-execute/references/wallet-setup.md

⚠️ USE YOUR EXISTING WALLET MANAGEMENT FIRST ⚠️

If you or your agent already have wallet management (key management service, vault, HSM, custodial API, MPC signer, or any secure signing infrastructure), use that. Skip the quick setup below entirely.

The quick setup below is an example for development and testing only. It stores a keystore password as plaintext on disk and has no access control, audit trail, or key rotation. Do not use it with real funds in production. Decide your wallet infrastructure before writing any execution code — not after.

Quick wallet setup (DEVELOPMENT/TESTING ONLY):

# Import key to keystore
cast wallet import mykey --interactive

# Create password file securely (prompts without echoing to terminal)
printf "Password: " && read -s pw && printf '\n' && echo "$pw" > ~/.foundry/.password && chmod 600 ~/.foundry/.password

Input Parsing

The user will provide input like:

  • 1 ETH to USDC on base from 0xAbc123...
  • 100 USDC to ETH on arbitrum from 0xAbc123... slippage 100
  • 0.5 WBTC to DAI on polygon from 0xAbc123... keystore mykey

Extract these fields:

  • amount — the human-readable amount to swap
  • tokenIn — the input token symbol
  • tokenOut — the output token symbol
  • chain — the chain slug (default: ethereum)
  • sender — the address that will send the transaction (required)
  • recipient — the address to receive output tokens (default: same as sender)
  • slippageTolerance — slippage in basis points (default: 50)
  • walletMethod — keystore, env, ledger, or trezor (default: keystore)
  • keystoreName — keystore account name (default: mykey)

If the sender address is not provided, ask the user for it before proceeding. Do not guess or use a placeholder address.

Sender address validation — reject or warn before proceeding:

  • Must not be the zero address (0x0000000000000000000000000000000000000000) — this is an invalid sender and the transaction will fail. Ask the user for their actual wallet address.
  • Must not be the native token sentinel (0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) — this is a placeholder for native tokens, not a real account. Ask the user for their actual wallet address.
  • Warn if it matches a known contract address (e.g., a token address or the router address) — sending from a contract address is unusual and likely a mistake. Ask the user to confirm.

Recipient address warning: When the recipient address differs from the sender, display a prominent warning: "WARNING: Output tokens will be sent to a DIFFERENT address than the sender. Please verify the recipient address carefully before proceeding." Wait for the user to acknowledge before continuing.

Slippage Defaults

If the user does not spec

Полный SKILL.md на GitHub

Установить swap-execute-fast в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SOURCE.mdTRUST.auto.yamlscripts/execute-swap.shscripts/fast-swap.sh

FAQ

Что делает скилл swap-execute-fast?

This skill should ONLY be used when the user explicitly asks for immediate, no-confirmation execution using phrases like "fast swap", "execute immediately", "swap with no confirmation", "quick swap now", "instant execute", or "skip confirmation and swap". The user must clearly indicate they want to bypass the review/confirmation step. Do NOT use this skill if the user mentions wanting to review, confirm, check, or verify before executing — use swap-build + swap-execute instead. Do NOT use this skill for general swap requests like "swap ETH to USDC" or "trade tokens" — those should go to swap-build. This skill runs a shell script that builds the swap via fast-swap.sh then immediately broadcasts the transaction. DANGEROUS - no confirmation before sending real transactions.

Как установить скилл swap-execute-fast?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл swap-execute-fast запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить swap-execute-fast с