npx skills add https://github.com/schwepps/skills --skill solidity-auditor一个专业级的智能合约审计技能,涵盖安全漏洞、Gas 优化、存储模式和代码架构。适配 Solidity 特定版本。
根据用户请求确定审计类型:
| 用户请求 | 审计类型 | 主要参考文件 |
|---|---|---|
| "全面审计", "综合审查" | 全面审计 | 所有参考文件 |
| "安全审计", "漏洞扫描" | 安全重点审计 | references/security-checklist.md |
| "Gas 优化", "降低 Gas 成本" | Gas 优化审计 | references/gas-optimization.md |
| "存储优化", "存储模式" | 存储优化审计 | references/storage-optimization.md |
| "代码审查", "架构审查" |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 架构审查 |
references/architecture-review.md |
| "DeFi 审计", "协议审查" | DeFi 协议审计 | 安全 + 架构参考文件 |
识别 Solidity 版本:检查 pragma 声明。阅读 references/version-specific.md 了解版本特定注意事项:
unchecked 块,检查自定义错误使用情况理解范围:
收集上下文信息:如果未提供,请询问:
使用安全清单中的模式进行思维自动化检查:
unchecked 块中)映射攻击面:
阅读 references/security-checklist.md 并评估每个类别:
关键优先级(首先检查):
高优先级: 4. 闪电贷攻击向量 (OWASP SC-04) 5. 输入验证 (OWASP SC-05) 6. 预言机操纵 (OWASP SC-06) 7. 未检查的外部调用 (OWASP SC-07)
中优先级: 8. 整数溢出/下溢(版本相关) 9. 拒绝服务向量 10. 抢先交易漏洞
Gas 优化:阅读 references/gas-optimization.md
存储优化:阅读 references/storage-optimization.md
使用 references/report-template.md 中的模板来组织发现的问题。
| 严重性 | 标准 | 措施 |
|---|---|---|
| 关键 | 可能导致直接资金损失,无需用户交互 | 需要立即修复,不得部署 |
| 高 | 在特定条件下可能导致资金损失,影响重大 | 部署前必须修复 |
| 中 | 影响有限,不太可能被利用,或为治理问题 | 应修复,评估风险 |
| 低 | 小问题,违反最佳实践 | 建议修复 |
| 信息性 | 代码质量,Gas 优化,建议 | 可选改进 |
来自 OWASP 智能合约十大风险 (2025) 及实际损失:
始终提供:
尽可能将建议格式化为可操作的代码更改。
根据审计类型按需加载:
references/security-checklist.md - 包含检测模式的完整漏洞清单references/gas-optimization.md - Gas 优化技术和模式references/storage-optimization.md - 存储布局和优化references/architecture-review.md - 代码架构最佳实践references/version-specific.md - Solidity 版本注意事项references/report-template.md - 专业审计报告模板每周安装次数
94
代码仓库
GitHub 星标数
7
首次出现
2026年1月24日
安全审计
安装于
opencode83
gemini-cli80
codex79
github-copilot76
claude-code70
cursor69
A professional-grade smart contract audit skill covering security vulnerabilities, gas optimization, storage patterns, and code architecture. Adapted to Solidity version specifics.
Determine the audit type based on user request:
| User Request | Audit Type | Primary Reference |
|---|---|---|
| "Full audit", "comprehensive review" | Full Audit | All references |
| "Security audit", "vulnerability scan" | Security Focused | references/security-checklist.md |
| "Gas optimization", "reduce gas costs" | Gas Optimization | references/gas-optimization.md |
| "Storage optimization", "storage patterns" | Storage Optimization | references/storage-optimization.md |
| "Code review", "architecture review" | Architecture Review | references/architecture-review.md |
| "DeFi audit", "protocol review" | DeFi Protocol | Security + Architecture references |
Identify Solidity Version : Check pragma statement. Read references/version-specific.md for version-specific considerations:
unchecked blocks, check custom errors usageUnderstand Scope :
Gather Context : Ask if not provided:
Run automated checks mentally using patterns from the security checklist:
unchecked blocks)Map attack surface :
Read references/security-checklist.md and evaluate each category:
Critical Priority (check first):
High Priority: 4. Flash Loan Attack Vectors (OWASP SC-04) 5. Input Validation (OWASP SC-05) 6. Oracle Manipulation (OWASP SC-06) 7. Unchecked External Calls (OWASP SC-07)
Medium Priority: 8. Integer Overflow/Underflow (version-dependent) 9. Denial of Service vectors 10. Front-running vulnerabilities
For gas optimization: Read references/gas-optimization.md For storage optimization: Read references/storage-optimization.md
Use the template in references/report-template.md to structure findings.
| Severity | Criteria | Action |
|---|---|---|
| Critical | Direct fund loss possible, no user interaction needed | Immediate fix required, do not deploy |
| High | Fund loss possible with specific conditions, significant impact | Must fix before deployment |
| Medium | Limited impact, unlikely exploitation, or governance issue | Should fix, assess risk |
| Low | Minor issue, best practice violation | Recommended fix |
| Informational | Code quality, gas optimization, suggestions | Optional improvement |
From OWASP Smart Contract Top 10 (2025) with real losses:
Always provide:
Format recommendations as actionable code changes when possible.
Load these as needed based on audit type:
references/security-checklist.md - Complete vulnerability checklist with detection patternsreferences/gas-optimization.md - Gas optimization techniques and patternsreferences/storage-optimization.md - Storage layout and optimizationreferences/architecture-review.md - Code architecture best practicesreferences/version-specific.md - Solidity version considerationsreferences/report-template.md - Professional audit report templateWeekly Installs
94
Repository
GitHub Stars
7
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode83
gemini-cli80
codex79
github-copilot76
claude-code70
cursor69
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
43,100 周安装