Solidity language and compiler — source layout, types, contracts, control flow, security, compiler, ABI, internals.
Resources
2Install
npx skillscat add hairyf/blockchain-skills/solidity Install via the SkillsCat registry.
SKILL.md
Skill based on Solidity (ethereum/solidity) docs, generated at 2026-02-09.
Solidity is a statically typed, object-oriented language for EVM smart contracts. This skill covers source layout, types, contract structure, control flow, security patterns, compiler usage, and ABI/internals.
Core References
| Topic | Description | Reference |
|---|---|---|
| Source Layout | SPDX, pragma, import, comments | core-layout |
| Contract Structure | State, functions, modifiers, events, errors, structs, enums | core-structure |
| Types | Value/reference/mapping types, operators, conversions | core-types |
| Control Structures | if/loop, internal/external calls, revert, try/catch | core-control |
| Units and Globals | Ether/time units, block/msg/tx, ABI/hash helpers | core-units-globals |
Features
Contracts
| Topic | Description | Reference |
|---|---|---|
| Contracts | Creation, visibility, modifiers, functions, events, errors, inheritance, interfaces, libraries, using-for | features-contracts |
| Inline Assembly | Yul in Solidity, access to variables, safety | features-assembly |
| Yul | Intermediate language, EVM opcodes, objects | features-yul |
Best Practices
| Topic | Description | Reference |
|---|---|---|
| Security | Reentrancy, gas, visibility, randomness, front-running | best-practices-security |
| Common Patterns | Withdrawal, access control, checks-effects-interactions, proxies | best-practices-patterns |
Advanced
| Topic | Description | Reference |
|---|---|---|
| Compiler | solc CLI, Standard JSON, optimizer, libraries, path resolution | advanced-compiler |
| Internals | Storage/memory/calldata layout, optimizer, source mappings | advanced-internals |
| ABI and Metadata | ABI spec, contract metadata, NatSpec | advanced-abi-metadata |