← Back to Skills Marketplace
mrtdlgc

revert.wtf Parser And Decoder Skill

by mrtdlgc · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
18
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install revertwtf-parser-decoder
Description
Modify or debug revert.wtf normalization, revert-data extraction, trace extraction, ABI decoding, catalog matching, selector lookup, or ERC-4337 decoding beh...
README (SKILL.md)

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.ts collects messages, codes, error names, revert data, method/action hints, and trace frames.
  • packages/parser/src/extractRevertData.ts finds revert bytes in nested provider and simulator payloads.
  • packages/parser/src/extractTraceFailures.ts summarizes failed call frames.
  • packages/parser/src/decodeRevertData.ts decodes Solidity Error(string), Panic(uint256), provided ABI errors, and selector catalog matches.
  • packages/parser/src/matchCatalog.ts indexes and matches catalog patterns.
  • packages/parser/src/explain.ts ranks decoded results, trace evidence, and catalog matches into user-facing explanations.
  • packages/parser/src/browser*.ts, packages/catalog/src/browser.ts, and packages/aa/src/browser*.ts protect browser-condition imports from accidental full-data bundles.
  • packages/aa/src/ handles ERC-4337 AAxx and EntryPoint FailedOp/FailedOpWithRevert.

Workflow

  1. Reproduce with a fixture or minimal object.
  2. Decide whether the issue belongs in:
    • normalization/extraction,
    • revert decoding,
    • catalog matching,
    • AA decoding,
    • selector data,
    • or catalog entry data.
  3. Keep the behavioral change narrow and covered by tests.
  4. Add fixtures for new provider shapes or revert payloads.
  5. 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 --noEmit

When the local runner allows it:

pnpm --filter @revertwtf/parser test
pnpm --filter @revertwtf/aa test
pnpm --filter @revertwtf/selectors test

If pnpm/Vitest fails with spawn EPERM, report that and include direct tsc plus a targeted Node smoke check.

Usage Guidance
Safe to install for developers working on revert.wtf parser and decoder code. It is a repo-specific workflow guide, so users should expect it to influence coding and testing choices in the named packages, but it does not grant extra runtime authority or perform actions by itself.
Capability Assessment
Purpose & Capability
The stated purpose matches the artifact: it provides guidance for normalization, revert-data extraction, ABI decoding, catalog matching, selector lookup, and ERC-4337 decoding work.
Instruction Scope
Instructions are scoped to specific package areas, reproducible parser behavior, avoiding live lookups in parser paths, and running relevant type checks/tests.
Install Mechanism
The package contains only a single non-executable SKILL.md file with no declared dependencies, scripts, or install-time behavior.
Credentials
The requested repo access and test commands are proportionate to debugging parser/decoder code and do not request broad local indexing, secrets, network credentials, or unrelated system access.
Persistence & Privilege
No persistence, background workers, privilege escalation, credential handling, destructive actions, or automatic mutation behavior is present.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install revertwtf-parser-decoder
  3. After installation, invoke the skill by name or use /revertwtf-parser-decoder
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release of revertwtf-parser-decoder. - Provides normalization, revert-data extraction, trace extraction, ABI decoding, catalog matching, selector lookup, and ERC-4337 decoding utilities. - Enforces reproducibility and avoids live lookups or website-only logic in parsing paths. - Ensures CLI, website, MCP, and packages use consistent parser/catalog results. - Includes clear boundaries for evidence-based result ranking and catalog surface exposure. - Documents parser map, workflow for debugging/feature addition, and testing/check recommendations.
Metadata
Slug revertwtf-parser-decoder
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is revert.wtf Parser And Decoder Skill?

Modify or debug revert.wtf normalization, revert-data extraction, trace extraction, ABI decoding, catalog matching, selector lookup, or ERC-4337 decoding beh... It is an AI Agent Skill for Claude Code / OpenClaw, with 18 downloads so far.

How do I install revert.wtf Parser And Decoder Skill?

Run "/install revertwtf-parser-decoder" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is revert.wtf Parser And Decoder Skill free?

Yes, revert.wtf Parser And Decoder Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does revert.wtf Parser And Decoder Skill support?

revert.wtf Parser And Decoder Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created revert.wtf Parser And Decoder Skill?

It is built and maintained by mrtdlgc (@mrtdlgc); the current version is v0.1.0.

💬 Comments