← 返回 Skills 市场
old-greggyboy

Web3 Docs

作者 old-greggyboy · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
308
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install web3-docs
功能描述
Up-to-date documentation and code patterns for Solidity, Foundry, Hardhat, Viem, Wagmi, ethers.js, and OpenZeppelin. Use when writing smart contracts, debugg...
使用说明 (SKILL.md)

Web3 Docs

Current patterns and references for EVM development. Covers the full stack: contracts → testing → deployment → frontend integration.

Stack Coverage

Layer Tool Reference
Contracts Solidity 0.8.x references/solidity.md
Framework Foundry (forge/cast/anvil) references/foundry.md
Framework (alt) Hardhat references/hardhat.md
Standards OpenZeppelin 5.x references/openzeppelin.md
Standards ERC-4626 (tokenized vaults) references/erc4626.md
Frontend (low-level) Viem 2.x references/viem.md
Frontend (React) Wagmi 2.x references/wagmi.md
Frontend (legacy) ethers.js 6.x references/ethers.md

Quick Lookup

Starting a new Foundry project: See references/foundry.md → Project Setup

Starting a Hardhat project: See references/hardhat.md → Installation

Writing an ERC-20: See references/openzeppelin.md → ERC-20

Building a yield vault (ERC-4626): See references/erc4626.md → OpenZeppelin Implementation

First depositor attack on vaults: See references/erc4626.md → First Depositor Attack

Connecting a wallet in React: See references/wagmi.md → Quick Start

Reading contract state with Viem: See references/viem.md → Read Contracts

Common Solidity errors: See references/solidity.md → Error Reference

Deploying to Optimism/Base with Hardhat: See references/hardhat.md → hardhat.config.ts

Fetch Latest Docs

scripts/fetch-docs.js \x3Ctopic> pulls live docs from official sources when the reference files may be stale.

node scripts/fetch-docs.js solidity      # Solidity docs
node scripts/fetch-docs.js foundry       # Foundry book
node scripts/fetch-docs.js viem          # Viem docs
node scripts/fetch-docs.js wagmi         # Wagmi docs
node scripts/fetch-docs.js openzeppelin  # OZ docs
node scripts/fetch-docs.js hardhat       # Hardhat docs
node scripts/fetch-docs.js erc4626       # ERC-4626 (OZ vault docs)

Gas Optimization Quick Rules

  1. Use calldata instead of memory for read-only function params
  2. Pack storage variables: multiple uint128 in one slot beats two separate uint256
  3. unchecked blocks for arithmetic that can't overflow (saves ~30 gas/op)
  4. immutable > constant > storage for values set once
  5. Events are cheaper than storage for historical data
  6. Batch operations: one tx touching N items beats N txs
安全使用建议
This skill is internally consistent and low-risk: it bundles reference docs and a small Node script that fetches public documentation from known official sites. Before using it, remember: (1) the fetch script makes outbound HTTP(S) requests — ensure your agent environment is allowed to access those URLs and you are comfortable with network access, (2) the README/examples show .env/private-key usage for developer workflows — never paste real private keys or secrets into the skill input or shared prompts, and (3) because it’s instruction-only, nothing is installed automatically; running the fetch script will only print public docs. If you need extra assurance, inspect the included files (scripts/fetch-docs.js and the reference markdown) locally before invoking the skill.
功能分析
Type: OpenClaw Skill Name: web3-docs Version: 1.0.1 The web3-docs skill bundle is a legitimate documentation and reference tool for Ethereum Virtual Machine (EVM) development. It contains high-quality reference guides for Solidity, Foundry, Hardhat, and various frontend libraries, along with a utility script (scripts/fetch-docs.js) that fetches live documentation from a hardcoded whitelist of official sources. No evidence of data exfiltration, malicious prompt injection, or unauthorized execution was found.
能力评估
Purpose & Capability
Name/description promise up-to-date Web3/EVM references and examples; included reference markdown files and a fetch-docs.js script match that purpose. There are no unrelated required binaries, env vars, or config paths.
Instruction Scope
SKILL.md confines runtime behavior to serving local reference files and optionally running scripts/fetch-docs.js to pull public docs from a fixed set of official URLs. The runtime instructions do not direct the agent to read arbitrary local files or to exfiltrate data. Note: the reference files include example configs that demonstrate storing RPC URLs and private keys in .env files (typical samples), but the skill does not require or automatically read those values.
Install Mechanism
No install spec is present (instruction-only), which is low-risk. The only code file is a small Node script that uses built-in http/https and does not download or install external packages or execute arbitrary remote archives.
Credentials
The skill declares no required environment variables or credentials (appropriate). However, many reference examples show use of common dev env vars (e.g., PRIVATE_KEY, DEPLOYER_PRIVATE_KEY, ETHERSCAN_API_KEY, RPC URLs). Those are sample usages for developers — the skill does not request or read them, but a novice might be prompted to paste secrets into example snippets, so caution is advised.
Persistence & Privilege
always is false, the skill is user-invocable and does not request persistent system privileges or change other skills' config. There is no automatic installation or persistent background component.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install web3-docs
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /web3-docs 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added documentation reference for ethers.js 6.x (`references/ethers.md`) - Updated fetch-docs script to support ethers.js documentation retrieval - Improved legacy frontend stack coverage by including ethers.js references
v1.0.0
- Initial release of web3-docs skill. - Provides up-to-date documentation and code patterns for Solidity, Foundry, Hardhat, Viem, Wagmi, ethers.js, and OpenZeppelin. - Includes quick lookup references for major EVM development tasks. - Supports fast access to implementation details for ERC standards, upgradeable contracts, proxy patterns, gas optimization, and more. - Allows fetching latest docs from official sources using simple scripts.
元数据
Slug web3-docs
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Web3 Docs 是什么?

Up-to-date documentation and code patterns for Solidity, Foundry, Hardhat, Viem, Wagmi, ethers.js, and OpenZeppelin. Use when writing smart contracts, debugg... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 308 次。

如何安装 Web3 Docs?

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

Web3 Docs 是免费的吗?

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

Web3 Docs 支持哪些平台?

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

谁开发了 Web3 Docs?

由 old-greggyboy(@old-greggyboy)开发并维护,当前版本 v1.0.1。

💬 留言讨论