·solidity-security-best-practices
!

solidity-security-best-practices

Solidity 开发的智能合约安全最佳实践。在编写、审查或审核 Solidity 代码时使用。涵盖重入预防、访问控制模式、安全外部调用、输入验证、升级安全和 OWASP 智能合约十大漏洞。触发涉及安全、漏洞检测、访问控制、CEI 模式、ReentrancyGuard、SafeERC20 或智能合约审核的任务。

10安装·0热度·@whackur

安装

$npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-security-best-practices

如何安装 solidity-security-best-practices

通过命令行快速安装 solidity-security-best-practices AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-security-best-practices
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:whackur/solidity-agent-toolkit。

SKILL.md

查看原文

When reviewing or writing Solidity code, apply these foundational principles as a mental checklist. Each principle addresses a category of vulnerability and guides your reasoning.

| Principle | What It Means | What to Verify |

| Checks-Effects-Interactions (CEI) | Validate inputs, update state, then interact externally | State changes complete before any external call | | Least Privilege | Every function and role has the minimum access required | Sensitive functions have appropriate access modifiers |

Solidity 开发的智能合约安全最佳实践。在编写、审查或审核 Solidity 代码时使用。涵盖重入预防、访问控制模式、安全外部调用、输入验证、升级安全和 OWASP 智能合约十大漏洞。触发涉及安全、漏洞检测、访问控制、CEI 模式、ReentrancyGuard、SafeERC20 或智能合约审核的任务。 来源:whackur/solidity-agent-toolkit。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-security-best-practices
分类
!安全工具
认证
收录时间
2026-02-22
更新时间
2026-03-11

Browse more skills from whackur/solidity-agent-toolkit

快速解答

什么是 solidity-security-best-practices?

Solidity 开发的智能合约安全最佳实践。在编写、审查或审核 Solidity 代码时使用。涵盖重入预防、访问控制模式、安全外部调用、输入验证、升级安全和 OWASP 智能合约十大漏洞。触发涉及安全、漏洞检测、访问控制、CEI 模式、ReentrancyGuard、SafeERC20 或智能合约审核的任务。 来源:whackur/solidity-agent-toolkit。

如何安装 solidity-security-best-practices?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-security-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/whackur/solidity-agent-toolkit