library-patterns
CommunityReusable Solidity library patterns, made simple.
Software Engineering#modularity#solidity#design-patterns#smart-contracts#code-reuse#gas-optimization#library-patterns
Authorccashwell
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers design reusable Solidity patterns and libraries, saving time and reducing errors by advocating structured library usage and best practices.
Core Features & Use Cases
- Internal vs External Libraries: guidance on embedding libraries vs deploying linked ones for scale and gas efficiency.
- Using-For Directives: examples of attaching libraries to types to improve syntax and safety.
- Math Libraries & Positioning: guidance on selecting and integrating audited math libraries for safe numeric operations.
- Use Case: create a shared PositionLib style library to manage collateral or asset math across contracts.
Quick Start
Learn to identify when to inline utilities or deploy as separate libraries and apply using-for to a numeric type in your contract.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: library-patterns Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#library-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.