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.
Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
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.
// Use calldata for read-only arrays
function processData(uint256[] calldata data) external pure returns (uint256) {
uint256 sum;
for (uint256 i; i < data.length;) {
sum += data[i];
unchecked { ++i; }
}
return sum;
}
Assembly Optimization
function efficientTransfer(address to, uint256 amount) external {
assembly {
// Load balance from storage
let bal := sload(add(balances.slot, caller()))
// Check balance
if lt(bal, amount) {
revert(0, 0)
}
// Update balances
sstore(add(balances.slot, caller()), sub(bal, amount))
sstore(add(balances.slot, to), add(sload(add(balances.slot, to)), amount))
}
}
Process Integration
This skill integrates with:
Process
Purpose
smart-contract-development-lifecycle.js
Full development workflow
erc20-token-implementation.js
ERC-20 implementation
erc721-nft-collection.js
NFT collection development
erc1155-multi-token.js
Multi-token development
erc4626-tokenized-vault.js
Vault implementation
gas-optimization.js
Performance tuning
smart-contract-upgrade.js
Proxy upgrades
Tools Reference
Tool
Purpose
Installation
Foundry
Development framework
curl -L https://foundry.paradigm.xyz | bash
Hardhat
Development framework
npm install hardhat
Solhint
Linter
npm install solhint
Prettier Solidity
Formatter
npm install prettier-plugin-solidity
Best Practices Checklist
Use latest stable Solidity version (0.8.x+)
Implement CEI pattern for external calls
Use custom errors instead of require strings
Add NatSpec documentation
Implement proper access control
Consider gas optimization
Add comprehensive tests
Run static analysis (Slither)
Document upgrade paths
See Also
skills/foundry-framework/SKILL.md - Foundry development
skills/hardhat-framework/SKILL.md - Hardhat development