← 返回 Skills 市场
746
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install xpr-defi
功能描述
Read-only DeFi queries for Metal X prices, swap rates, liquidity pools, and multisig proposal creation, approval, listing, and cancellation on XPR Network.
安全使用建议
Do not provide your XPR private key to this skill until the author fixes inconsistencies and you fully understand the runtime behavior. Specific concerns: (1) The skill's manifest (skill.json) declares no required env vars, but the code requires XPR_PRIVATE_KEY, XPR_ACCOUNT, and XPR_RPC_ENDPOINT for any write operations. This means write tools will attempt to use your private key if you set those env vars — the skill should explicitly declare that requirement and mark write tools as optional. (2) The package dynamically imports '@proton/js' but dependencies aren't declared; ask the author to list dependencies or provide an install spec. (3) SKILL.md claims strong safety rules (confirmed:true, don't auto-execute proposals) — verify the runtime enforces them and that the agent platform will surface confirmation prompts. Recommended actions before installing: ask the publisher to update skill.json to list required env vars and dependencies, provide explicit documentation on when and how the private key is used, and make write tools opt-in; run the skill in an isolated test agent with no private key to validate read-only behavior; if you must enable writes, prefer using a time-locked or limited-signing key and keep the key out of broad environment scope (use ephemeral signing service or hardware wallet if possible).
功能分析
Type: OpenClaw Skill
Name: xpr-defi
Version: 2.1.1
The skill is classified as suspicious due to its inherent high-risk capabilities, specifically the handling of a private key (`XPR_PRIVATE_KEY` from environment variables) for signing blockchain transactions and the `msig_propose` tool in `src/index.ts` which allows the agent to construct arbitrary blockchain actions for a multisig proposal. While these capabilities are necessary for a 'Complete DeFi toolkit' and are protected by strong safeguards like the `confirmed: true` parameter for all write operations and explicit prompt-injection prevention rules in `SKILL.md`, the potential for exploitation through a sophisticated prompt injection attack or a vulnerability in the agent's execution environment means it cannot be considered benign. There is no evidence of intentional malicious behavior such as data exfiltration or backdoor installation.
能力评估
Purpose & Capability
The SKILL.md and src/index.ts implement both read-only queries and many write operations (orders, swaps, liquidity, multisig propose/approve/cancel). However, skill.json declares no required environment variables or credentials. The top-line description sometimes calls the skill "read-only" while the tool list and code clearly include write tools — this is an explicit mismatch. A DeFi skill that supports on-chain writes legitimately needs a signing key and RPC endpoint; those are missing from the declared requirements.
Instruction Scope
SKILL.md places sensible constraints (e.g., all write ops require confirmed:true and multisig proposals must be explicitly requested), but it does not disclose that write tools require access to your XPR private key, account, and RPC endpoint. The runtime instructions therefore omit critical operational details the agent will need to perform writes. The code itself reads process.env.XPR_PRIVATE_KEY, XPR_ACCOUNT, and XPR_RPC_ENDPOINT for write operations — this is not documented in requires.env.
Install Mechanism
There is no install spec (instruction-only), which minimizes installer-side risk. However, the code dynamically imports '@proton/js' at runtime and includes source + tests but no declared dependencies in skill.json. That mismatch means the skill may fail at runtime or attempt to load packages unexpectedly from the environment; the skill author should declare dependencies.
Credentials
The code requires highly sensitive environment variables for write actions: XPR_PRIVATE_KEY (private signing key), XPR_ACCOUNT, and XPR_RPC_ENDPOINT, but skill.json's requires.env is empty and no primary credential is declared. Requesting a raw private key is proportionate for on-chain writes only if clearly declared and justified — here that justification is present in function, but it is not reflected in the manifest or SKILL.md as a prerequisite, which is misleading and risky.
Persistence & Privilege
always:false (normal) and disable-model-invocation:false (default autonomous invocation allowed). Autonomous invocation is the platform default; combine that with the skill's ability to sign transactions (if a private key is provided) and you get a larger blast radius. The skill does not request permanent presence or modify other skills' configs.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install xpr-defi - 安装完成后,直接呼叫该 Skill 的名称或使用
/xpr-defi触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.1.1
30 tools: DEX trading, AMM swaps, OTC P2P escrow, yield farming, liquidity pools, OHLCV charts, orderbook, msig proposals
v2.1.0
30 tools: DEX trading, AMM swaps, OTC escrow, yield farming, liquidity, msig proposals
v0.2.11
- Improved and clarified SKILL.md documentation for DeFi queries and multisig proposal management.
- Clearly separated DeFi (read-only) tool usage from multisig operations, with best practices and security rules.
- Detailed security guidelines for handling multisig proposals, emphasizing operator confirmation and refusal of automation/execution requests.
- Added examples and clarifications for token formats, market symbols, and appropriate tool usage scenarios.
- Updated instructions on when to use or refuse multisig functions, providing safety guidance for all users.
元数据
常见问题
XPR DeFi 是什么?
Read-only DeFi queries for Metal X prices, swap rates, liquidity pools, and multisig proposal creation, approval, listing, and cancellation on XPR Network. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 746 次。
如何安装 XPR DeFi?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install xpr-defi」即可一键安装,无需额外配置。
XPR DeFi 是免费的吗?
是的,XPR DeFi 完全免费(开源免费),可自由下载、安装和使用。
XPR DeFi 支持哪些平台?
XPR DeFi 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 XPR DeFi?
由 paulgnz(@paulgnz)开发并维护,当前版本 v2.1.1。
推荐 Skills