smart-contracts

Installation
SKILL.md

smart-contracts

Purpose

This skill focuses on developing, compiling, deploying, and interacting with secure smart contracts using Solidity for writing code and Web3.js for blockchain interactions, targeting platforms like Ethereum.

When to Use

Use this skill for tasks involving decentralized applications (dApps), token creation, or automated agreements on EVM-compatible blockchains. Apply it when you need to ensure code security, handle transactions, or integrate with Web3 ecosystems, such as building NFTs or DeFi protocols.

Key Capabilities

  • Write and compile Solidity contracts with features like inheritance, modifiers, and events.
  • Deploy contracts to testnets (e.g., Sepolia) or mainnets using Web3.js providers.
  • Interact with deployed contracts via RPC calls, including reading state and executing functions.
  • Perform security audits by integrating tools like Slither for vulnerability detection.
  • Handle Web3 transactions with gas estimation and error checking.

Usage Patterns

To use this skill, structure your workflow as follows: First, write Solidity code in a .sol file. Then, compile it using a tool like Hardhat or solc. Deploy via a Web3 provider, and interact using JavaScript. Always test on a local node (e.g., Ganache) before mainnet. For integration, pass provider URLs as environment variables, like $ETHEREUM_PROVIDER_URL. Example pattern: Import Web3.js, connect to a provider, and call contract methods in a Node.js script.

Related skills
Installs
21
GitHub Stars
5
First Seen
Mar 7, 2026