solidity

Solidity language and compiler — source layout, types, contracts, control flow, security, compiler, ABI, internals.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "solidity" with this command: npx skills add hairyf/blockchain-skills/hairyf-blockchain-skills-solidity

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

TopicDescriptionReference
Source LayoutSPDX, pragma, import, commentscore-layout
Contract StructureState, functions, modifiers, events, errors, structs, enumscore-structure
TypesValue/reference/mapping types, operators, conversionscore-types
Control Structuresif/loop, internal/external calls, revert, try/catchcore-control
Units and GlobalsEther/time units, block/msg/tx, ABI/hash helperscore-units-globals

Features

Contracts

TopicDescriptionReference
ContractsCreation, visibility, modifiers, functions, events, errors, inheritance, interfaces, libraries, using-forfeatures-contracts
Inline AssemblyYul in Solidity, access to variables, safetyfeatures-assembly
YulIntermediate language, EVM opcodes, objectsfeatures-yul
NatSpecTags, userdoc/devdoc output, @inheritdoc, @customfeatures-natspec
EventsIndexed, anonymous, topics, selector, emitfeatures-events
Custom Errorsrevert/require, selector, try/catch, ABIfeatures-errors
LibrariesDELEGATECALL, internal vs external, linkingfeatures-libraries
Inheritancevirtual/override, super, C3, base constructorsfeatures-inheritance
InterfacesRestrictions, enum/struct, ABI alignmentfeatures-interfaces
Transient StorageEIP-1153, transaction-scoped, reentrancy locksfeatures-transient-storage
Visibility and Gettersexternal/public/internal/private, getter generationfeatures-visibility-getters

Best Practices

TopicDescriptionReference
SecurityReentrancy, gas, visibility, randomness, front-runningbest-practices-security
Common PatternsWithdrawal, access control, checks-effects-interactions, proxiesbest-practices-patterns
Style and LayoutFile/contract order, modifier order, namingbest-practices-style

Advanced

TopicDescriptionReference
Compilersolc CLI, Standard JSON, optimizer, libraries, path resolutionadvanced-compiler
InternalsStorage/memory/calldata layout, optimizer, source mappingsadvanced-internals
ABI and MetadataABI spec, contract metadata, NatSpecadvanced-abi-metadata
SMTCheckerFormal verification, engines, targets, optionsadvanced-smtchecker
Path ResolutionVFS, base/include paths, remapping, allowed pathsadvanced-path-resolution
Compilation OutputBytecode, --asm, optimized vs non-optimizedadvanced-compilation-output

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

openzeppelin-contracts

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

viem

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

ton

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

solana-anchor

No summary provided by upstream source.

Repository SourceNeeds Review