smart-contract-engineer
Provides expert guidance on building, testing, and securing EVM smart contracts.
Install
mkdir -p .claude/skills/smart-contract-engineer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13750" && unzip -o skill.zip -d .claude/skills/smart-contract-engineer && rm skill.zipInstalls to .claude/skills/smart-contract-engineer
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Expert in Solidity, Foundry, EVM security. Specializes in gas optimization, upgradeable patterns, and fuzz testing.Key capabilities
- →Scaffold Solidity projects
- →Implement upgradeable contract patterns
- →Optimize smart contract gas usage
- →Develop fuzz and invariant tests
- →Perform static analysis for security vulnerabilities
- →Automate multi-chain contract deployment
How it works
The skill scaffolds projects, applies development patterns for upgradeability and gas optimization, and integrates testing frameworks like fuzz and invariant tests. It also includes pre-commit security checks and deployment automation.
Inputs & outputs
When to use smart-contract-engineer
- →Write fuzz tests for Solidity contracts
- →Optimize gas usage in a contract
- →Implement UUPS upgradeable patterns
- →Run security audit on EVM code
About this skill
Smart Contract Engineer
CORE CAPABILITIES
1. Project Scaffolding
# Auto-detect project type and scaffold
forge init --no-commit --template appropriate_template
2. Contract Development Patterns
Upgradeable Contracts:
- Use UUPS (Universal Upgradeable Proxy Standard)
- Auto-generate initialization functions
- Include storage gap for future upgrades
Gas Optimization:
- Pack structs for storage efficiency
- Use immutable/constant where possible
- Batch operations for reduced calls
3. Testing Framework
Required Test Coverage:
- Unit tests: 100% function coverage
- Integration tests: Cross-contract calls
- Fuzz tests: Minimum 10,000 iterations
- Invariant tests: Critical protocol rules
Example Test Structure:
contract MyContractTest is Test {
MyContract public myContract;
function setUp() public {
myContract = new MyContract();
}
// Fuzz test example
function testFuzz_Deposit(uint256 amount) public {
vm.assume(amount > 0 && amount <= 1000 ether);
myContract.deposit{value: amount}();
assertEq(myContract.balanceOf(address(this)), amount);
}
}
4. Security First Development
Pre-commit Checks:
- Run Aderyn for static analysis
- Perform symbolic execution with Mythril
- Check for common vulnerabilities via 4naly3er
Critical Security Rules:
- All external functions: reentrancy guard
- All state changes: event emission
- All math operations: overflow checks
- All external calls: success validation
5. Deployment Automation
Multi-chain Deployment:
// Auto-generated deployment script
module.exports = async ({ getNamedAccounts, deployments, network }) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
// Deploy based on network
const args = network.config.args || [];
await deploy("MyContract", {
from: deployer,
args: args,
log: true,
waitConfirmations: network.config.blockConfirmations || 5,
});
// Auto-verify on Etherscan
if (!network.config.live) {
await run("verify:verify", {
address: contractAddress,
constructorArguments: args,
});
}
};
6. Tools Integration
MCP Commands Available:
forge_test: Run test suite with fuzzinganvil_start: Launch local testnetcast_call: Interact with contractsslither_analyze: Deep security analysis
When not to use it
- →When the task is not related to Solidity smart contract development
- →When the task does not involve EVM security or gas optimization
Prerequisites
Limitations
- →The skill's scope is limited to Solidity, Foundry, and EVM security.
- →It focuses on gas optimization, upgradeable patterns, and fuzz testing.
How it compares
This skill provides structured patterns and automated tools for smart contract development, testing, and deployment, unlike manual coding and ad-hoc security checks.
Compared to similar skills
smart-contract-engineer side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| smart-contract-engineer (this skill) | 0 | 7mo | Review | Advanced |
| xss-testing | 1 | 7mo | Review | Advanced |
| web3-testing | 7 | 2mo | Review | Advanced |
| blockchain-developer | 6 | 4mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
xss-testing
Ed1s0nZ
XSS跨站脚本攻击测试的专业技能
web3-testing
wshobson
Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.
blockchain-developer
sickn33
Build production-ready Web3 applications, smart contracts, and decentralized systems. Implements DeFi protocols, NFT platforms, DAOs, and enterprise blockchain integrations. Use PROACTIVELY for smart contracts, Web3 apps, DeFi protocols, or blockchain infrastructure.
woocommerce-backend-dev
woocommerce
Add or modify WooCommerce backend PHP code following project conventions. Use when creating new classes, methods, hooks, or modifying existing backend code. **MUST be invoked before writing any PHP unit tests.**
backend-dev
marmelab
Coding practices for backend development in Atomic CRM. Use when deciding whether backend logic is needed, or when creating/modifying database migrations, views, triggers, RLS policies, edge functions, or custom dataProvider methods that call Supabase APIs.
e2e
wp-media
Run E2E smoke tests (basic) or full acceptance + regression suite (extended).