add-jsonrpc-method

add-jsonrpc-method is a skill for Claude Code, Codex from evmts/tevm. It costs 0 tokens per session (801 once invoked), scanned A, original, MIT.

A workflow for adding a JSON-RPC method to the Tevm client. JSON-RPC is a standard way for programs to request actions from a blockchain node.

In plain words
What is it for?
Use it to add and test Ethereum, Anvil, debugging, or Tevm RPC methods and expose matching client actions.
Why use it?
It keeps the new method aligned with the relevant Ethereum, Anvil, Geth, or Tevm specification and requires types, documentation, implementation, and tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Good fit Use it to add and test Ethereum, Anvil, debugging, or Tevm RPC methods and expose matching client actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/evmts/tevm/add-jsonrpc-method
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add evmts/tevm --skill add-jsonrpc-method
Clone the repo
git clone --depth 1 https://github.com/evmts/tevm

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-jsonrpc-method

README.md
[![agentmods](https://agentmods.dev/badge/skills/evmts/tevm/add-jsonrpc-method/github.svg)](https://agentmods.dev/skills/evmts/tevm/add-jsonrpc-method)
Your own site
<a href="https://agentmods.dev/skills/evmts/tevm/add-jsonrpc-method"><img src="https://agentmods.dev/badge/skills/evmts/tevm/add-jsonrpc-method/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-jsonrpc-method

Your own site · 80×15
<a href="https://agentmods.dev/skills/evmts/tevm/add-jsonrpc-method"><img src="https://agentmods.dev/badge/skills/evmts/tevm/add-jsonrpc-method.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 801 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00801
Opus 5.5 $0.00000 $0.00320
Sonnet 5.5 $0.00000 $0.00160
Haiku 4.5 $0.00000 $0.00080

Measured 2mo ago against content hash 11a092f2eed6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-jsonrpc-method scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (PACKAGE.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

workflows/add-jsonrpc-method/SKILL.md · 55 lines

What it actually says

Add a JSON-RPC method

Input: a method name (eth_*, anvil_*, debug_*, or tevm_*), optionally its spec and the viem-style action name to expose on the client.

The whole JSON-RPC API lives in packages/actions. Follow the repository's documentation-driven order (CLAUDE.md): types and JSDoc first, a happy-path test, the implementation, then the full suite. Match the house pattern of a neighboring method in the same namespace (one file per item: the params type, the result type, the handler, the JSON-RPC procedure, the spec).

  1. Read the spec. For eth_* use ethereum/execution-apis; for anvil_* use the anvil reference; for debug_* use geth's debug namespace. Decline a method whose semantics you cannot pin to a spec.
  2. Types. Add <Method>Params.ts, <Method>Result.ts, and the <Method>JsonRpcRequest/Response/Procedure types beside the neighboring method. Full JSDoc with a complete @example that imports from tevm and runs; no ... placeholders.
  3. Happy-path test. Add <method>Handler.spec.ts against a real createTevmNode() (no mocks). If the method reads chain state, use the snapshot transport from @tevm/test-utils so the test replays without network.
  4. Implementation. <method>Handler.js in JavaScript with JSDoc, using the internal ethereumjs API through the node; <method>Procedure.js converting hex JSON-RPC params to the handler's params. Debug logging through the node's logger where a Logger is available.
  5. Register the procedure in the request-handler dispatch table and, if the input named a client method, add the action to packages/memory-client and the decorator in packages/decorators. Update every request, response, params, result, handler, procedure, request-handler, and method-matrix union that represents neighboring methods; do not leave a method reachable through only one dispatch path.
  6. Barrels. Re-export every new symbol by name through each index.js up to packages/actions/src/index.js, then tevm/actions/index.ts and, for client methods, tevm/memory-client/index.ts.
  7. Regenerate the committed tevm emit (//tevm:dist --write, //tevm:types --write).
  8. Docs. Add the method to the JSON-RPC reference page under docs/node/pages with one example.
  9. Changeset. minor for the packages touched, one sentence naming the method.
  10. Add a wire-contract test through the public JSON-RPC procedure or transport. Assert the exact encoded response and prove JSON.stringify(response) succeeds. No Promise, bigint, typed array, Error, or undefined may cross the boundary. Quantities are minimal hex, byte data is even-length, fixed words are left-padded, and spec-nullable fields use null.
  11. Cover the method's negative or alternate form and assert its stable error class and numeric JSON-RPC code. When parity with Anvil/geth/viem is claimed, name the reference fixture in the test.
  12. Run the actions test suite. Every test in the package passes, not only the new one.

PR title: ✨ feat(actions): add <method>. Body: what the method does, the spec link, and the packages it touches. Do not touch unrelated handlers.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 55 lines · 0 tokens per session scan A 11a092f2eed6

Subscribe to this mod's changes

add-jsonrpc-method is a skill published in the GitHub repository evmts/tevm (449 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 801 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.

Related

add-jsonrpc-method compared with skills from other repositories

add-jsonrpc-method next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-jsonrpc-methodevmts/tevmSkill4493d agoMITA0Claude Code, Codex
foundry-testingPaulRBerg/foundry-templateSkill6421mo agoMITA64Codex
nestjs-expertfindscripter/everything-skillsSkill122d agononeA123Claude Code
unit-testLuuOW/meridian-mcpSkill01mo agoMITA57Claude Code, Codex
stripe-projectse2b-dev/E2BSkill15ktodayApache-2.0A51Claude Code, Codex
sanity-best-practicesvercel/eveSkill6.1kyesterdayApache-2.0A153Claude Code, Codex
ax-go-flowax-llm/axSkill3.0ktodayApache-2.0A43Claude Code, Codex