/install revertwtf-catalog-entry
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
requiresfor guard context, especially broad JSON-RPC codes like-32000or generic provider messages.
Workflow
- Inspect the raw error and classify it:
layer:evm,rpc,provider,wallet,library,account_abstraction,protocol, orunknown.source: ecosystem/library/provider/protocol id.category: stable free-form bucket such asrevert,json_rpc,gas_estimation,facilitator_verify, orsignature.
- 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/.
- Core standards/providers go under
- Add a
CatalogEntrywith:- globally unique kebab-case
id - human title
- tight
patterns - concise
summary - concrete
likelyCauses - action-oriented
nextSteps - honest
retryHelpful,increasingGasHelpful, andconfidence - source-backed
references
- globally unique kebab-case
- Add or update fixtures under
fixtures/\x3Clayer-or-source>/when practical. - Add parser or catalog tests when behavior could regress.
Pattern Choices
- Use
selectorfor known custom error selectors. - Use
json_pathfor structured provider/MCP/facilitator fields such ascode,status,invalidReason, orerrorReason. - Use
aa_codefor 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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install revertwtf-catalog-entry - 安装完成后,直接呼叫该 Skill 的名称或使用
/revertwtf-catalog-entry触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 18 次。
如何安装 revert.wtf Catalog Entry Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install revertwtf-catalog-entry」即可一键安装,无需额外配置。
revert.wtf Catalog Entry Skill 是免费的吗?
是的,revert.wtf Catalog Entry Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
revert.wtf Catalog Entry Skill 支持哪些平台?
revert.wtf Catalog Entry Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 revert.wtf Catalog Entry Skill?
由 mrtdlgc(@mrtdlgc)开发并维护,当前版本 v0.1.0。