revertwtf-catalog-entry
Skill4 starsChanged 6 months agoMITView on GitHub
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 errors.
In this repository7 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 8 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use this skill when the task is to add, fix, rename, deprecate, or verify specific entries in the revert.wtf error catalog.
- Very specific: line 13
Treat packages/catalog/src/data/shards/ as the source of truth.
- Very specific: line 14
Keep source IDs stable. Put display names, aliases, lifecycle labels, legacy/sunsetting/renamed notes, and source references in …
- Distinctive: line 15
Keep catalog, parser, MCP, CLI, and web result paths package-owned and reproducible.
- Distinctive: line 16
Prefer narrow evidence over broad matching.
- Very specific: line 17
Use requires for guard context, especially broad JSON-RPC codes like -32000 or generic provider messages.
- Very specific: line 28
Add a CatalogEntry with:
- Very specific: line 37
Add or update fixtures under fixtures/<layer-or-source>/ when practical.
- Distinctive: line 38
Add parser or catalog tests when behavior could regress.
- Very specific: line 42
Use selector for known custom error selectors.
- Very specific: line 43
Use json_path for structured provider/MCP/facilitator fields such as code, status, invalidReason, or errorReason.
- Very specific: line 44
Use aa_code for ERC-4337 AAxx codes.
- Distinctive: line 45
Use exact regexes for revert reason strings generated from source code.
- Distinctive: line 46
Use broad substrings only when the phrase is distinctive enough across the whole catalog.
- Distinctive: line 50
Run the smallest useful set:
- Distinctive: line 60
If the change touches parser behavior, also run parser tests when the local environment allows it:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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/<layer-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 --noEmitIf the change touches parser behavior, also run parser tests when the local environment allows it:
pnpm --filter @revertwtf/parser testOn 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

