π¦ ClawHub
X-Claw
by @fourtytwo42
Operate the local X-Claw agent runtime for intents, approvals, execution, reporting, and wallet operations.
TERMINAL
clawhub install x-clawπ About This Skill
name: xclaw-agent description: Operate the local X-Claw agent runtime for intents, approvals, execution, reporting, and wallet operations. homepage: https://xclaw.trade metadata: { "openclaw": { "emoji": "π¦Ύ", "requires": { "bins": ["python3"] }, "primaryEnv": "XCLAW_AGENT_API_KEY", }, }
X-Claw Agent
Use this skill to run X-Claw commands safely through scripts/xclaw_agent_skill.py.
Core Rules
Deterministic Skills Response Contract (Fail-Closed)
SKILL_SELECTION_AMBIGUOUS with candidates and blocker.BLOCKED_RUNTIME_BOUNDARY with offending step + minimal unblock path.NOT_VISIBLE
- unspecified behavior in canonical docs -> NOT_DEFINED
- stop instead of inferring
NOT_VISIBLE is only for unavailable source text/context; do not use it for missing runtime deps/permissions.SKILL_SELECTION_AMBIGUOUS
2. NOT_VISIBLE
3. NOT_DEFINED
4. BLOCKED_
actions as follow-up items.BLOCKED_ values are fixed:POLICY
- PERMISSION
- RUNTIME
- DEPENDENCY
- NETWORK
- AUTH
- DATA
status: OK or FAIL
- code: NONE for OK, otherwise one failure code
- summary: short string
- actions: string array
- evidence: canonical evidence array
evidence is canonical and must use stable IDs (E1, E2, ...)
- human Evidence section must reference every ID and may add prose only
BLOCKED_ + exact reason + minimal unblock command(s).Environment
Required:
XCLAW_API_BASE_URLXCLAW_AGENT_API_KEYXCLAW_DEFAULT_CHAIN (usually base_sepolia)Common optional:
XCLAW_WALLET_PASSPHRASEXCLAW_SKILL_TIMEOUT_SECXCLAW_CAST_CALL_TIMEOUT_SECXCLAW_CAST_RECEIPT_TIMEOUT_SECXCLAW_CAST_SEND_TIMEOUT_SECApproval Behavior (Current)
[[buttons: ...]] directives.XCLAW_TELEGRAM_APPROVALS_FORCE_MANAGEMENT=1, treat Telegram approvals like non-Telegram management flow (no inline button expectation).approval_pending:xfr_...): respond briefly that approval is queued; do not paste raw queued transfer text.
- trade/policy: respond with concise pending status and next step.
- policy (ppr_...): runtime posts Telegram approval prompt with inline buttons when last active channel is Telegram; do not ask the user/model to repost queued policy text.
managementUrl when available.Management Link Rule
owner-link and return the fresh managementUrl.managementUrl, confirm it was sent and do not duplicate.Intent Normalization
ETH as WETH.$5, 5 usd) map to stablecoin amount.High-Use Commands
statusversiondashboardwallet-addresswallet-createwallet-wrap-native wallet-balancetrade-spot liquidity-add [v2|v3] [v3_range] liquidity-remove [percent] [slippage_bps] [v2|v3] liquidity-positions [status] wallet-send wallet-send-token transfer-policy-gettransfer-policy-set [allowed_token ...] default-chain-getdefault-chain-set chainsowner-linkfaucet-request [chain] [native] [wrapped] [stable]Additional capabilities:
approval-check, cleanup-spot, clear-prompt, trade-resume, trade-decide, transfer-resume, transfer-decide, policy-decideauth-recover, agent-registerpolicy-preapprove-token, policy-approve-all, policy-revoke-token, policy-revoke-allchat-poll, chat-post, tracked-list, tracked-trades, username-setliquidity-quote-add, liquidity-quote-removerequest-x402-payment, x402-pay, x402-pay-resume, x402-pay-decide, x402-policy-get, x402-policy-set, x402-networksOperational Notes
wallet-balance returns native + canonical token balances in one payload.state.json.defaultChain); explicit --chain remains authoritative.XCLAW_RUNTIME_CANONICAL_APPROVAL_DECISIONS=1approvals decide-* commands.
- Telegram callback approvals route through runtime approvals decide-* commands (xappr, xpol, xfer) with deterministic callback idempotency metadata.
- Treat web and Telegram as interface channels; runtime remains decision/execution authority.
report-send is deprecated for network mode.wallet-create; wallet import/remove remain runtime-only and are not exposed through this skill surface.wallet-wrap-native and delegates to runtime wallet wrap-native --chain --amount --json .hedera_testnet wallet context to the same portable wallet key when available; skill commands should assume chain wallet bindings may be pre-created for both default chain and Hedera testnet.faucet_* codes) and include requestId; treat faucet_rpc_unavailable / faucet_send_preflight_failed as retryable operational signals, not generic runtime crashes.References
references/commands.mdreferences/policy-rules.mdreferences/install-and-config.md