← 返回 Skills 市场
X Layer Execution Guard
作者
richard7463
· GitHub ↗
· v1.0.1
· MIT-0
77
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install xlayer-execution-guard
功能描述
Run an executable X Layer pre-execution guard for autonomous agents: OnchainOS DEX route judgment, honeypot and price-impact checks, proof-mode evidence, and...
安全使用建议
This skill implements exactly what it claims (route checks, honeypot detection, simulated proof, and optional live execution), but it will use signed OnchainOS/OKX API credentials and may invoke a local onchainos CLI to operate a wallet. Before installing or running with real keys: 1) Do not supply API keys unless you trust the skill—review the full _execute_trade implementation (not shown in the truncated listing) and any subprocess calls to confirm no secret exfiltration. 2) Prefer proof mode (--execution-mode proof / --no-execute) for testing. 3) Run the skill in an isolated environment or sandbox first. 4) Ensure plugin.yaml or registry metadata is updated to declare required env vars so you know what secrets are needed. 5) If you plan live runs, require explicit human approval each time and confirm which wallet/onchainos binary will be used (ONCHAINOS_BIN).
功能分析
Type: OpenClaw Skill
Name: xlayer-execution-guard
Version: 1.0.1
The xlayer-execution-guard skill is a legitimate utility designed to provide safety checks (honeypot detection, price impact analysis) and execution capabilities for DEX swaps on the X Layer network. It interacts with the official OKX DEX aggregator API (web3.okx.com) and a local 'onchainos' wallet CLI. The code uses secure subprocess handling (passing arguments as a list) to prevent shell injection and manages sensitive API credentials through standard environment variables and local configuration files. No evidence of data exfiltration, malicious prompt injection, or unauthorized access was found.
能力标签
能力评估
Purpose & Capability
The skill's name/description (OnchainOS DEX route judgment, honeypot/impact checks, proof artifacts, optional Agentic Wallet execution) matches the bundled Python code: a Route Referee client, an ExecutionGuard pipeline, and scripts to run and check the wallet. However the registry metadata declared no required environment variables or primary credential while SKILL.md and the runtime client clearly require ONCHAINOS_API_KEY / ONCHAINOS_API_SECRET / ONCHAINOS_API_PASSPHRASE (and accept OKX_* aliases). This metadata omission is an incoherence and reduces transparency.
Instruction Scope
SKILL.md confines runtime steps to token discovery, quotes, simulated proof, and (with explicit approval) onchain execution via the 'onchainos' CLI or the OnchainOS HTTP API. The instructions encourage default 'proof' mode and require explicit approval for live wallet execution. That scope aligns with the code. A caveat: the runtime will call external network APIs (default base https://web3.okx.com) and may invoke the local onchainos CLI (scripts/check_agentic_wallet.py uses subprocess). The SKILL.md accurately documents these behaviors but does not fully manifest in the registry metadata.
Install Mechanism
No network download/install spec is included; the skill is instruction+bundled Python code. requirements.txt only lists 'requests'. No third-party install URLs, extract steps, or obscure external installers are present.
Credentials
The runtime client reads and uses API credentials (ONCHAINOS_API_KEY / ONCHAINOS_API_SECRET / ONCHAINOS_API_PASSPHRASE) and proxy/timeouts; it also accepts OKX_* environment aliases. Those credentials are proportionate to performing signed OnchainOS/OKX API calls, but the skill registry metadata claimed no required env vars — an important omission. The code will sign requests with your API secret (HMAC) and will use any provided onchainos CLI that may access local wallets. This requires explicit, informed user consent before supplying secrets or allowing live execution.
Persistence & Privilege
The skill does not request persistent 'always' inclusion, does not modify other skills, and contains no install-time changes or writing to unrelated system-wide configs. It uses the local runtime and may call onchainos if present; that is expected for its purpose.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install xlayer-execution-guard - 安装完成后,直接呼叫该 Skill 的名称或使用
/xlayer-execution-guard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
**Expanded pre-execution guard with runtime and CLI support**
- Added dedicated Python runtime and CLI scripts for guarded execution and environment checks.
- Introduced detailed operating rules for simulation (proof mode), agentic-wallet execution, and handling missing API credentials.
- Clear split between mock output vs. live proof; ensures users distinguish real/wallet actions from simulation.
- Updated documentation for OpenClaw and ClawHub quick-start, environment setup, wallet requirements, and error handling.
- Outputs now include stepwise pre-execution judgment, post-execution proof, and closed-loop validation artifacts.
v1.0.0
- Initial release of xlayer-execution-guard, providing a complete pre-execution judgment and post-execution proof pipeline for autonomous AI agents.
- Features automated safety checks, multi-DEX route comparisons, and verdicts (execute, resize, retry, block) before trades.
- Generates standardized execution proofs and attributions after trades, supporting audit trails and outcome analysis.
- Implements closed-loop validation by matching pre-execution verdicts with actual outcomes to help agents learn from results.
- Integrates with OnchainOS DEX Aggregator APIs for real-time token, liquidity, and quote data.
元数据
常见问题
X Layer Execution Guard 是什么?
Run an executable X Layer pre-execution guard for autonomous agents: OnchainOS DEX route judgment, honeypot and price-impact checks, proof-mode evidence, and... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 77 次。
如何安装 X Layer Execution Guard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install xlayer-execution-guard」即可一键安装,无需额外配置。
X Layer Execution Guard 是免费的吗?
是的,X Layer Execution Guard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
X Layer Execution Guard 支持哪些平台?
X Layer Execution Guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 X Layer Execution Guard?
由 richard7463(@richard7463)开发并维护,当前版本 v1.0.1。
推荐 Skills