revertwtf-parser-decoder
Skill4 starsChanged 6 months agoMITView on GitHub
Modify or debug revert.wtf normalization, revert-data extraction, trace extraction, ABI decoding, catalog matching, selector lookup, or ERC-4337 decoding behavior.
In this repository7 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Use this skill when working in packages/parser, packages/selectors, packages/aa, or shared result types in packages/core.
- Distinctive: line 14
Keep live lookups out of parser paths.
- Very specific: line 15
No website-only explanation logic in packages/parser.
- Distinctive: line 18
Keep full catalog-backed surfaces on server/API boundaries.
- Very specific: line 19
Use package subpaths for small imports: @revertwtf/parser/decode, @revertwtf/parser/explain, @revertwtf/catalog/panic, @revertwtf/aa/parse, …
- Distinctive: line 42
Keep the behavioral change narrow and covered by tests.
- Distinctive: line 43
Add fixtures for new provider shapes or revert payloads.
- Distinctive: line 44
Avoid changing match priority globally unless a test proves the previous order was wrong.
- Distinctive: line 55
When the local runner allows it:
- Very specific: line 63
If pnpm/Vitest fails with spawn EPERM, report that and include direct tsc plus a targeted Node smoke check.
≈ “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 Parser And Decoder Skill
Use this skill when working in packages/parser, packages/selectors, packages/aa, or shared result types in packages/core.
Boundaries
- Parser behavior must stay reproducible from package data and caller-provided input.
- Keep live lookups out of parser paths.
- No website-only explanation logic in
packages/parser. - Website, CLI, MCP, and packages should consume the same parser/catalog results.
- Preserve evidence-based ranking. Specific decoded evidence should beat broad wrappers.
- Keep full catalog-backed surfaces on server/API boundaries. Do not make a browser client download the catalog for one decode/search.
- Use package subpaths for small imports:
@revertwtf/parser/decode,@revertwtf/parser/explain,@revertwtf/catalog/panic,@revertwtf/aa/parse,@revertwtf/aa/explain.
Parser Map
packages/parser/src/normalizeError.tscollects messages, codes, error names, revert data, method/action hints, and trace frames.packages/parser/src/extractRevertData.tsfinds revert bytes in nested provider and simulator payloads.packages/parser/src/extractTraceFailures.tssummarizes failed call frames.packages/parser/src/decodeRevertData.tsdecodes SolidityError(string),Panic(uint256), provided ABI errors, and selector catalog matches.packages/parser/src/matchCatalog.tsindexes and matches catalog patterns.packages/parser/src/explain.tsranks decoded results, trace evidence, and catalog matches into user-facing explanations.packages/parser/src/browser*.ts,packages/catalog/src/browser.ts, andpackages/aa/src/browser*.tsprotect browser-condition imports from accidental full-data bundles.packages/aa/src/handles ERC-4337 AAxx and EntryPointFailedOp/FailedOpWithRevert.
Workflow
- Reproduce with a fixture or minimal object.
- Decide whether the issue belongs in:
- normalization/extraction,
- revert decoding,
- catalog matching,
- AA decoding,
- selector data,
- or catalog entry data.
- Keep the behavioral change narrow and covered by tests.
- Add fixtures for new provider shapes or revert payloads.
- Avoid changing match priority globally unless a test proves the previous order was wrong.
Tests And Checks
node node_modules/typescript/bin/tsc -p packages/core/tsconfig.json --noEmit
node node_modules/typescript/bin/tsc -p packages/selectors/tsconfig.json --noEmit
node node_modules/typescript/bin/tsc -p packages/parser/tsconfig.json --noEmit
node node_modules/typescript/bin/tsc -p packages/aa/tsconfig.json --noEmitWhen the local runner allows it:
pnpm --filter @revertwtf/parser test
pnpm --filter @revertwtf/aa test
pnpm --filter @revertwtf/selectors testIf pnpm/Vitest fails with spawn EPERM, report that and include direct tsc plus a targeted Node smoke check.
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.

