0x-shashi/web3-audit-skills/token-analyzer

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

Trust tier 2
  • community
LLM review pending
Source check pending

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

Analyze ERC20/ERC721/ERC1155 token implementations for non-standard behavior, fee-on-transfer mechanics, rebasing logic, blacklists, pausability, and integration risks. Use when reviewing protocols that interact with external tokens or implementing token-related features.

Install

npx vskill@latest install 0x-shashi/web3-audit-skills/token-analyzer

SKILL.md

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

Token Analyzer Skill

Purpose

Analyze ERC20/ERC721/ERC1155 token implementations for non-standard behavior, fee-on-transfer mechanics, rebasing logic, and integration risks.

Detection Capabilities

  • Fee-on-transfer tokens (deflationary)
  • Rebasing tokens (elastic supply)
  • Tokens with blacklists/whitelists (USDC, USDT)
  • Tokens with pausable transfers
  • Tokens with max transaction limits
  • Missing return values (USDT-style)
  • Tokens with callback hooks (ERC777)
  • Tokens returning false instead of reverting
  • Approval race conditions
  • Double-entry point tokens (tusd-style)
  • Tokens with admin mint/burn

Why This Matters

Over $500M has been lost due to protocol assumptions about "standard" ERC20 behavior. Most tokens deviate from the standard in subtle ways that break DeFi integrations.

Resources

Workflows

Prerequisites

Token analysis requires the Solidity Scanner for EVM token implementations. Non-EVM token analysis may require chain-specific scanner skills.

Validation

To verify token detection capabilities, test against known weird tokens:

solidity
// Example: Detecting fee-on-transfer behavior
interface IERC20 {
function transfer(address to, uint256 amount) external returns (bool);
function balanceOf(address account) external view returns (uint256);
}
// Detection pattern: balance before/after comparison
uint256 balanceBefore = token.balanceOf(address(this));
token.transferFrom(sender, address(this), amount);
uint256 received = token.balanceOf(address(this)) - balanceBefore;
// If received < amount → fee-on-transfer detected
assert(received == amount); // Will fail for deflationary tokens
python
# Validate token categorization
def test_weird_token_detection():
categories = ['fee-on-transfer', 'rebasing', 'blacklist', 'pausable', 'missing-return']
for cat in categories:
assert token_analyzer.can_detect(cat), f"Missing detection: {cat}"
print("All token categories verified")
yaml
# Token risk scoring
token: USDT
risks:
- missing_return_value: true # Does not return bool
- blacklist: true # Admin can freeze addresses
- pausable: true # Admin can pause transfers
risk_level: medium

Behavior Guidelines

  • Token analysis MUST check all integration points where external tokens are received
  • Fee-on-transfer detection is required for any DeFi protocol handling arbitrary ERC20s
  • Rebasing token checks may optionally be skipped if the protocol explicitly disallows them
  • Missing return value handling ALWAYS needs verification (USDT compatibility)

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
62
Repository forks
10
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.

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

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