solidity-dev

Solid

Deep expertise in Solidity language features, patterns, and best practices for secure smart contract development. Covers ERC standards, gas optimization, upgradeable contracts, and security patterns.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Solidity Development Skill Expert-level Solidity smart contract development with emphasis on security patterns, gas optimization, and ERC standard compliance. ## Capabilities - **Secure Coding Patterns**: Implement Checks-Effects-Interactions, reentrancy guards - **Gas Optimization**: Write gas-efficient code using assembly/Yul when appropriate - **NatSpec Documentation**: Generate comprehensive contract documentation - **ERC Standards**: Implement ERC-20, ERC-721, ERC-1155, ERC-4626 compliant tokens - **OpenZeppelin Integration**: Properly use and extend OZ contracts - **Modern Solidity Features**: Leverage 0.8+ features (custom errors, unchecked blocks) - **Upgradeable Contracts**: Implement UUPS and Transparent Proxy patterns ## Security Patterns ### Checks-Effects-Interactions (CEI) ```solidity function withdraw(uint256 amount) external { // CHECKS require(balances[msg.sender] >= amount, "Insufficient balance"); // EFFECTS balances[msg.sender] -= amount; // INTERACTIONS (bool success, ) = msg.sender.call{value: amount}(""); require(success, "Transfer failed"); } ``` ### Custom Errors (Gas Efficient) ```solidity // Instead of require strings error InsufficientBalance(uint256 requested, uint256 available); error Unauthorized(address caller); function withdraw(uint256 amount) external { if (balances[msg.sender] < amount) { revert InsufficientBalance(amount, balances[msg.sender]); } } ``` ### Unchecked Arithmetic ```s...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills