← Back to Skills Marketplace
paulgnz

XPR DeFi

by paulgnz · GitHub ↗ · v2.1.1
cross-platform ⚠ suspicious
746
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install xpr-defi
Description
Read-only DeFi queries for Metal X prices, swap rates, liquidity pools, and multisig proposal creation, approval, listing, and cancellation on XPR Network.
Usage Guidance
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).
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install xpr-defi
  3. After installation, invoke the skill by name or use /xpr-defi
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug xpr-defi
Version 2.1.1
License
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 746 downloads so far.

How do I install XPR DeFi?

Run "/install xpr-defi" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is XPR DeFi free?

Yes, XPR DeFi is completely free (open-source). You can download, install and use it at no cost.

Which platforms does XPR DeFi support?

XPR DeFi is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created XPR DeFi?

It is built and maintained by paulgnz (@paulgnz); the current version is v2.1.1.

💬 Comments