0x-shashi/web3-audit-skills/protocol-templates

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

Trust tier 2
  • community
  • ext:[{"type":"template","description":"Custom templates for code generation"}]
LLM review pending
Source check pending

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

Structured, protocol-type-specific audit templates enumerating the exact checks, invariants, and attack vectors relevant to each protocol category. Use when auditing AMM/DEX, lending, bridge, governance, or vault protocols to load targeted checklists based on context detection results.

Install

npx vskill@latest install 0x-shashi/web3-audit-skills/protocol-templates

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

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

Protocol Templates Skill

Purpose

Provide structured, protocol-type-specific audit templates that enumerate the exact checks, invariants, and attack vectors relevant to each protocol category. These templates are loaded based on context detection.

Available Templates

TemplateProtocol TypeKey Focus Areas
AMM/DEXUniswap, Curve, Balancer-stylePrice manipulation, LP attacks, MEV
BridgeCross-chain bridgesMessage verification, replay, accounting
LendingAave, Compound-styleOracle, liquidation, interest rates
NFT MarketplaceOpenSea, Blur-styleOrder validation, royalties, signatures
StakingLido, RocketPool-styleReward distribution, withdrawal, delegation

Template Structure

Each template follows a consistent format:

  1. Protocol Overview: What the protocol does
  2. Architecture Checklist: Structural checks
  3. Invariants: Mathematical properties that must hold
  4. Attack Vectors: Known exploits for this protocol type
  5. Critical Functions: Functions requiring deepest review
  6. Integration Risks: External dependency risks
  7. Economic Considerations: Game theory and incentive analysis

Usage

  1. Context detection identifies protocol type
  2. Appropriate template is loaded
  3. Auditor follows template checklist systematically
  4. Findings tagged with template category for standardized reporting

Prerequisites

Protocol templates require Context Detection for automatic loading. Manual template selection is also supported.

Validation

To verify template coverage, validate against known protocol types:

python
# Validate template completeness
required_sections = ["Overview", "Architecture Checklist", "Invariants", "Attack Vectors", "Critical Functions"]
for template in templates:
for section in required_sections:
assert section in template.sections, f"{template.name} missing {section}"
yaml
# Example template loading configuration
detected_type: amm-dex
confidence: 0.92
loaded_templates:
- amm-dex-template.md
- defi-patterns.md
checklist: dex-amm-checklist
bash
# Test template file integrity
for f in *-template.md; do echo "Validating $f"; head -5 "$f"; done

Behavior Guidelines

  • Template loading is required when context detection confidence exceeds 0.8
  • Auditors MUST verify that all invariants in the template are tested
  • Custom template sections may optionally be added for novel protocol designs

References

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

Repository stars
46
Repository forks
6
7-day trend score
19

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

Extension points

  • templateCustom templates for code generation

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/protocol-templates/badge)](https://verified-skill.com/skills/0x-shashi/web3-audit-skills/protocol-templates)

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