Back to Featured Skills

gas-optimization

cheng-zhaofeng
cheng-zhaofeng
Web3-core-operations

A comprehensive collection of Web3-related Claude Code skills for blockchain development, DeFi interactions, NFT analysis, on-chain data, and cross-chain operations.


Install Command

npx skills add https://github.com/XSpoonAi/spoon-awesome-skill/tree/master/web3-skills

Content

9 files
Skill.md
11.2 KB
web3-skills
gas-optimization
README.md
SKILL.md
scripts
base_fee_predict.py
batch_quote.py
blob_quote.py
common.py
estimate_optimize.py
optimization_report.py

Skill.md

/ Read Only

Web3 Skills Collection

A comprehensive collection of Web3-related Claude Code skills for blockchain development, DeFi interactions, NFT analysis, on-chain data, and cross-chain operations.

Overview

This collection provides Claude Code with specialized capabilities for Web3 tasks:

CategorySkillsDescription
DeFidefi-protocol-interactionUniswap, Aave, Compound interactions
NFTnft-market-analysisOpenSea, Blur, Magic Eden data
On-Chainonchain-data-analysisEtherscan, Dune Analytics queries
Walletwallet-operationsBalance queries, transaction building
Bridgecross-chain-bridgeLayerZero, Wormhole, Stargate, Across
Solanasolana-ecosystemJupiter, Raydium, Magic Eden
Neoneo-ecosystemNeo N3, NeoX, NeoFS, NEP-17/NEP-11
DeFi Protocolsadvanced-defiAave V3, 1inch, CoW Protocol integrations
Identityidentity-authSIWE, ENS resolution, session management
Securitysecurity-analysisGoPlus, Honeypot detection, MEV protection
DAOdao-toolingSnapshot, Tally, Governor voting automation
Gasgas-optimizationBase fee prediction, batch vs separate, EIP-1559, EIP-4844 blob

Directory Structure

web3-skills/ ├── README.md # This file ├── defi/ │ ├── SKILL.md # DeFi protocol interaction skill │ └── scripts/ │ ├── uniswap_quote.py # Uniswap V3 swap quotes │ ├── aave_positions.py # Aave lending positions │ └── defi_tvl.py # DeFi Llama TVL data ├── nft/ │ ├── SKILL.md # NFT market analysis skill │ └── scripts/ │ ├── opensea_collection.py # OpenSea collection data │ ├── nft_rarity.py # Rarity calculations │ └── market_trends.py # NFT market trends ├── onchain-analysis/ │ ├── SKILL.md # On-chain data analysis skill │ └── scripts/ │ ├── etherscan_address.py # Address analysis │ ├── etherscan_transaction.py # Transaction analysis │ ├── gas_tracker.py # Gas price tracking │ └── contract_analyzer.py # Smart contract analysis ├── wallet/ │ ├── SKILL.md # Wallet operations skill │ └── scripts/ │ ├── wallet_balance.py # Multi-token balance │ ├── portfolio_tracker.py # Portfolio tracking │ └── tx_builder.py # Transaction construction ├── bridge/ │ ├── SKILL.md # Cross-chain bridge skill │ └── scripts/ │ ├── bridge_quote.py # Bridge quotes │ ├── bridge_routes.py # Route optimization │ └── bridge_status.py # Status tracking ├── solana/ │ ├── SKILL.md # Solana ecosystem skill │ └── scripts/ │ ├── solana_balance.py # SOL/SPL balances │ ├── jupiter_quote.py # Jupiter swap quotes │ └── solana_nft.py # Solana NFT data ├── neo/ │ ├── SKILL.md # Neo N3 ecosystem skill │ └── scripts/ │ ├── neo_balance.py # NEO/GAS balances │ ├── neo_transfer.py # NEP-17 transfers │ └── neo_contract.py # Contract interactions ├── defi-protocols/ │ ├── SKILL.md # Advanced DeFi protocol integrations │ └── scripts/ │ ├── aave_lending.py # Aave V3 lending │ ├── oneinch_swap.py # 1inch aggregator │ └── cow_swap.py # CoW Protocol swaps ├── identity-auth/ │ ├── SKILL.md # Web3 identity & authentication │ └── scripts/ │ ├── siwe_auth.py # Sign-In with Ethereum │ ├── ens_resolver.py # ENS resolution │ └── session_manager.py # Web3 sessions ├── security-analysis/ │ ├── SKILL.md # Security analysis tools │ └── scripts/ │ ├── goplus_security.py # GoPlus token security │ ├── honeypot_check.py # Honeypot detection │ └── tenderly_simulate.py # Transaction simulation ├── dao-tooling/ │ ├── SKILL.md # DAO governance automation │ └── scripts/ │ ├── snapshot_monitor.py # Snapshot proposals │ ├── snapshot_vote.py # Snapshot voting │ └── governor_vote.py # On-chain voting └── gas-optimization/ ├── SKILL.md # Gas optimization (when/how to send cheaper) ├── README.md └── scripts/ ├── common.py # Shared config and RPC helpers ├── base_fee_predict.py # Base fee history, when-to-send ├── batch_quote.py # Batch vs separate gas ├── estimate_optimize.py # eth_estimateGas + EIP-1559 ├── blob_quote.py # EIP-4844 blob (Ethereum) └── optimization_report.py # All-in-one report

Quick Start

Prerequisites

Set up the following environment variables:

# EVM Chains export ETHERSCAN_API_KEY="your_key" export RPC_URL="https://eth.llamarpc.com" # Optional for specific chains export POLYGON_RPC_URL="https://polygon-rpc.com" export ARBITRUM_RPC_URL="https://arb1.arbitrum.io/rpc" # NFT APIs export OPENSEA_API_KEY="your_key" # Optional # Solana export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"

Python Dependencies

pip install web3 requests

Skills Overview

DeFi Protocol Interaction

Trigger Keywords: uniswap, aave, compound, swap, lending, borrowing, liquidity, yield, defi

Capabilities:

  • Get swap quotes from Uniswap V3
  • Query Aave lending/borrowing positions
  • Fetch TVL and APY data from DeFi Llama
  • Compare rates across protocols

Example Usage:

"Get a quote to swap 1 ETH for USDC on Uniswap" "Check my Aave position health factor for address 0x..." "What's the current TVL of Aave?"

NFT Market Analysis

Trigger Keywords: nft, opensea, blur, collection, floor price, rarity

Capabilities:

  • Fetch collection stats from OpenSea
  • Calculate NFT rarity scores
  • Track market trends and volume
  • Compare marketplace data

Example Usage:

"Get floor price for Bored Ape Yacht Club" "Analyze rarity of BAYC #1234" "Show trending NFT collections today"

On-Chain Data Analysis

Trigger Keywords: etherscan, transaction, whale, gas, smart contract

Capabilities:

  • Analyze wallet addresses
  • Decode transaction details
  • Track gas prices
  • Audit smart contracts

Example Usage:

"Analyze this address: 0x..." "Check transaction details for 0x..." "What's the current gas price?"

Wallet Operations

Trigger Keywords: wallet, balance, portfolio, transfer, send

Capabilities:

  • Check multi-chain balances
  • Track portfolio value
  • Build transactions
  • Estimate gas costs

Example Usage:

"Check my wallet balance on Ethereum" "Show my portfolio across all chains" "Build a transaction to send 1 ETH to 0x..."

Cross-Chain Bridge

Trigger Keywords: bridge, cross-chain, layerzero, wormhole, stargate

Capabilities:

  • Get quotes from multiple bridges
  • Find optimal bridging routes
  • Track bridge transaction status
  • Compare fees and speeds

Example Usage:

"Bridge 1000 USDC from Ethereum to Arbitrum" "Compare bridge options for ETH to Polygon" "Check status of my Stargate bridge transaction"

Solana Ecosystem

Trigger Keywords: solana, sol, jupiter, raydium, magic eden

Capabilities:

  • Check SOL and SPL token balances
  • Get Jupiter swap quotes
  • Query Solana NFT collections
  • Analyze staking positions

Example Usage:

"Check my Solana wallet balance" "Get a quote to swap 10 SOL for USDC" "What's the floor price of Mad Lads?"

Neo Ecosystem

Trigger Keywords: neo, neo n3, gas, nep17, nep11, neox, neofs

Capabilities:

  • Check NEO/GAS balances
  • Build NEP-17 token transfers
  • Query Neo N3 smart contracts
  • Interact with NeoX EVM sidechain
  • NeoFS decentralized storage

Example Usage:

"Check my NEO balance for address N..." "Transfer 10 GAS to address N..." "Query the NEO total supply" "Get contract info for NeoToken"

Supported Chains

EVM Chains

ChainChain IDNative TokenNotes
Ethereum1ETHMainnet
Polygon137POLRenamed from MATIC (Sept 2024)
Arbitrum42161ETHL2 Rollup
Optimism10ETHL2 Rollup
Base8453ETHCoinbase L2
BSC56BNBBinance Smart Chain
Avalanche43114AVAXC-Chain
zkSync Era324ETHZK Rollup
Linea59144ETHConsensys zkEVM
NeoX47763GASNeo EVM sidechain

Non-EVM Chains

ChainNative TokenNotes
SolanaSOLHigh-performance L1
Neo N3NEO/GASdBFT consensus

API References

DeFi APIs

NFT APIs

On-Chain APIs

  • Etherscan API V2 - Block explorer (use ?chainid=X)
  • Note: Etherscan V1 API deprecated August 2025

Bridge APIs

Solana APIs

Neo APIs

Security Best Practices

  1. Never share private keys - All operations are read-only or transaction-building only
  2. Verify contract addresses - Always verify before interacting
  3. Check approvals - Review token approvals regularly
  4. Use hardware wallets - For significant holdings
  5. Start small - Test with small amounts first

Contributing

Contributions are welcome! Please:

  1. Follow the existing skill format
  2. Include comprehensive SKILL.md documentation
  3. Add working scripts with error handling
  4. Test with real API calls
  5. Update this README

License

MIT License - See LICENSE file for details.

Acknowledgments

Installations

300

Skills Information

Created
2026-01-29
Last Updated
2026-03-24