一键导入
nif-scaffold
Generate Rustler NIF boilerplate for a new native module. Creates Cargo.toml, lib.rs, and Elixir wrapper module.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate Rustler NIF boilerplate for a new native module. Creates Cargo.toml, lib.rs, and Elixir wrapper module.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compare ex_ethclient output with reference Ethereum implementations (geth, reth, ethrex) for the same input.
Fetch and summarize an Ethereum Improvement Proposal by number. Use when implementing protocol features or researching EIP specifications.
Run Ethereum official test fixtures (state tests, blockchain tests, MPT tests) against ex_ethclient modules.
Show current implementation phase status, test counts per app, and next steps for ex_ethclient development.
| name | nif-scaffold |
| description | Generate Rustler NIF boilerplate for a new native module. Creates Cargo.toml, lib.rs, and Elixir wrapper module. |
| user-invocable | true |
| allowed-tools | Read, Write, Edit, Bash, Glob |
| argument-hint | <app-name> <nif-name> |
Create a new Rust NIF module for app $0 named $1.
Validate arguments:
$0 must be an existing umbrella app (eth_core, eth_crypto, eth_net, eth_storage, eth_rpc)$1 should be snake_case (the NIF crate name)Read the app's mix.exs to understand current dependencies and compilers
Create the Rust NIF structure:
apps/$0/native/$1/
├── Cargo.toml
└── src/
└── lib.rs
Cargo.toml template:
[package] with name = "$1", edition = "2021"[lib] with crate-type = ["cdylib"][dependencies] with rustler = "0.34"lib.rs template:
#[rustler::nif] example functionrustler::init! macroCreate Elixir wrapper module at apps/$0/lib/$0/$1.ex:
use Rustler, otp_app: :$0, crate: "$1":erlang.nif_error/1@moduledoc and @spec for each functionUpdate apps/$0/mix.exs:
:rustler to deps if not presentrustler_crates config:rustler to compilers listVerify the scaffold compiles: cd apps/$0 && mix compile