limit-order
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "create a limit order", "place a limit order", "set a target price order", "limit buy", "limit sell", "cancel…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
KyberSwap Limit Order Skill
Create, query, and cancel gasless limit orders via the KyberSwap Limit Order API. Orders are signed off-chain using EIP-712 and settled on-chain when a taker fills them. No gas is required to create or gasless-cancel an order.
This skill supports three operations:
- Create a limit order (sign-message, user signs, submit order)
- Query existing orders (by maker address)
- Cancel an order (gasless cancel or hard cancel)
Input Parsing
The user will provide input like:
limit sell 1000 USDC for ETH at 0.00035 on arbitrum from 0xAbc123...limit buy 0.5 ETH with USDC at 3200 on ethereum from 0xAbc123...place a limit order to sell 100 LINK for USDC at 15.50 on polygon from 0xAbc123...check my limit orders on ethereum for 0xAbc123...cancel limit order {orderId} on arbitrum from 0xAbc123...
Create Order — Extract These Fields
- makerAsset (tokenIn) — the token the maker is selling
- takerAsset (tokenOut) — the token the maker wants to receive
- makingAmount — the human-readable amount of makerAsset to sell
- targetPrice — the price per unit of makerAsset denominated in takerAsset
- chain — the chain slug (default:
ethereum) - maker — the address creating the order (required)
- expiry — order expiry duration (e.g., "1 hour", "1 day", "7 days", "1 week", "30 days"). Default: 7 days
- recipient — the address to receive taker tokens (default: same as maker)
Derive the takingAmount from the user's input based on order direction:
Limit-sell (user sells makerAsset to receive takerAsset):
takingAmount = makingAmount × targetPrice
Example: Sell 1 ETH at 3200 USDC/ETH → makerAsset=WETH, makingAmount=1, takerAsset=USDC, takingAmount=3200
Limit-buy (user wants to buy takerAsset by spending makerAsset):
makerAsset = token being spent
takerAsset = token being bought
makingAmount = desiredBuyAmount × targetPrice (amount of makerAsset to spend)
takingAmount = desiredBuyAmount (amount of takerAsset to receive)
Example: Buy 1 ETH at 3200 USDC/ETH → makerAsset=USDC, makingAmount=3200, takerAsset=WETH, takingAmount=1
Important: The formula
takingAmount = makingAmount × targetPriceis correct for limit-sell only. For limit-buy the direction inverts — always confirm whether the user is selling or buying before computing amounts.
Query Orders — Extract These Fields
- maker — the address to query orders for (required)
- chain — the chain slug (default:
ethereum) - status — filter by order status:
active,filled,cancelled,expired(default:active)
Cancel Order — Extract These Fields
- orderId (or orderIds) — the order ID(s) to cancel (required)
- maker — the address that created the order (required)
- chain — the chain slug (default:
ethereum) - cancelType —
gasless(default) orhard
If the maker address is not provided, ask the user for it before proceeding. Do not guess or use a placeholder address.
Maker address validation: See ${CLAUDE_PLUGIN_ROOT}/references/address-validation.md for validation rules. Reject zero address, native token sentinel, and warn on contract addresses.
Supported Chains (17)
See ${CLAUDE_PLUGIN_ROOT}/references/supported-chains.md for the full chain list with chain IDs. All Aggregator chains except MegaETH are supported.
Note: Limit orders are not supported on megaeth. If the user requests megaeth, inform them and suggest using a swap instead.
Create Order Workflow
Step 1: Resolve Token Addresses
Read the token registry at ${CLAUDE_PLUGIN_ROOT}/references/token-registry.md.
Look up makerAsset and takerAsset for the specified chain. Match case-insensitively. Note the decimals for each token.
Aliases to handle — IMPORTANT: Limit orders require ERC-20 tokens. The native token sentinel (0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) is NOT valid for makerAsset or takerAsset. When the user specifies a native token alias, automatically convert it to the wrapped ERC-20 equivalent. See ${CLAUDE_PLUGIN_ROOT}/references/wrapped-tokens.md for the complete mapping table.
When auto-converting, display a note to the user: "Native {TOKEN} converted to W{TOKEN} for limit orders — the Limit Order API requires ERC-20 tokens, not native token addresses."
If a token is not found in the registry:
Use the fallback sequence described at the bottom of ${CLAUDE_PLUGIN_ROOT}/references/token-registry.md:
- KyberSwap Token API (preferred) — search whitelisted tokens first:
https://token-api.kyberswap.com/api/v1/public/tokens?chainIds={chainId}&name={symbol}&isWhitelisted=truevia WebFetch. Pick the result whosesymbolmatches exactly with the highestmarketCap. If no whitelisted match, retry withoutisWhitelisted(only trust verified or market-cap tokens). If still nothing, browse `page=1&pageSi
Установить limit-order в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл limit-order?
This skill should be used when the user asks to "create a limit order", "place a limit order", "set a target price order", "limit buy", "limit sell", "cancel limit order", "check my orders", "query limit orders", or wants to trade tokens at a specific price. Creates, queries, and cancels gasless limit orders via KyberSwap Limit Order API across 17 EVM chains.
Как установить скилл limit-order?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл limit-order запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic