← Back to Skills Marketplace
X Layer Execution Guard
by
richard7463
· GitHub ↗
· v1.0.1
· MIT-0
77
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install xlayer-execution-guard
Description
Run an executable X Layer pre-execution guard for autonomous agents: OnchainOS DEX route judgment, honeypot and price-impact checks, proof-mode evidence, and...
Usage Guidance
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).
Capability Analysis
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.
Capability Tags
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install xlayer-execution-guard - After installation, invoke the skill by name or use
/xlayer-execution-guard - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 77 downloads so far.
How do I install X Layer Execution Guard?
Run "/install xlayer-execution-guard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is X Layer Execution Guard free?
Yes, X Layer Execution Guard is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does X Layer Execution Guard support?
X Layer Execution Guard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created X Layer Execution Guard?
It is built and maintained by richard7463 (@richard7463); the current version is v1.0.1.
More Skills