home / skills / sickn33 / antigravity-awesome-skills / solidity-security
This skill helps you secure Solidity smart contracts by applying best practices, auditing patterns, and secure coding techniques for reliable DeFi.
npx playbooks add skill sickn33/antigravity-awesome-skills --skill solidity-securityReview the files below or copy the command above to add this skill to your agents.
---
name: solidity-security
description: 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.
---
# Solidity Security
Master smart contract security best practices, vulnerability prevention, and secure Solidity development patterns.
## Use this skill when
- Writing secure smart contracts
- Auditing existing contracts for vulnerabilities
- Implementing secure DeFi protocols
- Preventing reentrancy, overflow, and access control issues
- Optimizing gas usage while maintaining security
- Preparing contracts for professional audits
- Understanding common attack vectors
## Do not use this skill when
- The task is unrelated to solidity security
- You need a different domain or tool outside this scope
## Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open `resources/implementation-playbook.md`.
## Resources
- `resources/implementation-playbook.md` for detailed patterns and examples.
This skill helps developers master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. It is focused on practical guidance for writing, auditing, and hardening Ethereum-compatible contracts. Use it to reduce risk, improve audit readiness, and apply battle-tested defensive patterns.
The skill inspects contract code and design choices against known vulnerability classes (reentrancy, access control, integer issues, unsafe external calls, and more). It produces actionable recommendations: code fixes, design alternatives, testing checks, and verification steps. It also suggests gas-aware patterns and prioritizes fixes by risk and exploitability.
Can this skill fix vulnerabilities automatically?
It provides precise remediation steps and code patterns, but human review and testing are required before deployment.
Which Solidity versions are recommended?
Prefer Solidity 0.8.x or later for built-in overflow checks; apply version-specific guidance when using earlier compilers.