Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

across-protocol-ai-agent-skill跨协议 AIAgent 技能

Agent Skill

across-protocol-ai-agent-skill 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

539

周安装

22

GitHub Stars

2

下载量

174
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:across-protocol-ai-agent-skill(跨协议 AIAgent 技能)
来源仓库:https://github.com/across-protocol/skills
仓库路径:skills/across-protocol-ai-agent-skill
安装命令:
npx skills add https://github.com/across-protocol/skills --skill across-protocol-ai-agent-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/across-protocol/skills --skill across-protocol-ai-agent-skill

简介

该技能提供跨链桥接与代币互换相关的集成支持。across-protocol-ai-agent-skill 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适用于构建多链应用、实现资产跨链转移或监控存款状态。
  • 支持费用查询、路由发现、意图构造及集成商手续费设置。
  • 可通过 API 获取跨链路径缩写(如 B2B、A2B)以优化交易成本。
  • 使用前应验证合约安全性与集成是否符合最新协议标准。

SKILL.md

Across Protocol Development Skill

What this Skill is for

Use this Skill when the user asks for:

  • Crosschain bridge or swap integration (any-to-any token transfers)
  • Wallet or dApp integration with Across APIs
  • Embedded crosschain actions (bridge + mint/stake/deposit in one tx)
  • Deposit tracking and status monitoring
  • Fee quoting, transfer limits, or route discovery
  • Integrator fee collection setup
  • On-chain intent construction (ERC-7683 / SpokePool deposits)
  • Relayer operation or configuration
  • Security review of crosschain integration code

Route type abbreviations

The Swap API classifies routes using a shorthand based on whether each token is directly bridgeable (B) or requires a swap to/from a bridgeable token (A = Any):

AbbreviationMeaningExample
B2BBridgeable → BridgeableUSDC on Arbitrum → USDC on Base (no swaps, bridge only)
A2BAny → BridgeableWBTC on Arbitrum → USDC on Base (origin swap + bridge)
B2ABridgeable → AnyUSDC on Arbitrum → WBTC on Base (bridge + destination swap)
A2AAny → AnyWBTC on Arbitrum → DAI on Base (origin swap + bridge + destination swap)

These abbreviations appear in crossSwapType responses and in refund behavior defaults.

Default stack decisions (opinionated)

1. Swap API first (recommended for most integrators)

  • Use GET /swap/approval for all crosschain swaps. It returns executable calldata to sign and submit.
  • Use POST /swap/approval when you need embedded destination actions (mint, stake, deposit).
  • The Swap API handles origin swaps, bridging, and destination swaps in a single call.
  • Supports appFee + appFeeRecipient for integrator fee collection.

2. Suggested-fees API: legacy only

  • Use /suggested-fees only when you control your own swap infrastructure and just need bridge fee quotes.
  • This path requires you to assemble transactions yourself (construct depositV3 calls manually).
  • It does not handle origin or destination swaps.

3. Trade type selection

  • exactInput (default): user specifies how much to send. Best for "swap X tokens" flows.
  • minOutput: user specifies minimum to receive. Best for simple swaps without post-bridge actions.
  • exactOutput: user needs a precise amount on destination. Best for multi-step flows (for example, exact ERC-20 amount for a mint).

4. Slippage

  • Default to slippage=auto.
  • Numeric slippage (0 to 1) is split across origin and destination swaps when both swaps exist.
  • If only one swap happens, the full slippage is applied to that leg.

5. Refund behavior

  • B2B or A2B routes (no destination swap): refunds default to origin chain.
  • B2A or A2A routes (destination swap involved): refunds default to destination chain.
  • Override with refundOnOrigin=true/false when needed.
  • Refund recipient priority: refundAddress > recipient > depositor.

Operating procedure (how to execute tasks)

1. Classify the task

  • UI or wallet integration
  • Backend or script
  • Embedded actions
  • Tracking or monitoring
  • On-chain or ERC-7683
  • Relayer operation

2. Pick the right integration path

TaskUse
Crosschain swap (any token to any token)Swap API GET /swap/approval
Bridge + destination action (mint, stake)Swap API POST /swap/approval with actions body
Programmatic TypeScript integrationApp SDK createAcrossClient()
Bridge-only with custom swap routing/suggested-fees + manual depositV3
Direct on-chain intent (ERC-7683)AcrossOriginSettler.open() on supported chains
Track a depositGET /deposit/status with depositTxnRef or originChainId + depositId

3. Implement with Across-specific correctness

Always be explicit about:

  • Integrator ID (2-byte hex string)
  • Token addresses: must match the specific chain (use wrapped addresses for native tokens)
  • Amount units: always in smallest unit (wei for ETH, 1e6 for USDC, 1e18 for WETH)
  • Chain IDs: use exact numeric chain IDs, not chain names
  • Approval transactions: check approvalTxns in Swap API responses
  • Do not cache /swap/approval and /suggested-fees responses

4. Test on testnet, ship on mainnet

  • Testnet base URL: https://testnet.across.to/api
  • Use small amounts (around $10) on testnet. Testnet fills take about 1 minute (vs around 2 seconds on mainnet).
  • Testnet relayers are manually funded. Do not test with large amounts.
  • Switch to mainnet (https://app.across.to/api) once integration logic is verified.

5. Deliverable expectations

When implementing changes, provide:

  • Exact files changed with diffs
  • Commands to install, build, and test
  • A Risk Notes section for anything touching signing, fees, slippage, approvals, refunds, or crosschain messages

Progressive disclosure (read when needed)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.02%
按下载量换算64

Claude

28.57%
按下载量换算50

Cursor

18.65%
按下载量换算32

Gemini CLI

10.2%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills