[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GQX6DM806FKD1T5Y2VRG1T":3,"skill-same:01M6GQX6DM806FKD1T5Y2VRG1T":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6GQX6DM806FKD1T5Y2VRG1T","limit-order",null,"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.","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Fkybernetwork-official-limit-order\u002FSKILL.md",[],[19,20,21,22,5,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"limit order","limit","across","when","at","my","gasless","tokens","trade","orders","create","query","evm","kyberswap","cancel","queries","check","api","SET","defi","2026-11-10 10:12:30",false,"---\nname: limit-order\ndescription: 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.\nmetadata:\n  tags:\n    - defi\n    - kyberswap\n    - limit-order\n    - evm\n    - gasless\n  provider: KyberSwap\n  homepage: https:\u002F\u002Fkyberswap.com\n---\n\n# KyberSwap Limit Order Skill\n\nCreate, 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.\n\n**This skill supports three operations:**\n1. **Create** a limit order (sign-message, user signs, submit order)\n2. **Query** existing orders (by maker address)\n3. **Cancel** an order (gasless cancel or hard cancel)\n\n## Input Parsing\n\nThe user will provide input like:\n- `limit sell 1000 USDC for ETH at 0.00035 on arbitrum from 0xAbc123...`\n- `limit buy 0.5 ETH with USDC at 3200 on ethereum from 0xAbc123...`\n- `place a limit order to sell 100 LINK for USDC at 15.50 on polygon from 0xAbc123...`\n- `check my limit orders on ethereum for 0xAbc123...`\n- `cancel limit order {orderId} on arbitrum from 0xAbc123...`\n\n### Create Order — Extract These Fields\n\n- **makerAsset** (tokenIn) — the token the maker is selling\n- **takerAsset** (tokenOut) — the token the maker wants to receive\n- **makingAmount** — the human-readable amount of makerAsset to sell\n- **targetPrice** — the price per unit of makerAsset denominated in takerAsset\n- **chain** — the chain slug (default: `ethereum`)\n- **maker** — the address creating the order (**required**)\n- **expiry** — order expiry duration (e.g., \"1 hour\", \"1 day\", \"7 days\", \"1 week\", \"30 days\"). Default: **7 days**\n- **recipient** — the address to receive taker tokens (default: same as maker)\n\nDerive the **takingAmount** from the user's input based on order direction:\n\n**Limit-sell** (user sells `makerAsset` to receive `takerAsset`):\n```\ntakingAmount = makingAmount × targetPrice\n```\n*Example: Sell 1 ETH at 3200 USDC\u002FETH → makerAsset=WETH, makingAmount=1, takerAsset=USDC, takingAmount=3200*\n\n**Limit-buy** (user wants to buy `takerAsset` by spending `makerAsset`):\n```\nmakerAsset  = token being spent\ntakerAsset  = token being bought\nmakingAmount = desiredBuyAmount × targetPrice   (amount of makerAsset to spend)\ntakingAmount = desiredBuyAmount                  (amount of takerAsset to receive)\n```\n*Example: Buy 1 ETH at 3200 USDC\u002FETH → makerAsset=USDC, makingAmount=3200, takerAsset=WETH, takingAmount=1*\n\n> **Important:** The formula `takingAmount = makingAmount × targetPrice` is correct for limit-sell only. For limit-buy the direction inverts — always confirm whether the user is selling or buying before computing amounts.\n\n### Query Orders — Extract These Fields\n\n- **maker** — the address to query orders for (**required**)\n- **chain** — the chain slug (default: `ethereum`)\n- **status** — filter by order status: `active`, `filled`, `cancelled`, `expired` (default: `active`)\n\n### Cancel Order — Extract These Fields\n\n- **orderId** (or orderIds) — the order ID(s) to cancel (**required**)\n- **maker** — the address that created the order (**required**)\n- **chain** — the chain slug (default: `ethereum`)\n- **cancelType** — `gasless` (default) or `hard`\n\n**If the maker address is not provided, ask the user for it before proceeding.** Do not guess or use a placeholder address.\n\n**Maker address validation:** See `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Faddress-validation.md` for validation rules. Reject zero address, native token sentinel, and warn on contract addresses.\n\n## Supported Chains (17)\n\nSee `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fsupported-chains.md` for the full chain list with chain IDs. All Aggregator chains except MegaETH are supported.\n\n> **Note:** Limit orders are not supported on megaeth. If the user requests megaeth, inform them and suggest using a swap instead.\n\n## Create Order Workflow\n\n### Step 1: Resolve Token Addresses\n\nRead the token registry at `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Ftoken-registry.md`.\n\nLook up `makerAsset` and `takerAsset` for the specified chain. Match case-insensitively. Note the **decimals** for each token.\n\n**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}\u002Freferences\u002Fwrapped-tokens.md` for the complete mapping table.\n\nWhen 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.\"*\n\n**If a token is not found in the registry:**\nUse the fallback sequence described at the bottom of `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Ftoken-registry.md`:\n1. **KyberSwap Token API** (preferred) — search whitelisted tokens first: `https:\u002F\u002Ftoken-api.kyberswap.com\u002Fapi\u002Fv1\u002Fpublic\u002Ftokens?chainIds={chainId}&name={symbol}&isWhitelisted=true` via WebFetch. Pick the result whose `symbol` matches exactly with the highest `marketCap`. If no whitelisted match, retry without `isWhitelisted` (only trust verified or market-cap tokens). If still nothing, browse `page=1&pageSize=100` (try up to 3 pages).\n2. **CoinGecko API** (secondary fallback) — search CoinGecko for verified contract addresses if the Token API doesn't have it.\n3. **Ask user manually** (final fallback) — if CoinGecko also fails, ask the user to provide the contract address. Never guess or fabricate addresses.\n\n### Step 2: Check Token Safety\n\nFor any token **not** in the built-in registry and **not** a native token, check the honeypot\u002FFOT API:\n\n```\nGET https:\u002F\u002Ftoken-api.kyberswap.com\u002Fapi\u002Fv1\u002Fpublic\u002Ftokens\u002Fhoneypot-fot-info?chainId={chainId}&address={tokenAddress}\n```\n\nVia **WebFetch**, check both `makerAsset` and `takerAsset`:\n- If `isHoneypot: true` — **refuse the order** and warn the user that this token is flagged as a honeypot (cannot be sold after buying).\n- If `isFOT: true` — warn the user that this token has a fee-on-transfer (tax: `{tax}%`). The actual received amount will be less than expected. Proceed only if the user acknowledges the tax.\n\n### Step 2a: Price Reference Check\n\nBefore creating the order, fetch the current market price to help the user evaluate their target price. Use the KyberSwap Aggregator to quote 1 unit of makerAsset against takerAsset:\n\n```\nGET https:\u002F\u002Faggregator-api.kyberswap.com\u002F{chain}\u002Fapi\u002Fv1\u002Froutes?tokenIn={makerAssetAddress}&tokenOut={takerAssetAddress}&amountIn={oneUnitMakerInWei}&source=ai-agent-skills\n```\n\nVia **WebFetch**. For native tokens in the quote, use the native token sentinel `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`. For limit orders where tokens are wrapped (WETH, WPOL, etc.), use the wrapped token address.\n\n**Calculate the current market price:**\n```\ncurrentMarketPrice = amountOut \u002F 10^(takerAsset decimals)\n```\n\n**Compare target price vs market price:**\n```\ndeviationPercent = ((targetPrice - currentMarketPrice) \u002F currentMarketPrice) * 100\n```\n\n**Display price context in the confirmation step (Step 6a):**\n\nAdd a \"Price Context\" row to the confirmation table:\n\n| Detail | Value |\n|---|---|\n| Current market price | 1 {makerAsset} = {currentMarketPrice} {takerAsset} |\n| Target price | 1 {makerAsset} = {targetPrice} {takerAsset} |\n| Deviation | {deviationPercent}% {above\u002Fbelow} market |\n\n**Warning thresholds — warn prominently if the target price is unfavorable:**\n\nFor **limit-sell** orders (selling makerAsset):\n- Target price **below** market by > 5% → **WARN**: *\"Your target price is {deviationPercent}% below the current market price. You would receive less than the current market rate. Are you sure this is intentional?\"*\n- Target price **above** market → Informational: *\"Your target price is {deviationPercent}% above the current market price. The order will fill when the market reaches your target.\"*\n\nFor **limit-buy** orders (buying takerAsset):\n- Target price **above** market by > 5% → **WARN**: *\"Your target price is {deviationPercent}% above the current market price. You would pay more than the current market rate. Are you sure this is intentional?\"*\n- Target price **below** market → Informational: *\"Your target price is {deviationPercent}% below the current market price. The order will fill when the market reaches your target.\"*\n\n**If the Aggregator route fails** (no liquidity for the pair), skip the price check and note: *\"Could not fetch current market price for this pair. Unable to compare target price with market. Proceed with caution.\"*\n\n> **Tip:** Use the `token-info` skill for more detailed token information including market cap and safety status.\n\n### Step 3: Convert Amounts to Wei\n\n```\nmakingAmountWei = makingAmount * 10^(makerAsset decimals)\ntakingAmountWei = takingAmount * 10^(takerAsset decimals)\n```\n\nBoth results must be plain integer strings with no decimals, no scientific notation, and no separators.\n\n**Use deterministic conversion** — compute via `python3` or `bc`, never mental math:\n\n```bash\npython3 -c \"print(int({makingAmount} * 10**{makerDecimals}))\"\npython3 -c \"print(int({takingAmount} * 10**{takerDecimals}))\"\n```\n\n### Step 4: Get the Contract Address\n\nFetch the DSLOProtocol contract address for the chain:\n\n```\nGET https:\u002F\u002Flimit-order.kyberswap.com\u002Fread-ks\u002Fapi\u002Fv1\u002Fconfigs\u002Fcontract-address?chainId={chainId}\n```\n\nVia **WebFetch**. The contract address is typically `0xcab2FA2eeab7065B45CBcF6E3936dDE2506b4f6C` on all supported chains, but always verify.\n\n### Step 5: Compute Expiry Timestamp\n\nConvert the user's expiry duration to a Unix timestamp:\n\n```bash\n# Example: 7 days from now\necho $(($(date +%s) + 7 * 86400))\n```\n\nCommon durations:\n| Duration | Seconds |\n|---|---|\n| 1 hour | 3600 |\n| 1 day | 86400 |\n| 7 days | 604800 |\n| 30 days | 2592000 |\n\n### Step 6: Get EIP-712 Sign Message\n\nUse `Bash(curl)` for this POST request:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fwrite\u002Fapi\u002Fv1\u002Forders\u002Fsign-message\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"makerAsset\": \"{makerAssetAddress}\",\n    \"takerAsset\": \"{takerAssetAddress}\",\n    \"maker\": \"{makerAddress}\",\n    \"allowedSenders\": [\"0x0000000000000000000000000000000000000000\"],\n    \"makingAmount\": \"{makingAmountWei}\",\n    \"takingAmount\": \"{takingAmountWei}\",\n    \"expiredAt\": {expiryTimestamp}\n  }'\n```\n\nThe response contains the EIP-712 typed data that the user must sign.\n\n### Step 6a: Display Order Summary and Request Confirmation\n\n**CRITICAL: Always show order details and ask for confirmation before requesting a signature.**\n\nPresent the order details:\n\n```\n## Limit Order — Confirmation Required\n\n**Sell {makingAmount} {makerAsset} for {takingAmount} {takerAsset}** on {Chain}\n\n| Detail | Value |\n|---|---|\n| You sell | {makingAmount} {makerAsset} |\n| You receive | {takingAmount} {takerAsset} |\n| Target price | 1 {makerAsset} = {targetPrice} {takerAsset} |\n| Expires | {expiryDate} ({expiryDuration} from now) |\n| Chain | {chain} (Chain ID: {chainId}) |\n\n### Addresses\n\n| Field | Value |\n|---|---|\n| Maker | `{maker}` |\n| Recipient | `{recipient}` |\n| Maker Asset | `{makerAssetAddress}` |\n| Taker Asset | `{takerAssetAddress}` |\n| Contract | `{contractAddress}` |\n\n### Fee Structure\n\nLimit order fees are deducted from the taker amount upon fill:\n\n| Token Category | Fee Rate |\n|---|---|\n| Super Stable | 0.01% |\n| Stable | 0.02% |\n| Normal | 0.1% |\n| Exotic | 0.3% |\n| High Volatility | 0.5% |\n| Super High Volatility | 1% |\n\n### Warnings\n\n- **Signing an EIP-712 message authorizes the limit order contract to spend your {makerAsset} when a taker fills the order.**\n- Review the target price and amounts carefully before signing.\n- The order will remain active until filled, cancelled, or expired.\n\n**Do you want to proceed with signing this limit order?** (yes\u002Fno)\n```\n\n**Wait for the user to explicitly confirm with \"yes\", \"confirm\", \"proceed\", or similar affirmative response before requesting the signature.**\n\nIf the user says \"no\", \"cancel\", or similar, abort and inform them the order was not created. Do NOT proceed to Step 7.\n\n### Step 7: User Signs the EIP-712 Message\n\nPresent the EIP-712 typed data from Step 6 to the user for signing. The user must sign this message with their wallet.\n\n```\n### EIP-712 Signature Required\n\nPlease sign the following EIP-712 message with your wallet:\n\n{EIP-712 typed data JSON from sign-message response}\n\nProvide the signature (0x-prefixed hex string) after signing.\n```\n\n**Wait for the user to provide the signature before proceeding.**\n\n### Step 8: Create the Order\n\nOnce the user provides the signature, submit the order using `Bash(curl)`:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fwrite\u002Fapi\u002Fv1\u002Forders\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"makerAsset\": \"{makerAssetAddress}\",\n    \"takerAsset\": \"{takerAssetAddress}\",\n    \"maker\": \"{makerAddress}\",\n    \"allowedSenders\": [\"0x0000000000000000000000000000000000000000\"],\n    \"makingAmount\": \"{makingAmountWei}\",\n    \"takingAmount\": \"{takingAmountWei}\",\n    \"expiredAt\": {expiryTimestamp},\n    \"signature\": \"{userSignature}\",\n    \"salt\": \"{saltFromSignMessage}\",\n    \"interactions\": \"{interactionsFromSignMessage}\"\n  }'\n```\n\nInclude all fields returned from the sign-message response (`salt`, `interactions`, etc.) along with the user's signature.\n\n### Step 8a: Handle Create Errors\n\n| Scenario | Quick Fix |\n|---|---|\n| Invalid signature | Ensure the user signed the exact EIP-712 message. Re-request signing if needed. |\n| Expired timestamp | The `expiredAt` is in the past. Recompute with a future timestamp. |\n| Invalid token address | Verify token addresses for the correct chain. |\n| Insufficient maker balance | The maker must hold enough makerAsset when the order is filled. |\n| Order already exists | The same order parameters with same salt already submitted. |\n\n### Step 9: Format the Output\n\nPresent the results:\n\n```\n## Limit Order Created\n\n**Sell {makingAmount} {makerAsset} for {takingAmount} {takerAsset}** on {Chain}\n\n| Detail | Value |\n|---|---|\n| Order ID | `{orderId}` |\n| Status | Active |\n| You sell | {makingAmount} {makerAsset} |\n| You receive | {takingAmount} {takerAsset} |\n| Target price | 1 {makerAsset} = {targetPrice} {takerAsset} |\n| Expires | {expiryDate} |\n| Chain | {chain} (Chain ID: {chainId}) |\n\n> **Next steps:**\n> - Your order is now live and will be filled when the market reaches your target price.\n> - To check order status: \"check my limit orders on {chain} for {maker}\"\n> - To cancel: \"cancel limit order {orderId} on {chain} from {maker}\"\n```\n\n### Step 10: ERC-20 Approval Reminder\n\nIf `makerAsset` is **not** the native token, remind the user about token approval. See `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fapproval-guide.md` (ERC-20 section) for the approval template. Use:\n\n- **Token contract:** `{makerAsset address}`\n- **Spender (DSLOProtocol):** `{contractAddress}`\n- **Amount:** `{makingAmountWei}`\n\n### Structured JSON Output\n\nAfter the markdown table, always include a JSON code block so other plugins or agents can consume the result programmatically:\n\n````\n```json\n{\n  \"type\": \"kyberswap-limit-order\",\n  \"operation\": \"create\",\n  \"chain\": \"{chain}\",\n  \"chainId\": {chainId},\n  \"orderId\": \"{orderId}\",\n  \"makerAsset\": {\n    \"symbol\": \"{makerAsset}\",\n    \"address\": \"{makerAssetAddress}\",\n    \"decimals\": {makerAssetDecimals},\n    \"amount\": \"{makingAmount}\",\n    \"amountWei\": \"{makingAmountWei}\"\n  },\n  \"takerAsset\": {\n    \"symbol\": \"{takerAsset}\",\n    \"address\": \"{takerAssetAddress}\",\n    \"decimals\": {takerAssetDecimals},\n    \"amount\": \"{takingAmount}\",\n    \"amountWei\": \"{takingAmountWei}\"\n  },\n  \"targetPrice\": \"{targetPrice}\",\n  \"maker\": \"{maker}\",\n  \"recipient\": \"{recipient}\",\n  \"expiredAt\": {expiryTimestamp},\n  \"contract\": \"{contractAddress}\"\n}\n```\n````\n\n## Query Orders Workflow\n\n### Step 1: Query Maker Orders\n\nUse **WebFetch** for this GET request:\n\n```\nURL: https:\u002F\u002Flimit-order.kyberswap.com\u002Fread-ks\u002Fapi\u002Fv1\u002Forders?chainId={chainId}&maker={makerAddress}&status={status}\nPrompt: Return the full JSON response body exactly as received.\n```\n\nAdd the `X-Client-Id: ai-agent-skills` header.\n\n### Step 2: Display Results\n\nPresent the orders in a table:\n\n```\n## Your Limit Orders on {Chain}\n\nShowing {count} {status} order(s) for `{maker}`\n\n| # | Sell | Buy | Target Price | Filled | Expires | Order ID |\n|---|---|---|---|---|---|---|\n| 1 | {makingAmount} {makerAsset} | {takingAmount} {takerAsset} | 1 {makerAsset} = {price} {takerAsset} | {filledPercent}% | {expiryDate} | `{orderId}` |\n| ... | ... | ... | ... | ... | ... | ... |\n```\n\nConvert amounts from wei to human-readable using the token decimals.\n\n### Structured JSON Output\n\n````\n```json\n{\n  \"type\": \"kyberswap-limit-order\",\n  \"operation\": \"query\",\n  \"chain\": \"{chain}\",\n  \"chainId\": {chainId},\n  \"maker\": \"{maker}\",\n  \"status\": \"{status}\",\n  \"count\": {count},\n  \"orders\": [\n    {\n      \"orderId\": \"{orderId}\",\n      \"makerAsset\": \"{makerAssetSymbol}\",\n      \"takerAsset\": \"{takerAssetSymbol}\",\n      \"makingAmount\": \"{makingAmount}\",\n      \"takingAmount\": \"{takingAmount}\",\n      \"filledPercent\": \"{filledPercent}\",\n      \"expiredAt\": {expiredAt},\n      \"status\": \"{status}\"\n    }\n  ]\n}\n```\n````\n\n## Gasless Cancel Workflow\n\n**Gasless cancellation is free but not instant — it takes up to 90 seconds.** During this window, the order may still be filled by a taker.\n\n### Step 1: Request Cancel Signature\n\nUse `Bash(curl)` for this POST request:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fwrite\u002Fapi\u002Fv1\u002Forders\u002Fcancel-sign\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"maker\": \"{makerAddress}\",\n    \"orderIds\": [{orderIds}]\n  }'\n```\n\n### Step 2: Display Cancel Confirmation\n\n```\n## Gasless Cancel — Confirmation Required\n\nYou are about to cancel the following order(s):\n\n| Order ID | Sell | Buy |\n|---|---|---|\n| `{orderId}` | {makingAmount} {makerAsset} | {takingAmount} {takerAsset} |\n\n### Warnings\n\n- **Gasless cancellation is not instant — it takes up to 90 seconds. During this window, the order may still be filled.**\n- If you need immediate cancellation, use **hard cancel** instead (requires gas).\n\nPlease sign the cancellation message with your wallet and provide the signature.\n```\n\n### Step 3: User Signs Cancellation Message\n\nPresent the cancellation data from Step 1 to the user for signing. Wait for the signature.\n\n### Step 4: Execute Gasless Cancel\n\nUse `Bash(curl)`:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fwrite\u002Fapi\u002Fv1\u002Forders\u002Fcancel\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"maker\": \"{makerAddress}\",\n    \"orderIds\": [{orderIds}],\n    \"signature\": \"{userSignature}\"\n  }'\n```\n\n### Step 5: Format Output\n\n```\n## Limit Order Cancellation Submitted\n\n| Detail | Value |\n|---|---|\n| Cancel type | Gasless |\n| Order ID(s) | `{orderIds}` |\n| Status | Cancellation submitted |\n| ETA | Up to 90 seconds |\n\n> **Note:** The cancellation has been submitted to the operator. It may take up to 90 seconds to take effect. During this window, the order could still be filled.\n```\n\n## Hard Cancel Workflow\n\n**Hard cancellation is immediate but requires an on-chain transaction and costs gas.**\n\n**IMPORTANT: Always confirm with the user before fetching hard-cancel calldata.**\n\nDisplay the order details (from the query in the preceding step) and ask:\n```\nYou have requested a hard cancel for order(s): {orderIds}\nThis requires an on-chain transaction and will cost gas.\n\nDo you want to build hard-cancel calldata for these order(s)? (yes\u002Fno)\n```\nWait for explicit confirmation. If the user says \"no\" or similar, abort and do not call the encode API.\n\n### Option A: Cancel Specific Orders\n\nUse `Bash(curl)`:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fread-ks\u002Fapi\u002Fv1\u002Fencode\u002Fcancel-batch-orders\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"orderIds\": [{orderIds}]\n  }'\n```\n\n### Option B: Cancel All Orders (Increase Nonce)\n\nUse `Bash(curl)`:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fread-ks\u002Fapi\u002Fv1\u002Fencode\u002Fincrease-nonce\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"maker\": \"{makerAddress}\"\n  }'\n```\n\nBoth options return encoded calldata. Present it to the user:\n\n```\n## Hard Cancel — Transaction Required\n\n| Detail | Value |\n|---|---|\n| Cancel type | Hard (on-chain) |\n| Order ID(s) | `{orderIds}` (or \"All active orders\" for nonce increase) |\n\n### Transaction Details\n\n| Field | Value |\n|---|---|\n| To (DSLOProtocol) | `{contractAddress}` |\n| Data | `{encodedCalldata}` |\n| Value | `0` |\n| Sender | `{maker}` |\n\n> **WARNING:** Hard cancellation requires an on-chain transaction and costs gas. Review the transaction details carefully before submitting. This skill does NOT submit the transaction — it only builds the calldata.\n```\n\n### Structured JSON Output (Cancel)\n\n````\n```json\n{\n  \"type\": \"kyberswap-limit-order\",\n  \"operation\": \"cancel\",\n  \"cancelType\": \"{gasless|hard}\",\n  \"chain\": \"{chain}\",\n  \"chainId\": {chainId},\n  \"maker\": \"{maker}\",\n  \"orderIds\": [\"{orderId}\"],\n  \"status\": \"{submitted|calldata-ready}\",\n  \"tx\": {\n    \"to\": \"{contractAddress}\",\n    \"data\": \"{encodedCalldata}\",\n    \"value\": \"0\"\n  }\n}\n```\n````\n\nThe `tx` field is only present for hard cancellations. For gasless cancellations, omit the `tx` field.\n\n## Error Handling\n\n### Common Error Scenarios\n\n| Scenario | Cause | Quick Fix |\n|---|---|---|\n| Invalid chain ID | Chain not supported for limit orders | Check the 17 supported chains. megaeth is not supported. |\n| Invalid token address | Token does not exist on the specified chain | Verify token address via token registry or Token API. |\n| Invalid maker address | Address is zero address or malformed | Validate address format: `^0x[a-fA-F0-9]{40}$` |\n| Signature mismatch | User signed wrong data or with wrong account | Ensure the user signs the exact EIP-712 message with the maker address. |\n| Order not found | Order ID does not exist or belongs to a different maker | Verify the order ID and maker address. Query orders first. |\n| Expired order | Cannot cancel an already expired order | The order has already expired. No action needed. |\n| Already cancelled | Order was already cancelled | The order is already cancelled. No action needed. |\n| Already filled | Order was already filled by a taker | The order has been filled. No action needed. |\n| Insufficient allowance | Maker has not approved makerAsset to DSLOProtocol | Approve the contract to spend makerAsset before the order can be filled. |\n| TakerAsset\u002FMakerAsset invalid (4004) | Native token sentinel (`0xEeee...`) used as makerAsset or takerAsset | Limit orders require ERC-20 tokens. Use the wrapped version (e.g., WETH instead of ETH). See the alias table in Step 1. |\n| Rate limit | Too many requests | Wait and retry. Space requests by at least 1 second. |\n\n### HTTP Error Codes\n\n| Code | Meaning | Action |\n|---|---|---|\n| 400 | Bad request | Check request body format, required fields, and data types. |\n| 401 | Unauthorized | Verify the signature and maker address. |\n| 404 | Not found | Check endpoint URL and chain ID. |\n| 429 | Rate limited | Wait and retry with exponential backoff. |\n| 500 | Internal server error | Retry after a brief delay. If persistent, the service may be down. |\n\nFor any error not listed here, refer to **`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ferror-handling\u002FSKILL.md`**.\n\n## Important Notes\n\n- Always read `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Ftoken-registry.md` before resolving token addresses.\n- Never guess token addresses or maker addresses.\n- If the user doesn't specify a chain, default to `ethereum`.\n- If the user specifies a chain not in the 17 supported chains, inform them that limit orders are not supported on that chain.\n- **Limit orders require ERC-20 tokens.** The native token sentinel (`0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`) is rejected by the API (error 4004). Always resolve native token aliases (ETH, BNB, MATIC, etc.) to their wrapped ERC-20 equivalents (WETH, WBNB, WPOL, etc.).\n- Slippage is **not** relevant for limit orders — users set exact target prices.\n- Orders are gasless to create (signed off-chain). Gas is only needed for hard cancellation and token approval.\n- **Signing an EIP-712 message authorizes the limit order contract to spend your tokens when a taker fills the order.** Always warn the user.\n- **Gasless cancellation is not instant — it takes up to 90 seconds. During this window, the order may still be filled.** Always warn the user.\n- **Hard cancellation requires an on-chain transaction and costs gas.** Always warn the user.\n- The DSLOProtocol contract address is typically `0xcab2FA2eeab7065B45CBcF6E3936dDE2506b4f6C` on all chains, but always verify via the contract-address endpoint.\n- Native token address: `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`\n\n## Additional Resources\n\n### Reference Files\n\n- **`${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fapi-reference.md`** — Full API specification, error codes, rate limiting\n- **`${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Ftoken-registry.md`** — Token addresses and decimals by chain\n\n### Documentation\n\n- **Create Limit Order:** https:\u002F\u002Fdocs.kyberswap.com\u002Fkyberswap-solutions\u002Flimit-order\u002Fdeveloper-guides\u002Fcreate-limit-order\n- **Gasless Cancel:** https:\u002F\u002Fdocs.kyberswap.com\u002Fkyberswap-solutions\u002Flimit-order\u002Fdeveloper-guides\u002Fgasless-cancel\n- **Hard Cancel:** https:\u002F\u002Fdocs.kyberswap.com\u002Fkyberswap-solutions\u002Flimit-order\u002Fdeveloper-guides\u002Fhard-cancel\n- **Fill Limit Order:** https:\u002F\u002Fdocs.kyberswap.com\u002Fkyberswap-solutions\u002Flimit-order\u002Fdeveloper-guides\u002Ffill-limit-order\n\n## Troubleshooting\n\n**Order not being filled?**\n- Verify the target price is realistic relative to current market price.\n- Ensure the maker has sufficient makerAsset balance.\n- Ensure the DSLOProtocol contract has been approved to spend makerAsset.\n- Check that the order has not expired.\n\n**Gasless cancel didn't work?**\n- Gasless cancellation takes up to 90 seconds. Wait and re-query the order status.\n- If the order was filled during the 90-second window, cancellation will fail. The order is already complete.\n- Use hard cancel for immediate, guaranteed cancellation.\n\n**Signature errors?**\n- Ensure the user is signing with the exact wallet address specified as `maker`.\n- Ensure the EIP-712 message is passed to the wallet exactly as returned by the sign-message endpoint.\n- Some wallets may not support EIP-712 signing. Check wallet compatibility.\n\nFor error codes not covered above, or for advanced debugging, refer to **`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ferror-handling\u002FSKILL.md`**.\n","# KyberSwap Limit Order Skill\n\nCreate, 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.\n\n**This skill supports three operations:**\n1. **Create** a limit order (sign-message, user signs, submit order)\n2. **Query** existing orders (by maker address)\n3. **Cancel** an order (gasless cancel or hard cancel)\n\n## Input Parsing\n\nThe user will provide input like:\n- `limit sell 1000 USDC for ETH at 0.00035 on arbitrum from 0xAbc123...`\n- `limit buy 0.5 ETH with USDC at 3200 on ethereum from 0xAbc123...`\n- `place a limit order to sell 100 LINK for USDC at 15.50 on polygon from 0xAbc123...`\n- `check my limit orders on ethereum for 0xAbc123...`\n- `cancel limit order {orderId} on arbitrum from 0xAbc123...`\n\n### Create Order — Extract These Fields\n\n- **makerAsset** (tokenIn) — the token the maker is selling\n- **takerAsset** (tokenOut) — the token the maker wants to receive\n- **makingAmount** — the human-readable amount of makerAsset to sell\n- **targetPrice** — the price per unit of makerAsset denominated in takerAsset\n- **chain** — the chain slug (default: `ethereum`)\n- **maker** — the address creating the order (**required**)\n- **expiry** — order expiry duration (e.g., \"1 hour\", \"1 day\", \"7 days\", \"1 week\", \"30 days\"). Default: **7 days**\n- **recipient** — the address to receive taker tokens (default: same as maker)\n\nDerive the **takingAmount** from the user's input based on order direction:\n\n**Limit-sell** (user sells `makerAsset` to receive `takerAsset`):\n```\ntakingAmount = makingAmount × targetPrice\n```\n*Example: Sell 1 ETH at 3200 USDC\u002FETH → makerAsset=WETH, makingAmount=1, takerAsset=USDC, takingAmount=3200*\n\n**Limit-buy** (user wants to buy `takerAsset` by spending `makerAsset`):\n```\nmakerAsset  = token being spent\ntakerAsset  = token being bought\nmakingAmount = desiredBuyAmount × targetPrice   (amount of makerAsset to spend)\ntakingAmount = desiredBuyAmount                  (amount of takerAsset to receive)\n```\n*Example: Buy 1 ETH at 3200 USDC\u002FETH → makerAsset=USDC, makingAmount=3200, takerAsset=WETH, takingAmount=1*\n\n> **Important:** The formula `takingAmount = makingAmount × targetPrice` is correct for limit-sell only. For limit-buy the direction inverts — always confirm whether the user is selling or buying before computing amounts.\n\n### Query Orders — Extract These Fields\n\n- **maker** — the address to query orders for (**required**)\n- **chain** — the chain slug (default: `ethereum`)\n- **status** — filter by order status: `active`, `filled`, `cancelled`, `expired` (default: `active`)\n\n### Cancel Order — Extract These Fields\n\n- **orderId** (or orderIds) — the order ID(s) to cancel (**required**)\n- **maker** — the address that created the order (**required**)\n- **chain** — the chain slug (default: `ethereum`)\n- **cancelType** — `gasless` (default) or `hard`\n\n**If the maker address is not provided, ask the user for it before proceeding.** Do not guess or use a placeholder address.\n\n**Maker address validation:** See `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Faddress-validation.md` for validation rules. Reject zero address, native token sentinel, and warn on contract addresses.\n\n## Supported Chains (17)\n\nSee `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fsupported-chains.md` for the full chain list with chain IDs. All Aggregator chains except MegaETH are supported.\n\n> **Note:** Limit orders are not supported on megaeth. If the user requests megaeth, inform them and suggest using a swap instead.\n\n## Create Order Workflow\n\n### Step 1: Resolve Token Addresses\n\nRead the token registry at `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Ftoken-registry.md`.\n\nLook up `makerAsset` and `takerAsset` for the specified chain. Match case-insensitively. Note the **decimals** for each token.\n\n**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}\u002Freferences\u002Fwrapped-tokens.md` for the complete mapping table.\n\nWhen 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.\"*\n\n**If a token is not found in the registry:**\nUse the fallback sequence described at the bottom of `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Ftoken-registry.md`:\n1. **KyberSwap Token API** (preferred) — search whitelisted tokens first: `https:\u002F\u002Ftoken-api.kyberswap.com\u002Fapi\u002Fv1\u002Fpublic\u002Ftokens?chainIds={chainId}&name={symbol}&isWhitelisted=true` via WebFetch. Pick the result whose `symbol` matches exactly with the highest `marketCap`. If no whitelisted match, retry without `isWhitelisted` (only trust verified or market-cap tokens). If still nothing, browse `page=1&pageSize=100` (try up to 3 pages).\n2. **CoinGecko API** (secondary fallback) — search CoinGecko for verified contract addresses if the Token API doesn't have it.\n3. **Ask user manually** (final fallback) — if CoinGecko also fails, ask the user to provide the contract address. Never guess or fabricate addresses.\n\n### Step 2: Check Token Safety\n\nFor any token **not** in the built-in registry and **not** a native token, check the honeypot\u002FFOT API:\n\n```\nGET https:\u002F\u002Ftoken-api.kyberswap.com\u002Fapi\u002Fv1\u002Fpublic\u002Ftokens\u002Fhoneypot-fot-info?chainId={chainId}&address={tokenAddress}\n```\n\nVia **WebFetch**, check both `makerAsset` and `takerAsset`:\n- If `isHoneypot: true` — **refuse the order** and warn the user that this token is flagged as a honeypot (cannot be sold after buying).\n- If `isFOT: true` — warn the user that this token has a fee-on-transfer (tax: `{tax}%`). The actual received amount will be less than expected. Proceed only if the user acknowledges the tax.\n\n### Step 2a: Price Reference Check\n\nBefore creating the order, fetch the current market price to help the user evaluate their target price. Use the KyberSwap Aggregator to quote 1 unit of makerAsset against takerAsset:\n\n```\nGET https:\u002F\u002Faggregator-api.kyberswap.com\u002F{chain}\u002Fapi\u002Fv1\u002Froutes?tokenIn={makerAssetAddress}&tokenOut={takerAssetAddress}&amountIn={oneUnitMakerInWei}&source=ai-agent-skills\n```\n\nVia **WebFetch**. For native tokens in the quote, use the native token sentinel `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`. For limit orders where tokens are wrapped (WETH, WPOL, etc.), use the wrapped token address.\n\n**Calculate the current market price:**\n```\ncurrentMarketPrice = amountOut \u002F 10^(takerAsset decimals)\n```\n\n**Compare target price vs market price:**\n```\ndeviationPercent = ((targetPrice - currentMarketPrice) \u002F currentMarketPrice) * 100\n```\n\n**Display price context in the confirmation step (Step 6a):**\n\nAdd a \"Price Context\" row to the confirmation table:\n\n| Detail | Value |\n|---|---|\n| Current market price | 1 {makerAsset} = {currentMarketPrice} {takerAsset} |\n| Target price | 1 {makerAsset} = {targetPrice} {takerAsset} |\n| Deviation | {deviationPercent}% {above\u002Fbelow} market |\n\n**Warning thresholds — warn prominently if the target price is unfavorable:**\n\nFor **limit-sell** orders (selling makerAsset):\n- Target price **below** market by > 5% → **WARN**: *\"Your target price is {deviationPercent}% below the current market price. You would receive less than the current market rate. Are you sure this is intentional?\"*\n- Target price **above** market → Informational: *\"Your target price is {deviationPercent}% above the current market price. The order will fill when the market reaches your target.\"*\n\nFor **limit-buy** orders (buying takerAsset):\n- Target price **above** market by > 5% → **WARN**: *\"Your target price is {deviationPercent}% above the current market price. You would pay more than the current market rate. Are you sure this is intentional?\"*\n- Target price **below** market → Informational: *\"Your target price is {deviationPercent}% below the current market price. The order will fill when the market reaches your target.\"*\n\n**If the Aggregator route fails** (no liquidity for the pair), skip the price check and note: *\"Could not fetch current market price for this pair. Unable to compare target price with market. Proceed with caution.\"*\n\n> **Tip:** Use the `token-info` skill for more detailed token information including market cap and safety status.\n\n### Step 3: Convert Amounts to Wei\n\n```\nmakingAmountWei = makingAmount * 10^(makerAsset decimals)\ntakingAmountWei = takingAmount * 10^(takerAsset decimals)\n```\n\nBoth results must be plain integer strings with no decimals, no scientific notation, and no separators.\n\n**Use deterministic conversion** — compute via `python3` or `bc`, never mental math:\n\n```bash\npython3 -c \"print(int({makingAmount} * 10**{makerDecimals}))\"\npython3 -c \"print(int({takingAmount} * 10**{takerDecimals}))\"\n```\n\n### Step 4: Get the Contract Address\n\nFetch the DSLOProtocol contract address for the chain:\n\n```\nGET https:\u002F\u002Flimit-order.kyberswap.com\u002Fread-ks\u002Fapi\u002Fv1\u002Fconfigs\u002Fcontract-address?chainId={chainId}\n```\n\nVia **WebFetch**. The contract address is typically `0xcab2FA2eeab7065B45CBcF6E3936dDE2506b4f6C` on all supported chains, but always verify.\n\n### Step 5: Compute Expiry Timestamp\n\nConvert the user's expiry duration to a Unix timestamp:\n\n```bash\n# Example: 7 days from now\necho $(($(date +%s) + 7 * 86400))\n```\n\nCommon durations:\n| Duration | Seconds |\n|---|---|\n| 1 hour | 3600 |\n| 1 day | 86400 |\n| 7 days | 604800 |\n| 30 days | 2592000 |\n\n### Step 6: Get EIP-712 Sign Message\n\nUse `Bash(curl)` for this POST request:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fwrite\u002Fapi\u002Fv1\u002Forders\u002Fsign-message\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"makerAsset\": \"{makerAssetAddress}\",\n    \"takerAsset\": \"{takerAssetAddress}\",\n    \"maker\": \"{makerAddress}\",\n    \"allowedSenders\": [\"0x0000000000000000000000000000000000000000\"],\n    \"makingAmount\": \"{makingAmountWei}\",\n    \"takingAmount\": \"{takingAmountWei}\",\n    \"expiredAt\": {expiryTimestamp}\n  }'\n```\n\nThe response contains the EIP-712 typed data that the user must sign.\n\n### Step 6a: Display Order Summary and Request Confirmation\n\n**CRITICAL: Always show order details and ask for confirmation before requesting a signature.**\n\nPresent the order details:\n\n```\n## Limit Order — Confirmation Required\n\n**Sell {makingAmount} {makerAsset} for {takingAmount} {takerAsset}** on {Chain}\n\n| Detail | Value |\n|---|---|\n| You sell | {makingAmount} {makerAsset} |\n| You receive | {takingAmount} {takerAsset} |\n| Target price | 1 {makerAsset} = {targetPrice} {takerAsset} |\n| Expires | {expiryDate} ({expiryDuration} from now) |\n| Chain | {chain} (Chain ID: {chainId}) |\n\n### Addresses\n\n| Field | Value |\n|---|---|\n| Maker | `{maker}` |\n| Recipient | `{recipient}` |\n| Maker Asset | `{makerAssetAddress}` |\n| Taker Asset | `{takerAssetAddress}` |\n| Contract | `{contractAddress}` |\n\n### Fee Structure\n\nLimit order fees are deducted from the taker amount upon fill:\n\n| Token Category | Fee Rate |\n|---|---|\n| Super Stable | 0.01% |\n| Stable | 0.02% |\n| Normal | 0.1% |\n| Exotic | 0.3% |\n| High Volatility | 0.5% |\n| Super High Volatility | 1% |\n\n### Warnings\n\n- **Signing an EIP-712 message authorizes the limit order contract to spend your {makerAsset} when a taker fills the order.**\n- Review the target price and amounts carefully before signing.\n- The order will remain active until filled, cancelled, or expired.\n\n**Do you want to proceed with signing this limit order?** (yes\u002Fno)\n```\n\n**Wait for the user to explicitly confirm with \"yes\", \"confirm\", \"proceed\", or similar affirmative response before requesting the signature.**\n\nIf the user says \"no\", \"cancel\", or similar, abort and inform them the order was not created. Do NOT proceed to Step 7.\n\n### Step 7: User Signs the EIP-712 Message\n\nPresent the EIP-712 typed data from Step 6 to the user for signing. The user must sign this message with their wallet.\n\n```\n### EIP-712 Signature Required\n\nPlease sign the following EIP-712 message with your wallet:\n\n{EIP-712 typed data JSON from sign-message response}\n\nProvide the signature (0x-prefixed hex string) after signing.\n```\n\n**Wait for the user to provide the signature before proceeding.**\n\n### Step 8: Create the Order\n\nOnce the user provides the signature, submit the order using `Bash(curl)`:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fwrite\u002Fapi\u002Fv1\u002Forders\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"makerAsset\": \"{makerAssetAddress}\",\n    \"takerAsset\": \"{takerAssetAddress}\",\n    \"maker\": \"{makerAddress}\",\n    \"allowedSenders\": [\"0x0000000000000000000000000000000000000000\"],\n    \"makingAmount\": \"{makingAmountWei}\",\n    \"takingAmount\": \"{takingAmountWei}\",\n    \"expiredAt\": {expiryTimestamp},\n    \"signature\": \"{userSignature}\",\n    \"salt\": \"{saltFromSignMessage}\",\n    \"interactions\": \"{interactionsFromSignMessage}\"\n  }'\n```\n\nInclude all fields returned from the sign-message response (`salt`, `interactions`, etc.) along with the user's signature.\n\n### Step 8a: Handle Create Errors\n\n| Scenario | Quick Fix |\n|---|---|\n| Invalid signature | Ensure the user signed the exact EIP-712 message. Re-request signing if needed. |\n| Expired timestamp | The `expiredAt` is in the past. Recompute with a future timestamp. |\n| Invalid token address | Verify token addresses for the correct chain. |\n| Insufficient maker balance | The maker must hold enough makerAsset when the order is filled. |\n| Order already exists | The same order parameters with same salt already submitted. |\n\n### Step 9: Format the Output\n\nPresent the results:\n\n```\n## Limit Order Created\n\n**Sell {makingAmount} {makerAsset} for {takingAmount} {takerAsset}** on {Chain}\n\n| Detail | Value |\n|---|---|\n| Order ID | `{orderId}` |\n| Status | Active |\n| You sell | {makingAmount} {makerAsset} |\n| You receive | {takingAmount} {takerAsset} |\n| Target price | 1 {makerAsset} = {targetPrice} {takerAsset} |\n| Expires | {expiryDate} |\n| Chain | {chain} (Chain ID: {chainId}) |\n\n> **Next steps:**\n> - Your order is now live and will be filled when the market reaches your target price.\n> - To check order status: \"check my limit orders on {chain} for {maker}\"\n> - To cancel: \"cancel limit order {orderId} on {chain} from {maker}\"\n```\n\n### Step 10: ERC-20 Approval Reminder\n\nIf `makerAsset` is **not** the native token, remind the user about token approval. See `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fapproval-guide.md` (ERC-20 section) for the approval template. Use:\n\n- **Token contract:** `{makerAsset address}`\n- **Spender (DSLOProtocol):** `{contractAddress}`\n- **Amount:** `{makingAmountWei}`\n\n### Structured JSON Output\n\nAfter the markdown table, always include a JSON code block so other plugins or agents can consume the result programmatically:\n\n````\n```json\n{\n  \"type\": \"kyberswap-limit-order\",\n  \"operation\": \"create\",\n  \"chain\": \"{chain}\",\n  \"chainId\": {chainId},\n  \"orderId\": \"{orderId}\",\n  \"makerAsset\": {\n    \"symbol\": \"{makerAsset}\",\n    \"address\": \"{makerAssetAddress}\",\n    \"decimals\": {makerAssetDecimals},\n    \"amount\": \"{makingAmount}\",\n    \"amountWei\": \"{makingAmountWei}\"\n  },\n  \"takerAsset\": {\n    \"symbol\": \"{takerAsset}\",\n    \"address\": \"{takerAssetAddress}\",\n    \"decimals\": {takerAssetDecimals},\n    \"amount\": \"{takingAmount}\",\n    \"amountWei\": \"{takingAmountWei}\"\n  },\n  \"targetPrice\": \"{targetPrice}\",\n  \"maker\": \"{maker}\",\n  \"recipient\": \"{recipient}\",\n  \"expiredAt\": {expiryTimestamp},\n  \"contract\": \"{contractAddress}\"\n}\n```\n````\n\n## Query Orders Workflow\n\n### Step 1: Query Maker Orders\n\nUse **WebFetch** for this GET request:\n\n```\nURL: https:\u002F\u002Flimit-order.kyberswap.com\u002Fread-ks\u002Fapi\u002Fv1\u002Forders?chainId={chainId}&maker={makerAddress}&status={status}\nPrompt: Return the full JSON response body exactly as received.\n```\n\nAdd the `X-Client-Id: ai-agent-skills` header.\n\n### Step 2: Display Results\n\nPresent the orders in a table:\n\n```\n## Your Limit Orders on {Chain}\n\nShowing {count} {status} order(s) for `{maker}`\n\n| # | Sell | Buy | Target Price | Filled | Expires | Order ID |\n|---|---|---|---|---|---|---|\n| 1 | {makingAmount} {makerAsset} | {takingAmount} {takerAsset} | 1 {makerAsset} = {price} {takerAsset} | {filledPercent}% | {expiryDate} | `{orderId}` |\n| ... | ... | ... | ... | ... | ... | ... |\n```\n\nConvert amounts from wei to human-readable using the token decimals.\n\n### Structured JSON Output\n\n````\n```json\n{\n  \"type\": \"kyberswap-limit-order\",\n  \"operation\": \"query\",\n  \"chain\": \"{chain}\",\n  \"chainId\": {chainId},\n  \"maker\": \"{maker}\",\n  \"status\": \"{status}\",\n  \"count\": {count},\n  \"orders\": [\n    {\n      \"orderId\": \"{orderId}\",\n      \"makerAsset\": \"{makerAssetSymbol}\",\n      \"takerAsset\": \"{takerAssetSymbol}\",\n      \"makingAmount\": \"{makingAmount}\",\n      \"takingAmount\": \"{takingAmount}\",\n      \"filledPercent\": \"{filledPercent}\",\n      \"expiredAt\": {expiredAt},\n      \"status\": \"{status}\"\n    }\n  ]\n}\n```\n````\n\n## Gasless Cancel Workflow\n\n**Gasless cancellation is free but not instant — it takes up to 90 seconds.** During this window, the order may still be filled by a taker.\n\n### Step 1: Request Cancel Signature\n\nUse `Bash(curl)` for this POST request:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fwrite\u002Fapi\u002Fv1\u002Forders\u002Fcancel-sign\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"maker\": \"{makerAddress}\",\n    \"orderIds\": [{orderIds}]\n  }'\n```\n\n### Step 2: Display Cancel Confirmation\n\n```\n## Gasless Cancel — Confirmation Required\n\nYou are about to cancel the following order(s):\n\n| Order ID | Sell | Buy |\n|---|---|---|\n| `{orderId}` | {makingAmount} {makerAsset} | {takingAmount} {takerAsset} |\n\n### Warnings\n\n- **Gasless cancellation is not instant — it takes up to 90 seconds. During this window, the order may still be filled.**\n- If you need immediate cancellation, use **hard cancel** instead (requires gas).\n\nPlease sign the cancellation message with your wallet and provide the signature.\n```\n\n### Step 3: User Signs Cancellation Message\n\nPresent the cancellation data from Step 1 to the user for signing. Wait for the signature.\n\n### Step 4: Execute Gasless Cancel\n\nUse `Bash(curl)`:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fwrite\u002Fapi\u002Fv1\u002Forders\u002Fcancel\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"maker\": \"{makerAddress}\",\n    \"orderIds\": [{orderIds}],\n    \"signature\": \"{userSignature}\"\n  }'\n```\n\n### Step 5: Format Output\n\n```\n## Limit Order Cancellation Submitted\n\n| Detail | Value |\n|---|---|\n| Cancel type | Gasless |\n| Order ID(s) | `{orderIds}` |\n| Status | Cancellation submitted |\n| ETA | Up to 90 seconds |\n\n> **Note:** The cancellation has been submitted to the operator. It may take up to 90 seconds to take effect. During this window, the order could still be filled.\n```\n\n## Hard Cancel Workflow\n\n**Hard cancellation is immediate but requires an on-chain transaction and costs gas.**\n\n**IMPORTANT: Always confirm with the user before fetching hard-cancel calldata.**\n\nDisplay the order details (from the query in the preceding step) and ask:\n```\nYou have requested a hard cancel for order(s): {orderIds}\nThis requires an on-chain transaction and will cost gas.\n\nDo you want to build hard-cancel calldata for these order(s)? (yes\u002Fno)\n```\nWait for explicit confirmation. If the user says \"no\" or similar, abort and do not call the encode API.\n\n### Option A: Cancel Specific Orders\n\nUse `Bash(curl)`:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fread-ks\u002Fapi\u002Fv1\u002Fencode\u002Fcancel-batch-orders\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"orderIds\": [{orderIds}]\n  }'\n```\n\n### Option B: Cancel All Orders (Increase Nonce)\n\nUse `Bash(curl)`:\n\n```bash\ncurl -s --connect-timeout 10 --max-time 30 \\\n  -X POST \"https:\u002F\u002Flimit-order.kyberswap.com\u002Fread-ks\u002Fapi\u002Fv1\u002Fencode\u002Fincrease-nonce\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"X-Client-Id: ai-agent-skills\" \\\n  -d '{\n    \"chainId\": \"{chainId}\",\n    \"maker\": \"{makerAddress}\"\n  }'\n```\n\nBoth options return encoded calldata. Present it to the user:\n\n```\n## Hard Cancel — Transaction Required\n\n| Detail | Value |\n|---|---|\n| Cancel type | Hard (on-chain) |\n| Order ID(s) | `{orderIds}` (or \"All active orders\" for nonce increase) |\n\n### Transaction Details\n\n| Field | Value |\n|---|---|\n| To (DSLOProtocol) | `{contractAddress}` |\n| Data | `{encodedCalldata}` |\n| Value | `0` |\n| Sender | `{maker}` |\n\n> **WARNING:** Hard cancellation requires an on-chain transaction and costs gas. Review the transaction details carefully before submitting. This skill does NOT submit the transaction — it only builds the calldata.\n```\n\n### Structured JSON Output (Cancel)\n\n````\n```json\n{\n  \"type\": \"kyberswap-limit-order\",\n  \"operation\": \"cancel\",\n  \"cancelType\": \"{gasless|hard}\",\n  \"chain\": \"{chain}\",\n  \"chainId\": {chainId},\n  \"maker\": \"{maker}\",\n  \"orderIds\": [\"{orderId}\"],\n  \"status\": \"{submitted|calldata-ready}\",\n  \"tx\": {\n    \"to\": \"{contractAddress}\",\n    \"data\": \"{encodedCalldata}\",\n    \"value\": \"0\"\n  }\n}\n```\n````\n\nThe `tx` field is only present for hard cancellations. For gasless cancellations, omit the `tx` field.\n\n## Error Handling\n\n### Common Error Scenarios\n\n| Scenario | Cause | Quick Fix |\n|---|---|---|\n| Invalid chain ID | Chain not supported for limit orders | Check the 17 supported chains. megaeth is not supported. |\n| Invalid token address | Token does not exist on the specified chain | Verify token address via token registry or Token API. |\n| Invalid maker address | Address is zero address or malformed | Validate address format: `^0x[a-fA-F0-9]{40}$` |\n| Signature mismatch | User signed wrong data or with wrong account | Ensure the user signs the exact EIP-712 message with the maker address. |\n| Order not found | Order ID does not exist or belongs to a different maker | Verify the order ID and maker address. Query orders first. |\n| Expired order | Cannot cancel an already expired order | The order has already expired. No action needed. |\n| Already cancelled | Order was already cancelled | The order is already cancelled. No action needed. |\n| Already filled | Order was already filled by a taker | The order has been filled. No action needed. |\n| Insufficient allowance | Maker has not approved makerAsset to DSLOProtocol | Approve the contract to spend makerAsset before the order can be filled. |\n| TakerAsset\u002FMakerAsset invalid (4004) | Native token sentinel (`0xEeee...`) used as makerAsset or takerAsset | Limit orders require ERC-20 tokens. Use the wrapped version (e.g., WETH instead of ETH). See the alias table in Step 1. |\n| Rate limit | Too many requests | Wait and retry. Space requests by at least 1 second. |\n\n### HTTP Error Codes\n\n| Code | Meaning | Action |\n|---|---|---|\n| 400 | Bad request | Check request body format, required fields, and data types. |\n| 401 | Unauthorized | Verify the signature and maker address. |\n| 404 | Not found | Check endpoint URL and chain ID. |\n| 429 | Rate limited | Wait and retry with exponential backoff. |\n| 500 | Internal server error | Retry after a brief delay. If persistent, the service may be down. |\n\nFor any error not listed here, refer to **`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ferror-handling\u002FSKILL.md`**.\n\n## Important Notes\n\n- Always read `${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Ftoken-registry.md` before resolving token addresses.\n- Never guess token addresses or maker addresses.\n- If the user doesn't specify a chain, default to `ethereum`.\n- If the user specifies a chain not in the 17 supported chains, inform them that limit orders are not supported on that chain.\n- **Limit orders require ERC-20 tokens.** The native token sentinel (`0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`) is rejected by the API (error 4004). Always resolve native token aliases (ETH, BNB, MATIC, etc.) to their wrapped ERC-20 equivalents (WETH, WBNB, WPOL, etc.).\n- Slippage is **not** relevant for limit orders — users set exact target prices.\n- Orders are gasless to create (signed off-chain). Gas is only needed for hard cancellation and token approval.\n- **Signing an EIP-712 message authorizes the limit order contract to spend your tokens when a taker fills the order.** Always warn the user.\n- **Gasless cancellation is not instant — it takes up to 90 seconds. During this window, the order may still be filled.** Always warn the user.\n- **Hard cancellation requires an on-chain transaction and costs gas.** Always warn the user.\n- The DSLOProtocol contract address is typically `0xcab2FA2eeab7065B45CBcF6E3936dDE2506b4f6C` on all chains, but always verify via the contract-address endpoint.\n- Native token address: `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`\n\n## Additional Resources\n\n### Reference Files\n\n- **`${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fapi-reference.md`** — Full API specification, error codes, rate limiting\n- **`${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Ftoken-registry.md`** — Token addresses and decimals by chain\n\n### Documentation\n\n- **Create Limit Order:** https:\u002F\u002Fdocs.kyberswap.com\u002Fkyberswap-solutions\u002Flimit-order\u002Fdeveloper-guides\u002Fcreate-limit-order\n- **Gasless Cancel:** https:\u002F\u002Fdocs.kyberswap.com\u002Fkyberswap-solutions\u002Flimit-order\u002Fdeveloper-guides\u002Fgasless-cancel\n- **Hard Cancel:** https:\u002F\u002Fdocs.kyberswap.com\u002Fkyberswap-solutions\u002Flimit-order\u002Fdeveloper-guides\u002Fhard-cancel\n- **Fill Limit Order:** https:\u002F\u002Fdocs.kyberswap.com\u002Fkyberswap-solutions\u002Flimit-order\u002Fdeveloper-guides\u002Ffill-limit-order\n\n## Troubleshooting\n\n**Order not being filled?**\n- Verify the target price is realistic relative to current market price.\n- Ensure the maker has sufficient makerAsset balance.\n- Ensure the DSLOProtocol contract has been approved to spend makerAsset.\n- Check that the order has not expired.\n\n**Gasless cancel didn't work?**\n- Gasless cancellation takes up to 90 seconds. Wait and re-query the order status.\n- If the order was filled during the 90-second window, cancellation will fail. The order is already complete.\n- Use hard cancel for immediate, guaranteed cancellation.\n\n**Signature errors?**\n- Ensure the user is signing with the exact wallet address specified as `maker`.\n- Ensure the EIP-712 message is passed to the wallet exactly as returned by the sign-message endpoint.\n- Some wallets may not support EIP-712 signing. Check wallet compatibility.\n\nFor error codes not covered above, or for advanced debugging, refer to **`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ferror-handling\u002FSKILL.md`**.\n",{"name":5,"metadata":44,"description":7},{"tags":45,"homepage":46,"provider":47},[38,32,5,31,25],"https:\u002F\u002Fkyberswap.com","KyberSwap","main","3df1d0d67b30ff15236561f8c0f9f06d33f42dfd","skills\u002Fdefi\u002Fkybernetwork-official-limit-order",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill limit-order",{"tool":63,"command":64},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill limit-order",{"tool":66,"command":67},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill limit-order","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Fkybernetwork-official-limit-order\u002FSKILL.md",true,[71,77],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"SOURCE.md","REFERENCE","参考文档",360,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Fkybernetwork-official-limit-order\u002FSOURCE.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"TRUST.auto.yaml",2164,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Fkybernetwork-official-limit-order\u002FTRUST.auto.yaml",[82,92,99,107,115,123],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":91},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":93,"name":27,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":91},"01M7DTK6CJSMGC8KCQHGNYFZBD","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":103,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":91},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":111,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":91},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":119,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":91},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":127,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":91},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]