← 返回 Skills 市场
mrtdlgc

revert.wtf Parser And Decoder Skill

作者 mrtdlgc · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
18
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install revertwtf-parser-decoder
功能描述
Modify or debug revert.wtf normalization, revert-data extraction, trace extraction, ABI decoding, catalog matching, selector lookup, or ERC-4337 decoding beh...
使用说明 (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.

安全使用建议
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install revertwtf-parser-decoder
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /revertwtf-parser-decoder 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug revertwtf-parser-decoder
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 18 次。

如何安装 revert.wtf Parser And Decoder Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install revertwtf-parser-decoder」即可一键安装,无需额外配置。

revert.wtf Parser And Decoder Skill 是免费的吗?

是的,revert.wtf Parser And Decoder Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

revert.wtf Parser And Decoder Skill 支持哪些平台?

revert.wtf Parser And Decoder Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 revert.wtf Parser And Decoder Skill?

由 mrtdlgc(@mrtdlgc)开发并维护,当前版本 v0.1.0。

💬 留言讨论