@trailofbits

作成者 · trailofbits

最終更新 · 2026年8月24日

audit-prep-assistant

レビュー · 66Registry に収録

Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation (flowcharts, user stories, inline comments).

OpenAgentSkill Trust Score
66/100

サンドボックス限定

品質85/100
監査83/100
スター6.8K
Verified installs0

インストール先

Codex インストールプロンプト

Install the "audit-prep-assistant" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/building-secure-contracts/skills/audit-prep-assistant. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation (flowcharts, user stories, inline comments). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"trailofbits-audit-prep-assistant","task":"Install audit-prep-assistant","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.

供給アセットの概要

リサーチとナレッジ作業

Deep research, source comparison, literature review, RAG, knowledge search, and reports.

カテゴリを見る

シナリオ

RAG and knowledge

I need my agent to build a RAG workflow over documents and retrieve reliable context.

Agent 適合

Claude Code + CLI + Codex

Codex、Claude Code、Cursor、CLI、またはカスタム Agent に対応します。

インストール

準備完了

npx skills add trailofbits/skills --skill audit-prep-assistant

メンテナンス

新しい

本日プッシュ

リスク

高リスク

Permission surface may require sandboxing

GitHub 品質

6.8K

85/100 品質 · 74/100 信頼

対象タグ

リサーチRAG and knowledgeセキュリティagent-skill

レビュー注記

Permission surface may require sandboxing · Financial research output is not financial advice; require human review before any live investment decision

Agent 導入スコアカード

信頼、監査、インストール準備状況を一目で確認

公開リポジトリのメタデータ、OpenAgentSkill のレビューシグナル、保守の鮮度、インストール準備状況を組み合わせたスコアです。候補選定の目安であり、人によるレビューの代替ではありません。

品質

優秀
85

採用度と保守性のシグナルが強い高信頼候補です。

信頼

サンドボックス限定
66

信頼シグナルが不足または混在する有用な候補です。結果ループがタスク適合を示すまで、隔離されたワークスペースで使用してください。

監査

高リスク
83

インストール準備、安全メタデータ、保守、採用リスクの機械可読なレビュー。

OpenAgentSkill Trust Score v5

サンドボックス限定

実作業で使う前に、サンドボックスでのみ実行し、近い代替と比較してください。

CodexClaude CodeCursorOpenAgentSkill CLI

スター

GitHub スター 6.8K

リポジトリ活動

スター 6.8K、フォーク 585

メンテナンス

本日プッシュ

ライセンス

CC-BY-SA-4.0

インストール

npx skills add trailofbits/skills --skill audit-prep-assistant

インストール安全性

標準パッケージまたはランタイムのインストールパス

権限範囲

shell or command execution, filesystem or document access

Agent の成果

Agent の成果データはまだありません

ドキュメント

README/SKILL.md の文脈が十分です

リスク概要

本番前にレビュー

  • The SKILL.md excerpt in the prompt is truncated, but the full file appears complete and well-structured.
  • Financial research output is not financial advice; require human review before any live investment decision.
  • This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.
  • Quality score needs review

インストール準備状況

インストールパスを利用可能

  • インストールパスを利用できます
  • リポジトリの根拠を利用できます
  • ライセンスが明示されています
  • Agent-Proven の成果エビデンスはまだありません

Agent 可読メタデータ

このスキルの機械可読な判断データ。

このブロックまたは埋め込み JSON を使い、Agent がこのスキルをインストールすべきか、代替を選ぶべきか、先に人のレビューを求めるべきかを判断できます。

View technical data+

適したタスク

  • GitHub automation ワークフロー
  • Claude Code チーム
  • GitHub 採用シグナルを重視するチーム
  • Inspect repository metadata

適した Agent

CodexClaude CodeCursorOpenAgentSkill CLICLI

インストール判断

コマンド
npx skills add trailofbits/skills --skill audit-prep-assistant
ポリシー
ブロック
人によるレビュー
はい

信頼とリスク

信頼
66/100
監査
83/100
リスクレベル
高リスク

成果ループ

エンドポイント
/api/agent/outcome
イベント ID
resolve
成果
5

インストールコマンド

npx skills add trailofbits/skills --skill audit-prep-assistant

使わない場合

  • ベンダー提供の SLA が必要なチーム
  • production agents without a repository review
  • The SKILL.md excerpt in the prompt is truncated, but the full file appears complete and well-structured.
  • OpenAgentSkill の利用フィードバックはまだありません
  • Audit risk risky exceeds max_risk=medium

Agent セーフティ v2

51/100 · 自動インストールを避ける

Blocked for auto-installブロック

This skill should not be selected by an agent without explicit human security review.

Do not auto-install. Inspect the source, dependencies, and permission surface first.

API で解決

Shell またはコマンド実行

Skill メタデータに端末、CLI、Shell、サブプロセス、またはコマンド実行のワークフローが含まれます。

ネットワークアクセス

Skill はリモートページ、API、リポジトリ、外部サービスにアクセスする可能性があります。

ファイルシステムアクセス

Skill はプロジェクトファイル、ドキュメント、生成物、ローカルワークスペース状態を読み書きする可能性があります。

データベースアクセス

Skill はスキーマを確認し、データベースを照会し、永続ストアを扱う可能性があります。

  • Audit risk risky exceeds max_risk=medium
  • 高リスク権限のヒント: Shell またはコマンド実行
  • Permission surface may require sandboxing

Agent 解決プラン

インストール前に Agent に適合性を検証させます。

Resolve API は第一候補、代替、安全ポリシー、監査メモ、インストール先、Agent がそのまま使えるプロンプトを返します。

テキストプランを開く

Agent が確認すべきこと

  • Resolve API でタスク適合と代替を確認。
  • 監査・信頼スコアと安全ポリシーの警告を確認。
  • Codex、Claude Code、Cursor、CLI のインストール先互換性を確認。

プロンプトをコピー

Task: Use audit-prep-assistant in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20audit-prep-assistant%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/trailofbits-audit-prep-assistant/install
Install command: npx skills add trailofbits/skills --skill audit-prep-assistant
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.

Agent 引き継ぎ

別のディレクトリではなく、インストール経路を Agent に渡します。

公開インストールエンドポイントからコマンド、安全チェックリスト、対象プロンプト、正規リンクを取得します。

Install API を開く

Agent プロンプト

Use audit-prep-assistant for this task. Review https://www.openagentskill.com/api/skills/trailofbits-audit-prep-assistant/install, then install with: npx skills add trailofbits/skills --skill audit-prep-assistant

Registry メタデータ

自動スキル選択用の Agent 可読プロファイル。

Registry API 経由で判断、信頼、監査、ユースケース、インストールのシグナルを提供し、UI をスクレイピングせずに Agent が順位付けできます。

Manifest を開く

Agent 適合

96/100

GitHub automation

プラットフォーム

Claude Code

監査レポート

高リスク · 83/100

インストール準備、安全メタデータ、保守、採用リスクの機械可読なレビュー。

監査レポートを見る評価レポートを見る

Agent 判断パネル

GitHub automation 向けの第一候補

有力候補として扱い、自分の Agent スタックで README とインストール経路を検証してください。

96
準備状況
採用
段階

スタック内の役割

第一候補

主な適合

GitHub automation

信頼ラベル

本番対応

インストールパス

コマンド準備済み

使う場面

  • GitHub automation ワークフロー
  • Claude Code チーム
  • GitHub 採用シグナルを重視するチーム

根拠

  • GitHub スター 6,823
  • 最近のリポジトリ活動
  • インストールコマンドまたは GitHub リポジトリが利用可能
  • 品質プロファイル 85/100

先にレビュー

  • The SKILL.md excerpt in the prompt is truncated, but the full file appears complete and well-structured.
  • OpenAgentSkill の利用フィードバックはまだありません

実装パス

  1. 1サンドボックスの Agent にインストールし、GitHub automation タスクを一度最初から最後まで実行します。
  2. 2Compare output quality, latency, and failure behavior against at least one alternative.
  3. 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.

信頼プロファイル

サンドボックス限定

信頼シグナルが不足または混在する有用な候補です。結果ループがタスク適合を示すまで、隔離されたワークスペースで使用してください。

66
OpenAgentSkill Trust Score

GitHub 採用度

合格

GitHub スター 6.8K

スター/フォーク活動

合格

スター 6.8K、フォーク 585; 現在のメタデータでは Issue 活動を利用できません

最近のメンテナンス

合格

本日プッシュ

ライセンスの明確さ

合格

CC-BY-SA-4.0

良いシグナル

  • AI レビュー承認済み
  • インストールパスを利用できます
  • リポジトリの根拠を利用できます
  • 最近保守されたリポジトリ
  • Large GitHub adoption signal
  • インストールコマンドに明確な高リスクパターンはありません
  • 成果ループは準備済みですが、最初の実行が必要です

インストール前にレビュー

  • The SKILL.md excerpt in the prompt is truncated, but the full file appears complete and well-structured.
  • Financial research output is not financial advice; require human review before any live investment decision.
  • This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.
  • Quality score needs review
  • Permission surface needs review: shell or command execution, filesystem or document access
  • Permission surface: shell or command execution, filesystem or document access
  • 実際の Agent 成果レポートはまだありません
  • 無人インストールの前に人によるレビューが必要です

推奨アクション

実作業で使う前に、サンドボックスでのみ実行し、近い代替と比較してください。

品質プロファイル

優秀 Agent ワークフロー向けの候補

採用度と保守性のシグナルが強い高信頼候補です。

85
GitHub スター
6.8K
鮮度
今日
インストール準備完了
はい
ライセンス
CC-BY-SA-4.0
インストール前にレビュー: The SKILL.md excerpt in the prompt is truncated, but the full file appears complete and well-structured.

ワークフロー適合

このスキルを使うシナリオ

ワークフロー適合

完全なワークフローに追加

代替候補

インストール前に比較

このタスクに適する可能性のある類似スキル。

すべて比較

概要

--- name: audit-prep-assistant description: Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation (flowcharts, user stories, inline comments). ---

# Audit Prep Assistant

## Purpose

Helps prepare for a security review using Trail of Bits' checklist. A well-prepared codebase makes the review process smoother and more effective.

**Use this**: 1-2 weeks before your security audit

---

## The Preparation Process

### Step 1: Set Review Goals

Helps define what you want from the review:

**Key Questions**: - What's the overall security level you're aiming for? - What areas concern you most? - Previous audit issues? - Complex components? - Fragile parts? - What's the worst-case scenario for your project?

Documents goals to share with the assessment team.

---

### Step 2: Resolve Easy Issues

Runs static analysis and helps fix low-hanging fruit:

**Run Static Analysis**:

For Solidity: ```bash slither . --exclude-dependencies ```

For Rust: ```bash dylint --all ```

For Go: ```bash golangci-lint run ```

For Go/Rust/C++: ```bash # CodeQL and Semgrep checks ```

Then I'll: - Triage all findings - Help fix easy issues - Document accepted risks

**Increase Test Coverage**: - Analyze current coverage - Identify untested code - Suggest new tests - Run full test suite

**Remove Dead Code**: - Find unused functions/variables - Identify unused libraries - Locate stale features - Suggest cleanup

**Goal**: Clean static analysis report, high test coverage, minimal dead code

---

### Step 3: Ensure Code Accessibility

Helps make code clear and accessible:

**Provide Detailed File List**: - List all files in scope - Mark out-of-scope files - Explain folder structure - Document dependencies

**Create Build Instructions**: - Write step-by-step setup guide - Test on fresh environment - Document dependencies and versions - Verify build succeeds

**Freeze Stable Version**: - Identify commit hash for review - Create dedicated branch - Tag release version - Lock dependencies

**Identify Boilerplate**: - Mark copied/forked code - Highlight your modifications - Document third-party code - Focus review on your code

---

### Step 4: Generate Documentation

Helps create documentation:

**Flowcharts and Sequence Diagrams**: - Map primary workflows - Show component relationships - Visualize data flow - Identify critical paths

**User Stories**: - Define user roles - Document use cases - Explain interactions - Clarify expectations

**On-chain/Off-chain Assumptions**: - Data validation procedures - Oracle information - Bridge assumptions - Trust boundaries

**Actors and Privileges**: - List all actors - Document roles - Define privileges - Map access controls

**External Developer Docs**: - Link docs to code - Keep synchronized - Explain architecture - Document APIs

**Function Documentation**: - System and function invariants - Parameter ranges (min/max values) - Arithmetic formulas and precision loss - Complex logic explanations - NatSpec for Solidity

**Glossary**: - Define domain terms - Explain acronyms - Consistent terminology - Business logic concepts

**Video Walkthroughs** (optional): - Complex workflows - Areas of concern - Architecture overview

---

## How I Work

When invoked, I will:

1. **Help set review goals** - Ask about concerns and document them 2. **Run static analysis** - Execute appropriate tools for your platform 3. **Analyze test coverage** - Identify gaps and suggest improvements 4. **Find dead code** - Search for unused code and libraries 5. **Review accessibility** - Check build instructions and scope clarity 6. **Generate documentation** - Create flowcharts, user stories, glossaries 7. **Create prep checklist** - Track what's done and what's remaining

Adapts based on: - Your platform (Solidity, Rust, Go, etc.) - Available tools - Existing documentation - Review timeline

---

## Rationalizations (Do Not Skip)

| Rationalization | Why It's Wrong | Required Action | |-----------------|----------------|-----------------| | "README covers setup, no need for detailed build instructions" | READMEs assume context auditors don't have | Test build on fresh environment, document every dependency version | | "Static analysis already ran, no need to run again" | Codebase changed since last run | Execute static analysis tools, generate fresh report | | "Test coverage looks decent" | "Looks decent" isn't measured coverage | Run coverage tools, identify specific untested code paths | | "Not much dead code to worry about" | Dead code hides during manual review | Use automated detection tools to find unused functions/variables | | "Architecture is straightforward, no diagrams needed" | Text descriptions miss visual patterns | Generate actual flowcharts and sequence diagrams | | "Can freeze version right before audit" | Last-minute freezing creates rushed handoff | Identify and document commit hash now, create dedicated branch | | "Terms are self-explanatory" | Domain knowledge isn't universal | Create comprehensive glossary with all domain-specific terms | | "I'll do this step later" | Steps build on each other - skipping creates gaps | Complete all 4 steps sequentially, track progress with checklist |

---

## Example Output

When I finish helping you prepare, you'll have concrete deliverables like:

``` === AUDIT PREP PACKAGE ===

Project: DeFi DEX Protocol Audit Date: March 15, 2024 Preparation Status: Complete

---

## REVIEW GOALS DOCUMENT

Security Objectives: - Verify economic security of liquidity pool swaps - Validate oracle manipulation resistance - Assess flash loan attack vectors

Areas of Concern: 1. Complex AMM pricing calculation (src/SwapRouter.sol:89-156) 2. Multi-hop swap routing logic (src/Router.sol) 3. Oracle price aggregation (src/PriceOracle.sol:45-78)

Worst-Case Scenario: - Flash loan attack drains liquidity pools via oracle manipulation

Questions for Auditors: - Can the AMM pricing model produce negative slippage under edge cases? - Is the slippage protection sufficient to prevent sandwich attacks? - How resilient is the system to temporary oracle failures?

---

## STATIC ANALYSIS REPORT

Slither Scan Results: ✓ High: 0 issues ✓ Medium: 0 issues ⚠ Low: 2 issues (triaged - documented in TRIAGE.md) ℹ Info: 5 issues (code style, acceptable)

Tool: slither . --exclude-dependencies Date: March 1, 2024 Status: CLEAN (all critical issues resolved)

---

## TEST COVERAGE REPORT

Overall Coverage: 94% - Statements: 1,245 / 1,321 (94%) - Branches: 456 / 498 (92%) - Functions: 89 / 92 (97%)

Uncovered Areas: - Emergency pause admin functions (tested manually) - Governance migration path (one-time use)

Command: forge coverage Status: EXCELLENT

---

## CODE SCOPE

In-Scope Files (8): ✓ src/SwapRouter.sol (456 lines) ✓ src/LiquidityPool.sol (234 lines) ✓ src/PairFactory.sol (389 lines) ✓ src/PriceOracle.sol (167 lines) ✓ src/LiquidityManager.sol (298 lines) ✓ src/Governance.sol (201 lines) ✓ src/FlashLoan.sol (145 lines) ✓ src/RewardsDistributor.sol (178 lines)

Out-of-Scope: - lib/ (OpenZeppelin, external dependencies) - test/ (test contracts) - scripts/ (deployment scripts)

Total In-Scope: 2,068 lines of Solidity

---

## BUILD INSTRUCTIONS

Prerequisites: - Foundry 0.2.0+ - Node.js 18+ - Git

Setup: ```bash git clone https://github.com/project/repo.git cd repo git checkout audit-march-2024 # Frozen branch forge install forge build forge test ```

Verification: ✓ Build succeeds without errors ✓ All 127 tests pass ✓ No warnings from compiler

---

## DOCUMENTATION

Generated Artifacts: ✓ ARCHITECTURE.md - System overview with diagrams ✓ USER_STORIES.md - 12 user interaction flows ✓ GLOSSARY.md - 34 domain terms defined ✓ docs/diagrams/contract-interactions.png ✓ docs/diagrams/swap-flow.png ✓ docs/diagrams/state-machine.png

NatSpec Coverage: 100% of public functions

---

## DEPLOYMENT INFO

Network: Ethereum Mainnet Commit: abc123def456 (audit-march-2024 branch) Deployed Contracts: - SwapRouter: 0x1234... - PriceOracle: 0x5678... [... etc]

---

PACKAGE READY FOR AUDIT ✓ Next Step: Share with Trail of Bits assessment team ```

---

## What You'll Get

**Review Goals Document**: - Security objectives - Areas of concern - Worst-case scenarios - Questions for auditors

**Clean Codebase**: - Triaged static analysis (or clean report) - High test coverage - No dead code - Clear scope

**Accessibility Package**: - File list with scope - Build instructions - Frozen commit/branch - Boilerplate identified

**Documentation Suite**: - Flowcharts and diagrams - User stories - Architecture docs - Actor/privilege map - Inline code comments - Glossary - Video walkthroughs (if created)

**Audit Prep Checklist**: - [ ] Review goals documented - [ ] Static analysis clean/triaged - [ ] Test coverage >80% - [ ] Dead code removed - [ ] Build instructions verified - [ ] Stable version frozen - [ ] Flowcharts created - [ ] User stories documented - [ ] Assumptions documented - [ ] Actors/privileges listed - [ ] Function docs complete - [ ] Glossary created

---

## Timeline

**2 weeks before audit**: - Set review goals - Run static analysis - Start fixing issues

**1 week before audit**: - Increase test coverage - Remove dead code - Freeze stable version - Start documentation

**Few days before audit**: - Complete documentation - Verify build instructions - Create final checklist - Send package to auditors

---

## Ready to Prep

Let me know when you're ready and I'll help you prepare for your security review!

技術詳細

バージョン
1.0.0
ライセンス
CC-BY-SA-4.0
最終更新
2026年8月24日
公開日
2026年8月24日

判断の要約

第一候補

96
準備完了
採用
段階

GitHub スター 6,823

監査

インストールレビュー

インストールと採用のレビュー

83
高リスク
セキュリティ
75/100
メンテナンス
100/100
インストール
92/100
完全な監査を開く評価レポートを見る

Agent 実証エビデンス

Agent 実証エビデンス

Resolve、レビュー、インストール、限定実行後の成果レポート。

0
実証済み
Needs first agent run自動インストール: 先にレビュー最新: 不明
成功率
直近の失敗
成果
0
出力品質
失敗
0
非該当
0
インストール数
0
リスクによりブロック
0
設定が必要
0
本番
0

Agent の実行結果はまだありません。最初の実行では /api/agent/outcome を通じて成功、設定要件、リスクによるブロック、失敗、非該当を報告できます。

インストール

Agent ワークフローに追加

無料・オープンソース. 本番 Agent にインストールする前にレポートを確認してください。

成長ループ

共有キット

X

audit-prep-assistant 用のシナリオベース草案です。X へ手動投稿できます。

キュレーターノート
audit-prep-assistant: Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals...

6.8K stars

https://www.openagentskill.com/skills/trailofbits-audit-prep-assistant?ref=x
X 下書きを開く
任意:インストールコマンド付きの返信
Listing + install path for audit-prep-assistant:
https://www.openagentskill.com/skills/trailofbits-audit-prep-assistant?ref=x

Install: npx skills add trailofbits/skills --skill audit-prep-assistant
返信の下書きを開く

掲載元

Registry により登録

申請可能

この掲載は公開ソースから登録されており、メンテナー申請が承認されるまで公式として表示されません。

作成者
trailofbits
インデックス作成者
OpenAgentSkill コミュニティインデックス

帰属は公開リポジトリまたは作成者プロフィールにリンクされています。作成者は掲載を申請して所有権シグナルを更新できます。

このスキルを申請

所有者の申請

このスキル掲載を申請

この Registry により登録 掲載は trailofbits に帰属していますが、まだ公式として表示されていません。申請すると、確認済み所有者シグナルが追加され、今後の公開、インストール、監査更新の信頼性が高まります。

クリエイター被リンクキット

README にエビデンスバッジを追加

開発者がリポジトリを評価する場所で、正規掲載、現在の信頼・監査シグナル、実際の Agent-Proven エビデンスを表示します。

[![Listed on OpenAgentSkill](https://www.openagentskill.com/api/badge/trailofbits-audit-prep-assistant?metric=listed&label=Listed)](https://www.openagentskill.com/skills/trailofbits-audit-prep-assistant)
[![OpenAgentSkill Trust](https://www.openagentskill.com/api/badge/trailofbits-audit-prep-assistant?metric=trust&label=Trust)](https://www.openagentskill.com/skills/trailofbits-audit-prep-assistant)
[![OpenAgentSkill Audit](https://www.openagentskill.com/api/badge/trailofbits-audit-prep-assistant?metric=audit&label=Audit)](https://www.openagentskill.com/skills/trailofbits-audit-prep-assistant/audit)
[![Agent Proven](https://www.openagentskill.com/api/badge/trailofbits-audit-prep-assistant?metric=proven&label=Agent%20Proven)](https://www.openagentskill.com/skills/trailofbits-audit-prep-assistant)

作者

T

trailofbits

@trailofbits

プラットフォーム適合

健全性シグナル

GitHub スター
6.8K
品質スコア
50/100
最終 GitHub プッシュ
2026年8月24日
フレームワークのヒント
不明
OpenAgentSkill 閲覧数
0
インストールコピー数
0
外部クリック
0

コミュニティシグナル

このスキルが Agent ワークフローに役立つかを共有してください。集約されたフィードバックがランキングを改善します。

信頼と安全性

サンドボックス限定

66
  • GitHub 採用度GitHub スター 6.8K合格
  • スター/フォーク活動スター 6.8K、フォーク 585; 現在のメタデータでは Issue 活動を利用できません合格
  • 最近のメンテナンス本日プッシュ合格
  • ライセンスの明確さCC-BY-SA-4.0合格
  • README/SKILL.md の完全性メタデータには十分な利用・ワークフロー文脈があります合格
  • 依存関係/ランタイムのリスクcommand execution surface, database surface情報