All skills
paulrberg avatar

/evm-atlas

@592682c
by Paul Bergpaulrberg/agent-skills94 stars
7

Use for targeted EVM chain, account, transaction, RPC, explorer, bridge, and DEX evidence: chain name/ID, native symbol, RouteMesh, wallet balances via Blockscan in Chromium, token/NFT holdings/transfers, tx history, funding origin via Etherscan/Blockscout/Chainscout; Across, Bungee, deBridge, Hop, Layerswap, LayerZero, LI.FI, Relay, Socket, Symbiosis; Uniswap v1-v4, Universal Router, Permit2, 1inch Classic/Fusion/Fusion+, and CoW Swap, CoWSwap, CoW Protocol, or GPv2 swaps, orders, liquidity, approvals, permits, rewards, migrations, wrapping, cancellations, and refunds.

Use this Skill: https://skilld.dev/gh/paulrberg/agent-skills/evm-atlas

This session only. Nothing lands on disk.

referencesbridgeslifi.md

≈1.7k tokens on demand. Your agent reads this file only when SKILL.md points to it.

LI.FI Bridging

Overview

Use LI.FI as a read-only source for bridge and cross-chain swap quotes, route options, supported chains/tokens/tools, and transfer status on target chains. Prefer the REST API for agent use. The SDK docs are useful for object names and route semantics, but this skill must not execute SDK routes or returned transaction requests.

Default to the REST API base URL:

https://li.quest/v1

Most LI.FI API calls work without an API key at lower rate limits. Add the key only when present:

-H "x-lifi-api-key: $LIFI_API_KEY"

Never execute bridge steps from this skill. Do not sign messages, submit transactions, execute SDK routes, call executeRoute, call getStepTransaction for execution, or broadcast any returned transactionRequest. Returned transaction data is for inspection only.

Read-Only Router

Use this router after the known origin and destination chains are confirmed against references/generated/target-mainnets.json.

  1. Simple quote: call GET /quote when the user wants one best route or a specific bridge/swap estimate.
  2. Multiple routes: call POST /advanced/routes when the user needs route comparison, multiple options, or complex multi-step paths.
  3. Known source tx hash: call GET /status?txHash=<hash>. Add fromChain, toChain, and bridge when known for faster, more precise results.
  4. Supported chains: call GET /chains; use chainTypes=EVM when only EVM chains are relevant.
  5. Supported tokens: call GET /tokens?chains=<chainIds> for chain-specific token catalogs.
  6. Available bridges and exchanges: call GET /tools.
  7. Possible token connections: call GET /connections when validating whether a pair can be swapped or bridged.

Example quote inspection:

curl -sS "https://li.quest/v1/quote?fromChain=1&toChain=42161&fromToken=USDC&toToken=USDC&fromAmount=1000000&fromAddress=0xWALLET"

Example status lookup:

curl -sS "https://li.quest/v1/status?txHash=0xTX_HASH&fromChain=1&toChain=42161&bridge=stargateV2"

If $LIFI_API_KEY is set, add -H "x-lifi-api-key: $LIFI_API_KEY".

Request Fields

For quote or route inspection, use explicit chain IDs from references/generated/target-mainnets.json.

Field Use
fromChain Source chain ID
toChain Destination chain ID
fromToken Source token symbol or token contract address
toToken Destination token symbol or token contract address
fromAmount Source amount in smallest units
toAmount Destination amount in smallest units; do not combine with fromAmount
fromAddress Sender address; use only user-provided or placeholder addresses
toAddress Destination receiver; defaults may differ by endpoint
slippage Optional slippage tolerance; default is API-defined
allowBridges / denyBridges Restrict route bridge set when the user requests it

Do not invent wallet addresses. Use placeholders for hypothetical quotes and user-provided addresses for real lookups.

Report Fields

Extract and report these fields when present:

Field LI.FI path examples
Route or quote ID id, routes[].id
Tool / bridge tool, toolDetails, includedSteps[].tool, steps[].tool
Source chain/token action.fromChainId, action.fromToken, estimate.fromAmount
Destination chain/token action.toChainId, action.toToken, estimate.toAmount
Amounts estimate.fromAmount, estimate.toAmount, estimate.toAmountMin
Gas and fees estimate.gasCosts[], estimate.feeCosts[]
Execution artifacts transactionRequest, step transaction fields for inspection only
Status status, substatus, substatusMessage
Source tx hash sending.txHash, transactionHash, request txHash
Destination tx hash receiving.txHash
Explorer links sending.txLink, receiving.txLink

Token amounts are raw integer units. Convert with token decimals when present, and preserve raw values when decimals are absent.

Status Values

Interpret LI.FI status as:

Status Meaning
NOT_FOUND LI.FI has no record yet
PENDING In progress
DONE Terminal success
FAILED Terminal failure

Important substatuses:

Substatus Meaning
COMPLETED Transfer completed as expected
PARTIAL User received a different token; still success
REFUNDED Tokens were returned to the sender

For DONE, still verify terminal destination activity with explorer or RPC data when the destination chain is a target chain.

Failure Handling

  • Missing $LIFI_API_KEY: use unauthenticated requests and respect lower public rate limits.
  • Rate limit 429: back off, mention the limit, and continue explorer/RPC analysis.
  • No route found: report the API reason when present; try only user-approved alternative tokens, chains, amounts, or bridge filters.
  • Insufficient balance or gas: report the quoted requirement; do not attempt remediation transactions.
  • Slippage errors: report the issue; do not change slippage unless the user explicitly asks for a new quote.
  • Non-target chains in LI.FI results: report that the leg is outside this skill and ask for a feature request rather than continuing analysis on that leg.

Sources

Source: SKILL.md on GitHub

No alerts1d3 checks · Risk SAFE
  • Gen Agent Trust Hub1d

    The skill is a comprehensive toolkit for exploring EVM blockchain data across multiple networks, bridges, and DEXes. It utilizes local shell and Python scripts to process API responses from well-known cryptocurrency services like Etherscan and Blockscout. While the skill possesses an attack surface for indirect prompt injection via the processing of externally controlled blockchain data, it includes robust instructions and deterministic logic to mitigate these risks.

  • Socket1d

    No alerts

  • Snyk1d

    Risk: LOW · No issues

Signed by skilld at 592682c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 weeks ago
argument-hint
<chain-name-or-id|address|transaction-hash|order-id>
coordination
exempt
skill-dependencies
[
  "chromium-browser",
  "cli-cast"
]
Other metadata
compatibility
Requires the `routemesh` CLI initialized on macOS with `routemesh init` for RouteMesh requests.

README badge

README badge for paulrberg/agent-skills/evm-atlas