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.
npx agentmods add skills/hirama/solidity-agentic-stack/foundry-castnpx skills add Hirama/solidity-agentic-stack --skill foundry-castgit clone --depth 1 https://github.com/Hirama/solidity-agentic-stackWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00075 | $0.01759 |
| Opus 5 | $0.00037 | $0.00879 |
| Sonnet 5 | $0.00015 | $0.00352 |
| Haiku 4.5 | $0.00007 | $0.00176 |
Grade A, and why
foundry-cast 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 3d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cast — Foundry's Chain CLI
cast is the read-side counterpart to forge. Every chain operation an agent might want from an MCP server is already a cast subcommand. No server, no daemon, no shebang bugs — just the binary that ships with Foundry.
Full reference: https://getfoundry.sh/cast
When to use this skill
- Inspecting a deployed contract (bytecode, storage, ABI)
- Decoding a transaction's calldata or revert reason
- Looking up a 4-byte selector or event signature
- Fetching balance, nonce, code at an address
- Reading state via
eth_callwithout writing a Forge test - Resolving ENS names
- Encoding calldata for a script
Setup
cast needs an RPC. Either pass --rpc-url per command or set ETH_RPC_URL:
export ETH_RPC_URL=https://eth.blockscout.com/api/eth-rpc # free, no key
# or
export ETH_RPC_URL=$RPC_MAINNET # from .env
Blockscout's public RPC is the simplest no-key fallback for read-only ops.
Read-only cheat sheet
Account state
cast balance vitalik.eth # ETH balance (wei)
cast balance vitalik.eth --ether # in ETH
cast nonce 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 # tx count
cast code 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 # runtime bytecode
cast codesize 0xa0b8...eb48
cast storage 0xa0b8...eb48 0 # slot 0
cast proof 0xa0b8...eb48 0 # merkle proof for slot
Block / chain
cast block-number
cast block latest
cast gas-price
cast chain-id
cast base-fee
cast age <block> # human time
cast find-block <timestamp> # block at unix time
Transactions
cast tx <hash> # tx envelope
cast receipt <hash> # receipt + logs
cast run <hash> # re-execute & trace
cast trace <hash> # full call trace
cast decode-transaction <raw-hex>
cast 4byte-calldata 0xa9059cbb... # match selector → sig
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.
- 3d ago First seen · 196 lines · 75 tokens per session scan A 1acd90940bf5
foundry-cast is a skill published in the GitHub repository Hirama/solidity-agentic-stack (5 stars, last pushed 2mo ago), licensed MIT. It adds 75 tokens to every session and 1,759 once invoked, about $0.0004 per session on Opus 5. 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-08-31.
Other skills, from other repositories
analyzing-ethereum-smart-contract-vulnerabilities
Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.
ansem-crypto
Use when evaluating crypto narratives, attention rotation, memecoin cycles, Solana-style ecosystem momentum, social distribution, and reflexive retail flows in an Ansem-style crypto market framework.
copy-trading-solana
Copy trade Solana wallets - mirror trades automatically.
[REPLACE: SKILL_NAME]
Price and volume tracker for [REPLACE: TOKENSYMBOL] with anomaly alerts above [REPLACE: ALERTTHRESHOLDPCT]% movement.
kraken-order-types
Complete reference for all spot and futures order types and modifiers.
crypto-market-rank
Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…