← Back to Skills Marketplace
old-greggyboy

Web3 Docs

by old-greggyboy · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
308
Downloads
0
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install web3-docs
Description
Up-to-date documentation and code patterns for Solidity, Foundry, Hardhat, Viem, Wagmi, ethers.js, and OpenZeppelin. Use when writing smart contracts, debugg...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install web3-docs
  3. After installation, invoke the skill by name or use /web3-docs
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug web3-docs
Version 1.0.1
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 2
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 308 downloads so far.

How do I install Web3 Docs?

Run "/install web3-docs" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Web3 Docs free?

Yes, Web3 Docs is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Web3 Docs support?

Web3 Docs is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Web3 Docs?

It is built and maintained by old-greggyboy (@old-greggyboy); the current version is v1.0.1.

💬 Comments