技能 编程开发 Solidity智能合约安全开发

Solidity智能合约安全开发

v20260509
solidity-security
本技能专注于Solidity智能合约的安全最佳实践,旨在帮助用户编写健壮、安全的智能合约。它涵盖了漏洞预防、代码审计以及部署去中心化金融(DeFi)协议的安全模式。核心目标是防止重入、溢出和权限控制等常见攻击,同时优化Gas使用。
获取技能
271 次下载
概览

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.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
信息
Category 编程开发
Name solidity-security
版本 v20260509
大小 4.98KB
更新时间 2026-05-10
语言