yaklang avatar

Smart Contract Vulnerabilities

Load this when you're auditing Solidity contracts and need to systematically check for the stuff that drains wallets. It covers the classics like reentrancy (including the subtle cross-contract and read-only variants that trip up auditors), integer overflow patterns that still bite in unchecked blocks, and delegatecall storage collisions in proxy patterns. The tables comparing vulnerable vs safe patterns are practical, especially for MEV sandwich attacks and signature replay across chains. It's opinionated about what base models miss, like cross-function reentrancy and CREATE2 exploitation. If you're writing contracts instead of breaking them, the mitigation tables work as a hardening checklist.

skills.sh installs
3.7K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill smart-contract-vulnerabilities --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: Smart Contract Vulnerabilities — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert smart contract audit techniques. Covers reentrancy (single, cross-function, cross-contract, read-only), integer overflow, access control, delegatecall, randomness manipulation, flash loans, signature replay, front-running/MEV, and CREATE2 exploitation. Base models miss subtle cross-contract reentrancy and storage layout collisions in proxy patterns.

0. RELATED ROUTING

  • defi-attack-patterns when the vulnerability is part of a DeFi protocol exploit (flash loans, oracle manipulation, governance attacks)
  • deserialization-insecure when the target is off-chain infrastructure deserializing blockchain data

Advanced Reference

Also load SOLIDITY_VULN_PATTERNS.md when you need:

  • Side-by-side vulnerable vs fixed code patterns for each vulnerability class
  • Gas optimization traps that introduce vulnerabilities
  • Proxy pattern storage collision examples with slot calculations

1. REENTRANCY

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Categories
Security, Web3 & Blockchain
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102

Recommended

More Security
1yaklang avatarunauthorized-access-common-servicesyaklang/hack-skillsUnauthorized access playbook for common exposed services. Use when Redis, Rsync, PHP-FPM, AJP/Ghostcat, Hadoop YARN, H2 Console, or similar management interface3.6Kskills.sh installs
2longbridge avatarlongbridge-market-datalongbridge/skillsReal-time quotes, K-line charts, order book, trade ticks, intraday capital flow, market sentiment temperature, trading session schedule, security lists, exchang3.4Kskills.sh installs
3mindrally avatarchrome-extension-developmentmindrally/skillsExpert guidelines for Chrome extension development with Manifest V3, covering security, performance, and best practices. Use when building browser extensions, c3Kskills.sh installs
4elastic avatarelasticsearch-auditelastic/agent-skillsEnable, configure, and query Elasticsearch security audit logs. Use when the task involves audit logging setup, event filtering, or investigating security incid2.9Kskills.sh installs
5binance avatarspotbinance/binance-skills-hubBinance Spot request using the Binance API. Authentication requires API key and secret key. Supports testnet, mainnet, and demo.2.9Kskills.sh installs
6forcedotcom avatarbuilding-sf-integrationsforcedotcom/sf-skillsSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Serv2.9Kskills.sh installs