← 返回 Skills 市场
mzfshark

WEB3 Integration

作者 Mauricio Z. · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
79
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install axodus-web3-integration
功能描述
Integrate apps with blockchain providers, wallets, and contract calls safely.
使用说明 (SKILL.md)

SKILL: web3-integration

Purpose

Integrate a frontend/backend with blockchain interaction (wallet connect, provider configuration, contract calls) using safe, testable patterns.

When to Use

  • A dApp needs to read/write contract state.
  • A backend service must index or react to on-chain events.
  • Wallet connection UX and chain gating is required.

Inputs

  • stack (required, enum: ethers|viem|web3js): preferred client library.
  • chain (required, string): chain name + chainId.
  • rpc (optional, string): RPC URL reference (env/config), not hardcoded.
  • contract_address (required, string).
  • abi_source (required, string): ABI path/artifact reference.
  • wallet_flow (optional, enum: injected|walletconnect|server_signer).

Steps

  1. Validate chain/contract coordinates (chainId, address format, ABI match).
  2. Set provider/signer flow:
    • frontend: user wallet signer
    • backend: server signer only when explicitly required and keys are secured externally
  3. Implement contract client wrapper:
    • typed interfaces when possible
    • explicit timeouts/retries for RPC
  4. Add chain gating:
    • refuse wrong chain
    • prompt network switch (frontend)
  5. Add logging/audit hooks for write operations.
  6. Add tests:
    • unit tests for wrapper
    • local chain simulation when available

Validation

  • No secrets stored in repo (keys only via secrets manager/env).
  • Wrong-chain behavior is safe (no accidental writes).
  • Errors are handled deterministically (retry policy is explicit).

Output

  • Wrapper module path(s)
  • Environment variable contract (what must be configured)
  • Validation commands (tests/build)

Safety Rules

  • Never request or paste private keys into chat/output.
  • Never default to mainnet.
  • Avoid “auto-sign” server flows unless explicitly required and approved.

Example

Input:

  • stack: viem
  • chain: base:8453
  • contract_address: 0x...
  • abi_source: artifacts/MyContract.json

Output:

  • src/web3/client.ts with chainId checks and a typed contract instance.
安全使用建议
This skill appears coherent and low-risk, but before installing or using it: (1) Verify the provenance/author if you require vendor trust (SKILL.md says 'RedHat Dev' but registry owner differs). (2) Never paste private keys into chat—follow the skill's rule to use a secrets manager or environment variables. (3) When implementing, point RPC URLs to trusted providers and limit any server-side signing flows; require explicit approval and secure key storage if server signing is used. (4) Review any generated code (wrappers, logging) and run the suggested tests locally (including a local chain simulation) before deploying to production.
功能分析
Type: OpenClaw Skill Name: axodus-web3-integration Version: 1.0.0 The skill bundle provides standard, security-conscious instructions for integrating Web3 libraries (ethers, viem, web3js) into applications. It includes explicit safety rules in SKILL.md and web3-integration.md that forbid requesting private keys, discourage defaulting to mainnet, and mandate chain-gating to prevent accidental transactions on the wrong network.
能力标签
cryptorequires-walletrequires-sensitive-credentials
能力评估
Purpose & Capability
The name/description match the instructions: steps focus on provider/signer selection, chain validation, wrapper modules, logging/audit, and tests. Nothing in the skill requires unrelated binaries, cloud credentials, or system access. (Minor metadata mismatch: SKILL.md claims 'RedHat Dev' while registry owner ID differs; this is a provenance note but does not affect capability alignment.)
Instruction Scope
SKILL.md instructions stay within web3 integration scope: they validate chain/address/ABI, recommend environment-based RPC configuration, prevent storing secrets in repo, and explicitly forbid requesting/pasting private keys into chat or defaulting to mainnet.
Install Mechanism
This is an instruction-only skill with no install spec and no code files to execute; therefore there is no installation risk from downloads or package installs.
Credentials
The skill requests no environment variables or credentials in metadata (which is appropriate), and the instructions correctly advise using env/secrets managers for RPC URLs and keys. Users should ensure secrets are provided via secure secret management rather than chat or code. The lack of declared required env vars is reasonable but means safe secret handling depends on the implementer.
Persistence & Privilege
always:false and default model invocation are set (normal). The skill does not request permanent presence or system-wide configuration changes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install axodus-web3-integration
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /axodus-web3-integration 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of web3-integration skill: - Enables frontend and backend integration with blockchain providers, wallets, and smart contract calls. - Supports major client libraries (`ethers`, `viem`, `web3js`) and common wallet flows. - Enforces safe patterns: chain validation, proper signer setup, explicit timeouts/retries, and robust error handling. - Outputs wrapper module paths, required environment variables, and validation/test commands. - Includes detailed safety rules to prevent key exposure and accidental mainnet transactions.
元数据
Slug axodus-web3-integration
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

WEB3 Integration 是什么?

Integrate apps with blockchain providers, wallets, and contract calls safely. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 79 次。

如何安装 WEB3 Integration?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install axodus-web3-integration」即可一键安装,无需额外配置。

WEB3 Integration 是免费的吗?

是的,WEB3 Integration 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

WEB3 Integration 支持哪些平台?

WEB3 Integration 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 WEB3 Integration?

由 Mauricio Z.(@mzfshark)开发并维护,当前版本 v1.0.0。

💬 留言讨论