Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cli-cast

БесплатноЗапускает вложенные скриптыНе проверен

"Use for Foundry cast transaction actions: prepare, trace, simulate, sign, or broadcast. Also use to sign messages or encode/decode ABI/calldata. Delegate…

PaulRBergот PaulRBerg★ 109 звёзд на GitHub

Об этом скилле

Foundry Cast CLI

This skill is coordination-exempt: skip the ai-coord gate for its declared work.

Separate read, preparation, simulation, signing, and broadcast. Do not hide state-changing actions inside command construction.

For EIP-7702 authorization or delegation revocation, read references/eip7702.md before preparation. It defines signer selection, authority versus transaction sender, and conditional staged approval. It also defines authorization verification in addition to the transaction receipt.

Resolve Chain and Provider

Invoke $evm-atlas before every network operation. It owns chain resolution, discrete reads, and bounded live subscriptions. Pass the explicit chain name or ID, JSON-RPC method, exact parameters or call object, and block selector or checkpoint requirement. State why you need the result. Require its read packet containing the resolved chain name and ID, provider route, result, observed block or checkpoint, and coverage gaps.

If the chain is absent from evm-atlas, stop RPC-dependent work. Do not accept an arbitrary RPC URL to bypass that restriction. When the chain is ambiguous, never infer Ethereum.

Use an RPC URL in this skill only for a trace, fork, or send flow you cannot express as bounded discrete reads. For RouteMesh-backed continuous transport, first require evm-atlas to confirm current RouteMesh coverage. Then, if the explicit Foundry alias is configured, use it:

ROUTEMESH_CHAIN_ID="$CHAIN_ID" cast COMMAND --rpc-url routemesh

The alias can interpolate an environment variable, such as ROUTEMESH_API_KEY. The routemesh CLI keeps its own key. Thus, successful atlas reads do not prove that the alias resolves. Before you sign a transaction for alias broadcast, or use the alias in another way, run ROUTEMESH_CHAIN_ID="$CHAIN_ID" cast chain-id --rpc-url routemesh 2>/dev/null. Require the expected chain ID. If the check fails, load the missing variable from the user's environment setup without printing it. If you cannot load it, treat the alias as not configured.

Otherwise, use the nonsecret public RPC that evm-atlas verified. Never construct, inspect, or print a RouteMesh URL. Treat Cast stderr as secret-bearing because Foundry may reveal a resolved alias URL on transport failure. Never repeat that output in chat, logs, or external reports.

Resolve every RPC value from evm-atlas's current read packet or the RouteMesh alias above. A hard-coded public RPC URL in a prepare, simulate, or verify command violates this delegation even when the chain matches. This includes a literal https:// endpoint from memory or a prior response.

When a local cast command against that provider returns a --json hex quantity, decode it. Use cast to-dec <hex> or a field-select form such as cast receipt <hash> <field> or cast tx <hash> <field>. Do not pipe --json output through jq tonumber. It fails on hex strings and on null.

Authority Phases

An instruction to execute a contract call authorizes preparation, simulation, signing, broadcast, and necessary wallet confirmations within the requested scope. Present the review. Then proceed without a separate chat approval or manual wallet click from the user. Apply existing authorization across phases. A read-only, prepare-only, or simulation-only request does not authorize execution.

Explicit user instructions take precedence over skill defaults. Honor user-imposed approval gates and host restrictions. Ask only when execution needs authority or a material decision the user has not supplied. Message/typed-data signatures and EIP-7702 authorizations retain their separate payload and use approvals below.

Read

Local ABI encoding/decoding and selector derivation may run without transaction approval. Delegate chain, block, fee, nonce, eth_call, eth_estimateGas, transaction, receipt, log, balance, code, storage, proof, and ENS reads to $evm-atlas, including reads needed to prepare or verify a transaction. Do not ask evm-atlas to hand a read back to this skill merely because later work may change state.

Use env -i PATH="$PATH" cast <command> --help for exact local syntax. Cast help can print inherited environment values, including API keys. Do not load credentials or decrypted dotenv for capability checks. Typical local operations:

cast calldata 'transfer(address,uint256)' "$TO" "$AMOUNT"
cast decode-calldata 'transfer(address,uint256)' "$CALLDATA"

Prepare

Without signing, resolve chain ID, sender, target, function signature, arguments, calldata, native value, nonce, and fee assumptions. Without signing, validate those fields and assumptions. Obtain every on-chain fact through evm-atlas. Do not request or load key material during preparation. Before simulation or helper construction, select a supported signer under Sign and Broadcast. Before either activity, check that signer's command capabilities.

Request both the confirmed nonce at the numeric

Полный SKILL.md на GitHub

Установить cli-cast в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlreferences/browser-signing.mdreferences/eip7702.mdreferences/ethereum-gas.mdreferences/version.txtscripts/rabby-slow-gas.sh

FAQ

Что делает скилл cli-cast?

"Use for Foundry cast transaction actions: prepare, trace, simulate, sign, or broadcast. Also use to sign messages or encode/decode ABI/calldata. Delegate every standalone RPC read to evm-atlas."

Как установить скилл cli-cast?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cli-cast запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить cli-cast с