agentleFS
mrtdlgcmrtdlgc/revertwtf/skills/revertwtf-catalog-entry/SKILL.md

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.

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
  1. Distinctive:

    Use this skill when the task is to add, fix, rename, deprecate, or verify specific entries in the revert.wtf error catalog.

    line 9
  2. Very specific:

    Treat packages/catalog/src/data/shards/ as the source of truth.

    line 13
  3. Very specific:

    Keep source IDs stable. Put display names, aliases, lifecycle labels, legacy/sunsetting/renamed notes, and source references in …

    line 14
  4. Distinctive:

    Keep catalog, parser, MCP, CLI, and web result paths package-owned and reproducible.

    line 15
  5. Distinctive:

    Prefer narrow evidence over broad matching.

    line 16
  6. Very specific:

    Use requires for guard context, especially broad JSON-RPC codes like -32000 or generic provider messages.

    line 17
  7. Very specific:

    Add a CatalogEntry with:

    line 28
  8. Very specific:

    Add or update fixtures under fixtures/<layer-or-source>/ when practical.

    line 37
  9. Distinctive:

    Add parser or catalog tests when behavior could regress.

    line 38
  10. Very specific:

    Use selector for known custom error selectors.

    line 42
  11. Very specific:

    Use json_path for structured provider/MCP/facilitator fields such as code, status, invalidReason, or errorReason.

    line 43
  12. Very specific:

    Use aa_code for ERC-4337 AAxx codes.

    line 44
  13. Distinctive:

    Use exact regexes for revert reason strings generated from source code.

    line 45
  14. Distinctive:

    Use broad substrings only when the phrase is distinctive enough across the whole catalog.

    line 46
  15. Distinctive:

    Run the smallest useful set:

    line 50
  16. Distinctive:

    If the change touches parser behavior, also run parser tests when the local environment allows it:

    line 60

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 requires for guard context, especially broad JSON-RPC codes like -32000 or generic provider messages.

Workflow

  1. Inspect the raw error and classify it:
    • layer: evm, rpc, provider, wallet, library, account_abstraction, protocol, or unknown.
    • source: ecosystem/library/provider/protocol id.
    • category: stable free-form bucket such as revert, json_rpc, gas_estimation, facilitator_verify, or signature.
  2. 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/.
  3. Add a CatalogEntry with:
    • globally unique kebab-case id
    • human title
    • tight patterns
    • concise summary
    • concrete likelyCauses
    • action-oriented nextSteps
    • honest retryHelpful, increasingGasHelpful, and confidence
    • source-backed references
  4. Add or update fixtures under fixtures/<layer-or-source>/ when practical.
  5. Add parser or catalog tests when behavior could regress.

Pattern Choices

  • Use selector for known custom error selectors.
  • Use json_path for structured provider/MCP/facilitator fields such as code, status, invalidReason, or errorReason.
  • Use aa_code for 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 --noEmit

If the change touches parser behavior, also run parser tests when the local environment allows it:

pnpm --filter @revertwtf/parser test

On 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.