一键导入
solidity
Solidity language and compiler — source layout, types, contracts, control flow, security, compiler, ABI, internals.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Solidity language and compiler — source layout, types, contracts, control flow, security, compiler, ABI, internals.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Go Ethereum (geth) — CLI, JSON-RPC, Clef, abigen, and developer workflows.
Agent-oriented skills for the Anchor framework—Solana program structure, accounts, CPI, IDL, clients, and tooling.
Solana Kit (JavaScript SDK) — RPC, signers, transactions, accounts, codecs, instruction plans, and program clients for agent-driven Solana tooling.
Solana blockchain development — core concepts, clients, RPC, tokens, and payments for agent-driven tooling.
TON Blueprint development environment — project layout, build/test/run, NetworkProvider, config, scripts, wrappers, and deploy/testing practices.
TON Blockchain — addresses, messages, TVM, cells, Blueprint, contracts, payments, API.
| name | solidity |
| description | Solidity language and compiler — source layout, types, contracts, control flow, security, compiler, ABI, internals. |
| metadata | {"author":"hairy","version":"2026.2.9","source":"Generated from https://github.com/ethereum/solidity (docs), scripts at https://github.com/antfu/skills"} |
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.
| 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 |
| 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 |
| NatSpec | Tags, userdoc/devdoc output, @inheritdoc, @custom | features-natspec |
| Events | Indexed, anonymous, topics, selector, emit | features-events |
| Custom Errors | revert/require, selector, try/catch, ABI | features-errors |
| Libraries | DELEGATECALL, internal vs external, linking | features-libraries |
| Inheritance | virtual/override, super, C3, base constructors | features-inheritance |
| Interfaces | Restrictions, enum/struct, ABI alignment | features-interfaces |
| Transient Storage | EIP-1153, transaction-scoped, reentrancy locks | features-transient-storage |
| Visibility and Getters | external/public/internal/private, getter generation | features-visibility-getters |
| 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 |
| Style and Layout | File/contract order, modifier order, naming | best-practices-style |
| 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 |
| SMTChecker | Formal verification, engines, targets, options | advanced-smtchecker |
| Path Resolution | VFS, base/include paths, remapping, allowed paths | advanced-path-resolution |
| Compilation Output | Bytecode, --asm, optimized vs non-optimized | advanced-compilation-output |