원클릭으로
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