0x-shashi/web3-audit-skills/audit-context-building

Claude Code and agent skill by 0x-shashi/web3-audit-skills

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Systematically build comprehensive understanding of a protocol before code-level analysis. Use when starting a new audit engagement, mapping trust boundaries and external dependencies, or when needing to identify all privileged roles and protocol invariants before manual review.

Install

npx vskill@latest install 0x-shashi/web3-audit-skills/audit-context-building

SKILL.md

The same SKILL.md was published earlier as 0x-shashi/web3-audit-skills/audit-context-building.

Audit Context Building Skill

Systematically build comprehensive understanding of a protocol before diving into code-level analysis. Rushing into code without context leads to missed vulnerabilities, wasted time, and incomplete coverage.


Why Context Building Matters

Without ContextWith Context
Miss cross-contract interactionsMap all trust boundaries before reading code
Spend time on low-risk functionsPrioritize functions handling value
Overlook admin-only backdoorsKnow every privileged role and its power
Miss assumptions about external protocolsDocument all external dependencies upfront
Can't identify broken invariantsInvariants identified before code review
Time Allocation

For a typical DeFi protocol audit:

PhaseTime %Activity
Context building15-20%Architecture mapping, docs review, invariants
Function-level analysis40-50%Line-by-line code review with context
Cross-cutting concerns20-25%Reentrancy, access control, value flows
Reporting10-15%Writing findings, severity classification

Capabilities

Architecture Mapping
  • Contract inventory with purpose and SLOC
  • Inheritance hierarchy (is-a relationships)
  • Contract interaction graph (calls-to relationships)
  • Proxy/upgrade pattern identification
  • Library usage and dependency versions
Function-Level Analysis
  • Access control classification (unrestricted / role-gated / owner-only)
  • State change documentation (reads vs writes)
  • External call mapping (call targets, data flow, return handling)
  • CEI pattern compliance per function
  • Edge case identification
Protocol Understanding
  • Protocol invariant identification and documentation
  • Trust boundary mapping (what trusts what)
  • Token and value flow tracing
  • Fee mechanism analysis
  • Integration point documentation
Risk Surface Identification
  • Centralization risk assessment (admin power)
  • Oracle dependency risk
  • External protocol dependency risk
  • Upgrade mechanism risk
  • Economic design risk areas

When to Use

TriggerAction
Starting a new auditFull pre-audit context workflow
Reviewing unfamiliar protocol typeArchitecture analysis first
Auditing upgradeable contractsStorage layout + proxy analysis
Multi-contract systemContract interaction mapping
Post-deployment reviewFocus on live state + deployed config

Workflows

Resources

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
47
Repository forks
7
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/0x-shashi/web3-audit-skills/audit-context-building/badge)](https://verified-skill.com/skills/0x-shashi/web3-audit-skills/audit-context-building)

Something wrong with this skill or its page? Tell us.