solidity

Teach Solidity for building and auditing Ethereum smart contracts.

4|1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/hairyf/blockchain-master --skill solidity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solidity
Source: https://github.com/hairyf/blockchain-master/tree/main/skills/solidity
Command: npx skills add https://github.com/hairyf/blockchain-master --skill solidity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Solidity learning and tooling for secure Ethereum smart contracts, covering layout, types, control flow, and security practices.

Core Features & Use Cases

  • Source Layout, Contract Structure, Types, Control Structures, and Units/Globals coverage.
  • Contracts, Inline Assembly, Yul, and Best Practices (Security, Patterns), with guidance on compilers and ABIs.
  • Use Case: Designing robust smart contracts for DeFi, NFTs, and enterprise apps with correct patterns and tooling.

Quick Start

Write a minimal contract that includes SPDX, pragma, a state variable, and a function to see compilation and deployment.

Frequently Asked Questions about solidity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a secure Solidity smart contract for Ethereum?

To structure secure Solidity smart contracts, you need correct source layout, contract structure, and control flow. This involves applying established security patterns across types, units, and globals to prevent vulnerabilities during compilation and deployment.

What security patterns should I apply when writing Solidity smart contracts?

Solidity security patterns involve enforcing proper documentation structure, safe control structures, and robust type handling. Following these best practices protects contracts from common vulnerabilities when building DeFi, NFT, or enterprise applications.

How do I compile Solidity code and generate the ABI for my smart contract?

Compiling Solidity code and generating the ABI requires using the correct compiler tooling for your contract structure. Proper compilation translates your source layout and inline assembly into deployable bytecode and the necessary application binary interface.

Can I use inline assembly and Yul when building Ethereum smart contracts?

Yes, you can use inline assembly and Yul when building Ethereum smart contracts for optimized low-level control. They integrate with standard Solidity types and control structures, but require careful security auditing to ensure safe execution.

What is the best way to start building a minimal Solidity smart contract?

The best way to start building a minimal Solidity smart contract is to write a file including the SPDX license identifier, pragma version, a state variable, and a function. This verifies correct compilation and deployment readiness.

Does this Solidity guidance cover control structures and global variables?

Yes, Solidity guidance covers control structures, units, and globally available variables. It groups these core topics alongside source layout, types, and contract structure to ensure comprehensive coverage of the language for secure development.