revertwtf-catalog-error-enrichment
Skill4 starsChanged 6 months agoMITView on GitHub
Run evidence-locked enrichment passes over existing revert.wtf catalog errors, preserving good entries while improving generic explanations, actions, references, and helper metadata.
In this repository7 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
29 rules. About 0 are common, 19 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use this skill when improving existing catalog coverage at scale: better explanations, sharper likely causes, more useful next steps, …
- Distinctive: line 15
Prefer this source ladder:
- Distinctive: line 24
Before editing, classify entries:
- Distinctive: line 41
Use one category, source, or shard family at a time.
- Very specific: line 46
Check helper packages when behavior is duplicated, especially packages/aa, packages/parser, and packages/search.
- Very specific: line 48
Search/open/read official docs and code before writing.
- Very specific: line 52
Keep id, source, and matching patterns stable unless the old meaning is wrong.
- Very specific: line 57
Add references at entry level when the entry has its own explanation.
- Distinctive: line 59
Do a source-and-semantics sample audit after deterministic passes.
- Very specific: line 61
If AA/RPC/provider code meanings change, update helper metadata and tests.
- Distinctive: line 64
Keep shard JSON, generated dist data, and helper package output synchronized.
- Distinctive: line 65
Run the duplicate audit after adding entries or changing selectors/patterns.
- Very specific: line 67
Use getEntry() or explain() runtime checks to confirm the improved entry appears with references.
- Distinctive: line 83
Use targeted smoke checks for the enriched lane:
- Distinctive: line 91
Do not use an LLM as the source of truth.
- Distinctive: line 92
Do not copy long documentation text.
- Distinctive: line 93
Do not overwrite hand-authored entries that are already sharper than the new source.
- Distinctive: line 94
Do not add broad substring patterns when a selector, AA code, JSON code, exact reason regex, or guarded match is available.
- Distinctive: line 95
Do not claim contract-specific semantics from a selector name alone.
- Distinctive: line 96
Keep generated Sourcify entries modest unless contract attribution or source inspection supports stronger meaning.
- Very specific: line 97
Keep classification evidence scoped to the error name or exact reason string.
- Distinctive: line 100
Run seeded samples so repeated QA does not keep checking the same first 100 entries.
- Very specific: line 101
Avoid substring matches that cross semantic boundaries: sequencer is not a nonce sequence, data feed is not a fee, SafeERC20 is not a fee, …
- Very specific: line 102
Prefer missing-state for uninitialized, not initialized, and not yet registered.
- Very specific: line 103
Treat generic-looking verbs in category context carefully: a paymaster Deposit failed is account-abstraction/EntryPoint deposit forwarding, …
- Distinctive: line 104
If a sampled GitHub source misses the exact string, search release tags or stable branch refs before deleting or weakening the entry.
- Distinctive: line 106
Treat full-catalog suspicious-family counts as a triage queue, not a release blocker by itself.
- Distinctive: line 107
When a 100-entry sample shows semantic drift, tighten the script first, rerun the enrichment pass, then re-audit before calling the lane …
- Distinctive: line 122
Treat this backlog as working order, not a promise to rewrite every entry.
≈ “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 Catalog And Error Enrichment Skill
Use this skill when improving existing catalog coverage at scale: better explanations, sharper likely causes, more useful next steps, corrected version-specific meanings, and real source references.
Core Principle
Evidence-locked enrichment means every stronger explanation must be backed by opened/read source material or existing source code. Keep good entries. Do not rewrite entries merely to sound smoother.
Prefer this source ladder:
- Standards and specs: EIPs/ERCs, JSON-RPC specs, ERC-4337 docs, OpenRPC, Solidity docs.
- Official implementation docs: provider docs, wallet docs, protocol docs, official runbooks.
- Official code: contract repositories, SDK source, ABI/error declarations, verified source.
- Generated evidence: Sourcify selector and verified-contract attribution, only when semantics are not over-claimed.
Entry Scoring
Before editing, classify entries:
keep: already has specific summary, concrete likely causes, actionable next steps, accurate helpfulness flags, and useful references.enrich: generic summary, missing/weak references, vague causes, vague "retry" advice, version ambiguity, or helper metadata drift.split: one entry mixes version-specific meanings or different products.sync: catalog is good but parser/AA/helper package metadata disagrees.
Generic signals:
summarylooks like<source> custom error <signature>.summarylooks like<source> revert reason string: <reason>.summarystarts with broad generated text such asSourcify-verified custom error.nextStepssay only "inspect source", "retry", or "decode args" when docs provide better actions.
Workflow
- Define the enrichment lane:
- Use one category, source, or shard family at a time.
- Examples:
erc-4337,rpc-provider,sourcify-signatures/gas,chainlink,lending,bridge.
- Inventory current coverage:
- Read
packages/catalog/src/data/shards/.... - Check
packages/catalog/src/sources.ts. - Check helper packages when behavior is duplicated, especially
packages/aa,packages/parser, andpackages/search.
- Read
- Gather sources:
- Search/open/read official docs and code before writing.
- Record the exact source URL in
referencesor source-levelreferences. - For versioned behavior, keep version names in prose and references.
- Patch entries:
- Keep
id,source, and matching patterns stable unless the old meaning is wrong. - Tighten
summaryto explain what failed, not just what selector matched. - Make
likelyCausesdescribe real branches, fields, state, policy, balances, gas, nonce, or signature causes. - Make
nextStepsoperational: what to inspect, recompute, regenerate, fund, decode, trace, or change. - Set
retryHelpfulandincreasingGasHelpfulhonestly. - Add
referencesat entry level when the entry has its own explanation; usesourceReferencesviasources.tsfor source-wide context. - For generated official-source and Sourcify entries, run
pnpm catalog:enrich-generatedafter generation to replace generic selector/reason boilerplate with conservative category-family guidance. - Do a source-and-semantics sample audit after deterministic passes. Exact source hits are necessary but not sufficient; also inspect whether the chosen failure family matches the actual error/reason meaning.
- Keep
- Sync helper behavior:
- If AA/RPC/provider code meanings change, update helper metadata and tests.
- Example: AA94 is
gas values overflow; AA96 isinvalid aggregator.
- Regenerate and verify:
- Keep shard JSON, generated dist data, and helper package output synchronized.
- Run the duplicate audit after adding entries or changing selectors/patterns.
- Spot-check product output:
- Use
getEntry()orexplain()runtime checks to confirm the improved entry appears with references.
- Use
Verification
Preferred verification:
node scripts/build-catalog-data.mjs --generate --dist --check
pnpm validate:catalog
node scripts/check-catalog-duplicates.mjs --fail-on=id,same-source-selector
pnpm catalog:audit-generated-sample
pnpm catalog:audit-generated-sample -- --seed broad-pass-2
pnpm --filter @revertwtf/catalog typecheck
pnpm --filter @revertwtf/parser typecheckUse targeted smoke checks for the enriched lane:
node --input-type=module -e "const { getEntry } = await import('./packages/catalog/dist/index.js'); console.log(getEntry('aa23-reverted-or-oog')?.references?.length)"Quality Bar
- Do not use an LLM as the source of truth.
- Do not copy long documentation text; paraphrase from sources.
- Do not overwrite hand-authored entries that are already sharper than the new source.
- Do not add broad substring patterns when a selector, AA code, JSON code, exact reason regex, or guarded match is available.
- Do not claim contract-specific semantics from a selector name alone.
- Keep generated Sourcify entries modest unless contract attribution or source inspection supports stronger meaning.
- Keep classification evidence scoped to the error name or exact reason string. Do not let source titles or protocol labels such as
Chainlink,asset,operator, orclaimsteer semantics by themselves. - Use priority and category-aware classification for broad terms. Common traps:
pricecan mean oracle or slippage,assetcan mean vault or fees,delegate/executecan mean account-abstraction simulation rather than governance,claim/operatorare often not staking, andSenderNotAllowed/not allowedstyle names should usually be access checks before category fallback. - Audit scripts should distinguish empty issue arrays from real findings; a clean sampled entry must not be counted suspicious just because it has a
suspiciousfield. - Run seeded samples so repeated QA does not keep checking the same first 100 entries. Treat sampled source misses and sampled product issues as blockers; treat broad product-lint examples as a triage queue that still needs human/source inspection.
- Avoid substring matches that cross semantic boundaries:
sequenceris not a noncesequence,data feedis not a fee,SafeERC20is not a fee, andtimelockby itself is not a deadline. - Prefer missing-state for
uninitialized,not initialized, andnot yet registered; prefer deadline only when the token/reason actually says expired, stale, delayed, not passed, not yet, cooldown, maturity, or a similar timing condition. - Treat generic-looking verbs in category context carefully: a paymaster
Deposit failedis account-abstraction/EntryPoint deposit forwarding, not ERC-4626 vault share accounting. - If a sampled GitHub source misses the exact string, search release tags or stable branch refs before deleting or weakening the entry; pin the reference to the tag/ref that actually contains the audited string.
- Full-catalog source audits should rerun freshly before release. Treat a dead raw GitHub reference as a hard blocker; if the file moved off
main, pin to the release tag that still contains the exact audited error. - Treat full-catalog suspicious-family counts as a triage queue, not a release blocker by itself. Account-abstraction
validator,delegatecall, recovery timelock, deposit, and withdrawal terms often describe smart-account mechanics, while protocol admin/timelock errors can be legitimate governance entries inside DeFi or derivatives shards. - When a 100-entry sample shows semantic drift, tighten the script first, rerun the enrichment pass, then re-audit before calling the lane done.
Prioritized Backlog
Current high-impact enrichment lanes after the ERC-4337 pilot:
- Core missing-reference cleanup: about 49 entries still lack entry references, mainly
eip-1193,eip-1474,ethers,generic,node,openzeppelin,rpc-provider,solidity,viem,wallet, and a few Uniswap legacy entries. - Sourcify custom errors:
custom_errorhas about 2,968 generic entries out of 3,059. Improve by bucket, adding verified-contract attributions where possible and keeping semantics conservative. - L2 and bridge protocol lanes:
l2has about 2,506 generic entries;bridgeabout 2,122;cross_chainabout 759. Prioritize Arbitrum, zkSync, Morph, Polygon zkEVM, Connext/Everclear, LayerZero, Hyperlane, Wormhole, Axelar, Stargate, and Avalanche Teleporter. - DeFi high-volume lanes:
dexhas about 1,732 generic entries,lendingabout 1,631,derivativesabout 699, andyieldabout 599. Prioritize Uniswap, Balancer, GMX, Pendle, Silo, Morpho, Euler, Aave, Curve, Trader Joe, PancakeSwap, and Reserve. - Asset and tokenization lanes:
rwahas about 1,762 generic entries,stablecoinabout 1,272, andasset_managementabout 406. Prioritize Ondo, Centrifuge, Plume, Frax, Origin Dollar, Sky/MakerDAO, TrueFi, Goldfinch, and Enzyme. - Staking/restaking/oracle lanes:
restakinghas about 1,281 generic entries,stakingabout 1,145,oracleabout 1,064, andliquid_stakingabout 134. Prioritize Lido, Rocket Pool, EigenLayer, Symbiotic, Puffer, Renzo, Kelp, Mellow, Chainlink, Pyth, Redstone, API3, and Tellor. - Account abstraction ecosystem lanes:
account_abstractionstill has about 603 generic entries outside the core AA pilot. Prioritize Alchemy Modular Account, Coinbase Smart Wallet, Biconomy/Nexus, Safe7579, Rhinestone, ZeroDev, and thirdweb. - Source-specific large shards: Chainlink (~742 generic), GMX (~655), Pendle (~561), Origin Dollar (~498), Frax (~471), Lido (~450), Connext (~446), Rocket Pool (~434), Enzyme (~406), Reserve (~389), Silo v2 (~367), Arbitrum (~364), thirdweb (~363), OpenZeppelin (~350), Morph (~339), Term Finance (~333), Kelp (~332), and zkSync (~331).
Treat this backlog as working order, not a promise to rewrite every entry. Start each lane with a small pilot, validate quality, then scale.
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.

