Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Protocol Templates

ASecurity

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.

61 stars
0 votes
0 copies
0 views
Added 9/19/2026
testingpythongobash

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add 0x-Shashi/WEB3-AUDIT-SKILLS --skill protocol-templates --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Protocol Templates?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Protocol Templates
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0x-shashi-protocol-templates/badge)](https://www.skillsdirectory.com/skills/0x-shashi-protocol-templates)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
id: protocol-templates
title: Protocol Templates Skill
category: advanced
difficulty: intermediate
triggers:
  - protocol template
  - audit template
  - amm template
  - lending template
  - bridge template
  - governance template
related_skills:
  - advanced/context-detection/SKILL.md
  - checklists/SKILL.md
  - patterns/SKILL.md
tags:
  - templates
  - protocol-specific
  - checklists
  - advanced
last_updated: 2026-02-26
description: >-
  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.
---

# 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

| Template | Protocol Type | Key Focus Areas |
|----------|--------------|-----------------|
| [AMM/DEX](amm-dex-template.md) | Uniswap, Curve, Balancer-style | Price manipulation, LP attacks, MEV |
| [Bridge](bridge-template.md) | Cross-chain bridges | Message verification, replay, accounting |
| [Lending](lending-template.md) | Aave, Compound-style | Oracle, liquidation, interest rates |
| [NFT Marketplace](nft-marketplace-template.md) | OpenSea, Blur-style | Order validation, royalties, signatures |
| [Staking](staking-template.md) | Lido, RocketPool-style | Reward 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](../context-detection/SKILL.md) 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

- [Protocol Templates References](references/README.md) - Template customization guides and architecture patterns

Attribution

0x-Shashi0x-Shashi
View sourceMore from 0x-Shashi →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Screen Reader Testing

Practical guide to testing web applications with screen readers for comprehensive accessibility validation.

393431 votes

Python Testing

使用pytest、TDD方法、夹具、模拟、参数化和覆盖率要求的Python测试策略。

2456590 votes

Tdd Workflow

在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。

2456590 votes

Springboot Tdd

使用JUnit 5、Mockito、MockMvc、Testcontainers和JaCoCo进行Spring Boot的测试驱动开发。适用于添加功能、修复错误或重构时。

2456590 votes

Eval Harness

克劳德代码会话的正式评估框架,实施评估驱动开发(EDD)原则

2456590 votes
View all in testing →