← 返回
未分类 中文

revert.wtf Catalog Entry Skill

Add or update precise revert.wtf catalog entries, fixtures, source metadata, and matcher tests for one or a small set of EVM/RPC/provider/wallet/protocol err...
为单个或少量 EVM/RPC/provider/wallet/protocol 错误添加或更新精准的 revert.wtf 目录条目、fixtures、源元数据和匹配器测试
mrtdlgc
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 164
下载
💾 0
安装
1
版本
#latest

概述

revert.wtf Catalog Entry Skill

Use this skill when the task is to add, fix, rename, deprecate, or verify specific entries in the revert.wtf error catalog.

Ground Rules

  • Treat packages/catalog/src/data/shards/ as the source of truth.
  • Keep source IDs stable. Put display names, aliases, lifecycle labels, legacy/sunsetting/renamed notes, and source references in packages/catalog/src/sources.ts.
  • Keep catalog, parser, MCP, CLI, and web result paths package-owned and reproducible.
  • Prefer narrow evidence over broad matching. Avoid plain substrings for generated custom errors when a selector exists.
  • Use requires for guard context, especially broad JSON-RPC codes like -32000 or generic provider messages.

Workflow

  1. Inspect the raw error and classify it:
    • layer: evm, rpc, provider, wallet, library, account_abstraction, protocol, or unknown.
    • source: ecosystem/library/provider/protocol id.
    • category: stable free-form bucket such as revert, json_rpc, gas_estimation, facilitator_verify, or signature.
  2. Choose the shard:
    • Core standards/providers go under packages/catalog/src/data/shards/core/.
    • Protocol/app/ecosystem contracts go under packages/catalog/src/data/shards/ecosystems/.
  3. Add a CatalogEntry with:
    • globally unique kebab-case id
    • human title
    • tight patterns
    • concise summary
    • concrete likelyCauses
    • action-oriented nextSteps
    • honest retryHelpful, increasingGasHelpful, and confidence
    • source-backed references
  4. Add or update fixtures under fixtures// when practical.
  5. Add parser or catalog tests when behavior could regress.

Pattern Choices

  • Use selector for known custom error selectors.
  • Use json_path for structured provider/MCP/facilitator fields such as code, status, invalidReason, or errorReason.
  • Use aa_code for ERC-4337 AAxx codes.
  • Use exact regexes for revert reason strings generated from source code.
  • Use broad substrings only when the phrase is distinctive enough across the whole catalog.

Verification

Run the smallest useful set:

node scripts/build-catalog-data.mjs --generate --dist --check
node --experimental-strip-types scripts/validate-catalog.ts
node scripts/check-catalog-duplicates.mjs --fail-on=id,same-source-selector
node node_modules/typescript/bin/tsc -p packages/catalog/tsconfig.json --noEmit
node node_modules/typescript/bin/tsc -p packages/parser/tsconfig.json --noEmit

If the change touches parser behavior, also run parser tests when the local environment allows it:

pnpm --filter @revertwtf/parser test

On this Windows workspace, recursive pnpm/Vitest or Next commands may fail with spawn EPERM. If that happens, fall back to direct tsc and targeted Node smoke checks, and report the limitation.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-29 14:18

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

revert.wtf Parser And Decoder Skill

mrtdlgc
修改或调试 revert.wtf 规范化、revert-data 提取、trace 提取、ABI 解码、目录匹配、选择器查询或 ERC-4337 解码行为
★ 0 📥 201

revert.wtf MCP Server Skill

mrtdlgc
维护或使用只读的 revert.wtf MCP 服务器,提供受限的目录搜索、解析器、选择器查询、AA 解释、x402 条目及 Blocksco 功能。
★ 0 📥 202

revert.wtf Catalog Research Skill

mrtdlgc
Perform broader source-backed catalog enrichment for new EVM ecosystems, protocols, providers, standards, or deprecated/
★ 0 📥 201