Skills for Real Engineers. Straight from my .agents directory.
solidity-security
Agent skill fromwshobson/agents
Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.
How to install solidity-security
npx skills add wshobson/agents# or add only this skill to Claude Code: copy the folder
plugins/blockchain-web3/skills/solidity-security/
# into
~/.claude/skills/solidity-security/ (all projects)
.claude/skills/solidity-security/ (one project)
1# Solidity Security23Master smart contract security best practices, vulnerability prevention, and secure Solidity development patterns.45## When to Use This Skill67- Writing secure smart contracts8- Auditing existing contracts for vulnerabilities9- Implementing secure DeFi protocols10- Preventing reentrancy, overflow, and access control issues11- Optimizing gas usage while maintaining security12- Preparing contracts for professional audits13- Understanding common attack vectors1415## Detailed patterns and worked examples1617Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.1819## Testing for Security2021```javascript22// Hardhat test example23const { expect } = require("chai");24const { ethers } = require("hardhat");2526describe("Security Tests", function () {27 it("Should prevent reentrancy attack", async function () {28 const [attacker] = await ethers.getSigners();2930 const VictimBank = await ethers.getContractFactory("SecureBank");31 const bank = await VictimBank.deploy();3233 const Attacker = await ethers.getContractFactory("ReentrancyAttacker");34 const attackerContract = await Attacker.deploy(bank.address);3536 // Deposit funds37 await bank.deposit({ value: ethers.utils.parseEther("10") });3839 // Attempt reentrancy attack40 await expect(41 attackerContract.attack({ value: ethers.utils.parseEther("1") }),42 ).to.be.revertedWith("ReentrancyGuard: reentrant call");43 });44…
Excerpt shown under the repository's MIT license.
More skills in agents
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
