guidelines-advisor by trailofbits/skills
npx skills add https://github.com/trailofbits/skills --skill guidelines-advisor系统性地分析代码库,并根据 Trail of Bits 的开发指南提供指导:
框架 : Building Secure Contracts - Development Guidelines
探索代码库以了解:
帮助创建:
分析:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
评估:
提供:
我分析 11 个全面领域,涵盖智能合约开发的各个方面。有关详细标准、最佳实践和具体检查项,请参阅 ASSESSMENT_AREAS.md。
文档与规范
链上与链下计算
可升级性
Delegatecall 代理模式
函数构成
继承
事件
常见陷阱
依赖项
测试与验证
* 覆盖范围分析
* 模糊测试技术
* 形式化验证
* CI/CD 集成
11. 平台特定指导
* Solidity 版本建议
* 编译器警告检查
* 内联汇编警告
* 平台特定工具
有关每个领域的完整详细信息,包括我将检查、分析和建议的内容,请参阅 ASSESSMENT_AREAS.md。
分析完成后,你将收到全面的指导,涵盖:
有关完整的示例分析报告,请参阅 EXAMPLE_REPORT.md。
我提供四个全面的交付成果类别:
有关每个交付成果的详细模板和示例,请参阅 DELIVERABLES.md。
调用时,我将:
探索代码库
生成文档
分析架构
审查实现
提供建议
| 合理化借口 | 为何错误 | 必需行动 |
|---|---|---|
| "系统简单,描述涵盖一切" | 通俗易懂的描述会遗漏安全关键细节 | 完成所有 5 个阶段:文档、架构、实现、依赖项、建议 |
| "未检测到升级,跳过可升级性部分" | 可升级性可能是隐式的(可拥有模式、delegatecall) | 在声明不适用前,搜索代理模式、delegatecall、存储冲突 |
| 未经验证的"不适用" | 过早缩小范围会遗漏漏洞 | 在跳过任何指南部分之前,通过显式代码库搜索进行验证 |
| "架构简单明了,无需分析" | 明显的架构存在细微的信任边界 | 分析链上/链下分布、访问控制流、外部依赖项 |
| "常见陷阱不适用于此代码库" | 每个代码库都有常见陷阱 | 使用 grep/代码搜索系统性地检查所有指南陷阱 |
| "测试存在,测试指南已满足" | 测试存在 ≠ 测试质量 | 检查覆盖范围、基于属性的测试、集成测试、失败案例 |
| "我可以提供通用的最佳实践" | 通用建议不可操作 | 提供包含文件:行引用的项目特定发现 |
| "用户从发现中知道如何改进" | 没有优先级的发现 = 没有行动计划 | 生成包含具体后续步骤的优先级改进路线图 |
我需要什么:
让我们分析你的代码库,并使用 Trail of Bits 的最佳实践来改进它!
每周安装量
1.2K
代码仓库
GitHub 星标数
3.9K
首次出现
Jan 19, 2026
安全审计
安装于
claude-code1.1K
codex988
opencode934
gemini-cli918
cursor887
github-copilot853
Systematically analyzes the codebase and provides guidance based on Trail of Bits' development guidelines:
Framework : Building Secure Contracts - Development Guidelines
Explores the codebase to understand:
Helps create:
Analyzes:
Assesses:
Provides:
I analyze 11 comprehensive areas covering all aspects of smart contract development. For detailed criteria, best practices, and specific checks, see ASSESSMENT_AREAS.md.
Documentation & Specifications
On-Chain vs Off-Chain Computation
Upgradeability
Delegatecall Proxy Pattern
Function Composition
Inheritance
Events
* Coverage analysis
* Fuzzing techniques
* Formal verification
* CI/CD integration
11. Platform-Specific Guidance
* Solidity version recommendations
* Compiler warning checks
* Inline assembly warnings
* Platform-specific tools
For complete details on each area including what I'll check, analyze, and recommend, see ASSESSMENT_AREAS.md.
When the analysis is complete, you'll receive comprehensive guidance covering:
For a complete example analysis report, see EXAMPLE_REPORT.md.
I provide four comprehensive deliverable categories:
For detailed templates and examples of each deliverable, see DELIVERABLES.md.
When invoked, I will:
Explore the codebase
Generate documentation
Analyze architecture
Review implementation
Provide recommendations
| Rationalization | Why It's Wrong | Required Action |
|---|---|---|
| "System is simple, description covers everything" | Plain English descriptions miss security-critical details | Complete all 5 phases: documentation, architecture, implementation, dependencies, recommendations |
| "No upgrades detected, skip upgradeability section" | Upgradeability can be implicit (ownable patterns, delegatecall) | Search for proxy patterns, delegatecall, storage collisions before declaring N/A |
| "Not applicable" without verification | Premature scope reduction misses vulnerabilities | Verify with explicit codebase search before skipping any guideline section |
| "Architecture is straightforward, no analysis needed" | Obvious architectures have subtle trust boundaries | Analyze on-chain/off-chain distribution, access control flow, external dependencies |
| "Common pitfalls don't apply to this codebase" | Every codebase has common pitfalls | Systematically check all guideline pitfalls with grep/code search |
| "Tests exist, testing guideline is satisfied" | Test existence ≠ test quality | Check coverage, property-based tests, integration tests, failure cases |
| "I can provide generic best practices" |
What I'll need :
Let's analyze your codebase and improve it using Trail of Bits' best practices!
Weekly Installs
1.2K
Repository
GitHub Stars
3.9K
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code1.1K
codex988
opencode934
gemini-cli918
cursor887
github-copilot853
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
Common Pitfalls
Dependencies
Testing & Verification
| Generic advice isn't actionable |
| Provide project-specific findings with file:line references |
| "User knows what to improve from findings" | Findings without prioritization = no action plan | Generate prioritized improvement roadmap with specific next steps |