π¦ ClawHub
smart-contract-security-audito
by @shangter666
Smart Contract Security Auditor: Analyzes Solidity and Go smart contracts for security vulnerabilities, provides gas optimization suggestions, and generates...
TERMINAL
clawhub install smart-contract-security-auditorπ About This Skill
name: smart-contract-security-auditor description: "Smart Contract Security Auditor: Analyzes Solidity and Go smart contracts for security vulnerabilities, provides gas optimization suggestions, and generates corresponding test cases (Foundry or Go tests)."
smart-contract-security-auditor
A skill designed to enhance smart contract security, optimize gas costs, and ensure thorough test coverage for Solidity and Golang (Cosmos/Hyperledger) projects.
Workflows
1. Security Static Analysis
When you finish writing or modifying a smart contract, trigger this skill to analyze the code for common vulnerabilities.How to trigger: "Audit this contract: [file_path]" or "Check my changes in [file_path] for security vulnerabilities."
2. Gas & Performance Optimization
Use this workflow to get suggestions on reducing EVM Gas costs or optimizing state read/write operations in Cosmos/Hyperledger.How to trigger: "Optimize gas for [file_path]" or "Suggest performance improvements for [file_path]."
3. Automatic Test Generation
Whenever contract logic changes, this skill can automatically generate or update the corresponding tests..t.sol).testing package (_test.go).How to trigger: "Generate tests for [file_path]" or "Write a Foundry test script for my new logic."