← Back to Skills Marketplace
mrtdlgc

revert.wtf Agent API 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-agent-api
Description
Use revert.wtf safely from agents, tools, browsers, or integrations through bounded HTTP APIs, MCP tools, and lightweight package subpaths without downloadin...
README (SKILL.md)

revert.wtf Agent API Skill

Use this skill when an agent needs to explain an EVM/RPC/provider/wallet/AA/x402 error, resolve a selector, search the catalog, or integrate revert.wtf into a product.

Default Choice

  • Prefer MCP when the agent runtime supports MCP.
  • Prefer the website HTTP API when calling the hosted service from an agent or app backend.
  • Prefer package subpaths for local code.
  • Never import the full catalog-backed parser into browser/client bundles for one-off searches.

MCP Tools

Use bounded tools:

  • explain_error for raw errors, traces, JSON strings, revert bytes, and x402 payloads.
  • search_catalog for catalog discovery. It returns summaries with limit, offset, totalMatches, and hasMore.
  • get_error only after search_catalog returns a specific id.
  • lookup_selector for 4-byte selectors.
  • decode_revert_data for raw revert bytes.
  • explain_aa_error for AAxx and EntryPoint failures.
  • search_blockscout_chains and get_blockscout_chain for Blockscout registry checks.

Do not request or construct an all-catalog dump. Page through summaries only when the user explicitly needs breadth.

Hosted HTTP API

POST JSON to the public web API from a server/agent context:

curl -s https://revert.wtf/api/explain \
  -H "content-type: application/json" \
  -d '{"raw":"{\"code\":-32000,\"message\":\"nonce too low\"}"}'

Useful endpoints:

  • POST /api/explain with { "raw": "..." }
  • POST /api/revert-decode with { "data": "0x...", "abiText": "[...]" }
  • POST /api/aa-decode with { "raw": "AA23 reverted or OOG" }
  • POST /api/selector with { "selector": "0x08c379a0" }
  • POST /api/search with { "query": "AA23", "limit": 20, "offset": 0 }

Inputs are capped for parsing. Do not paste private keys, seed phrases, access tokens, unreleased exploit details, or personal data.

Use /api/search for discovery and /api/explain for a specific raw failure. Search returns summaries; fetch or explain the selected item instead of asking for broad payloads.

Package Imports

Use precise subpaths:

import { explain } from "@revertwtf/parser/explain"; // server/API path
import { decodeRevertData } from "@revertwtf/parser/decode";
import { describePanic } from "@revertwtf/catalog/panic";
import { listKnownAACodes } from "@revertwtf/aa/parse";
import { searchCatalog } from "@revertwtf/search"; // server-side SQLite FTS

Browser/client bundles should use small helpers or call an API route. Full-data surfaces such as @revertwtf/catalog, @revertwtf/parser/explain, and @revertwtf/aa/explain belong on a server/API boundary.

For browser apps, prefer the lightweight SDK:

import { createRevertClient } from "@revertwtf/client";

const revert = createRevertClient();
const result = await revert.searchCatalog({ query: "x402 payment required", limit: 5 });
Usage Guidance
Safe to install for revert.wtf-assisted blockchain error debugging. Avoid sending secrets or sensitive transaction details to hosted APIs, and prefer the bounded MCP/API calls described by the skill.
Capability Tags
cryptorequires-walletrequires-paid-servicerequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The stated purpose is explaining EVM/RPC/provider/wallet/account-abstraction errors and selector/catalog lookup; the artifact’s API, MCP, and package-import guidance matches that purpose.
Instruction Scope
Instructions are bounded around specific revert.wtf endpoints and MCP tools, and explicitly warn against broad catalog dumps and submitting private keys, seed phrases, access tokens, unreleased exploit details, or personal data.
Install Mechanism
The package contains only a single non-executable SKILL.md file, with no scripts, dependencies, or install-time actions.
Credentials
The skill involves crypto-related debugging and hosted API calls, so users should treat submitted error payloads as data shared with an external service; this is disclosed and purpose-aligned.
Persistence & Privilege
No persistence, privilege escalation, background worker, credential-store access, or local indexing behavior is present in the artifact.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install revertwtf-agent-api
  3. After installation, invoke the skill by name or use /revertwtf-agent-api
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
- Initial release of revertwtf-agent-api skill. - Provides safe use of revert.wtf via bounded HTTP APIs, MCP tools, and package subpaths. - Introduces MCP tools for explaining errors, selector resolution, catalog search, and Blockscout chain checks. - Documents safe usage patterns for hosted HTTP API endpoints. - Guides against large bundle imports in browser/client environments—prefer small helpers or API calls. - Includes precise package import recommendations for both server and browser contexts.
Metadata
Slug revertwtf-agent-api
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is revert.wtf Agent API Skill?

Use revert.wtf safely from agents, tools, browsers, or integrations through bounded HTTP APIs, MCP tools, and lightweight package subpaths without downloadin... It is an AI Agent Skill for Claude Code / OpenClaw, with 18 downloads so far.

How do I install revert.wtf Agent API Skill?

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

Is revert.wtf Agent API Skill free?

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

Which platforms does revert.wtf Agent API Skill support?

revert.wtf Agent API Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created revert.wtf Agent API Skill?

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

💬 Comments