foundry

foundry is a skill for Claude Code from sablier-labs/plugin-marketplace. It costs 49 tokens per session (1,917 once invoked), scanned A, a copy of cli-forge, MIT.

A guide for writing Foundry tests and deployment scripts for Solidity smart contracts. Foundry is a toolkit for building, testing, deploying, and measuring blockchain contracts.

In plain words
What is it for?
Use it for integration, fuzz, fork, and invariant tests, deployment scripts, gas benchmarks, code coverage, and formal verification.
Why use it?
It provides project-specific patterns for different test types and common testing tools, so developers do not have to invent their own structure.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the testing plugin — 3 skills shipped together

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.

agentmods
npx agentmods add skills/sablier-labs/plugin-marketplace/foundry
Any agent
npx skills add sablier-labs/plugin-marketplace --skill foundry
Clone the repo
git clone --depth 1 https://github.com/sablier-labs/plugin-marketplace

Made for: Claude Code.

Or install testing, the plugin that ships this one along with the rest of its 3 skills.

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 foundry

README.md
[![agentmods](https://agentmods.dev/badge/skills/sablier-labs/plugin-marketplace/foundry.svg)](https://agentmods.dev/skills/sablier-labs/plugin-marketplace/foundry)
Your own site
<a href="https://agentmods.dev/skills/sablier-labs/plugin-marketplace/foundry"><img src="https://agentmods.dev/badge/skills/sablier-labs/plugin-marketplace/foundry.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,917 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 97% copy Near-identical to another mod 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.00049 $0.01917
Opus 5 $0.00024 $0.00958
Sonnet 5 $0.00010 $0.00383
Haiku 4.5 $0.00005 $0.00192

Measured 6d ago against content hash febb52b6c228, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

foundry 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 6d 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.

Origin

This is a copy

97% identical to cli-forge — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/testing/skills/foundry/SKILL.md · 240 lines

How it starts

The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Foundry Testing & Script Skill

Rules and patterns for Foundry tests. Find examples in the actual codebase.

Bundled References

Reference Content When to Read
./references/test-infrastructure.md Constants, defaults, mocks When setting up tests
./references/cheat-codes.md Common cheatcode patterns When using vm cheatcodes
./references/invariant-patterns.md Handlers, stores, invariants When writing invariant tests
./references/formal-verification.md Halmos, Certora, symbolic exec When proving correctness
./references/deployment-scripts.md Script patterns, verification When writing deploy scripts
./references/deployment-checklist.md Pre-mainnet deployment steps Before deploying to production
./references/gas-benchmarking.md Snapshot, profiling, CI When measuring gas performance
./references/sablier-conventions.md Sablier-specific patterns When working in Sablier repos

Test Types

Type Directory Naming Purpose
Integration tests/integration/concrete/ *.t.sol BTT-based concrete tests
Fuzz tests/integration/fuzz/ *.t.sol Property-based testing
Fork tests/fork/ *.t.sol Mainnet state testing
Invariant tests/invariant/ Invariant*.t.sol Stateful protocol properties
Scripts scripts/solidity/ *.s.sol Deployment/initialization

Read the full file on GitHub · 240 lines

Files

What ships with it

8 files 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. 6d ago First seen · 240 lines · 49 tokens per session scan A febb52b6c228

Subscribe to this mod's changes

foundry is a skill published in the GitHub repository sablier-labs/plugin-marketplace (7 stars, last pushed 2mo ago), licensed MIT. It adds 49 tokens to every session and 1,917 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to cli-forge, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

signature-replay

Signature replay attacks — missing nonces, missing chain ID, ecrecover zero address, signature malleability, cross-chain replay.

PurpleAILAB/Decepticon · 31 tokens

official-sui-skills

Pointer to the official Mysten Labs skills for building on Sui — language fundamentals, object model, PTBs, SDKs, publishing, upgrades, frontend integration, accessing on-chain data. Maintained upstream at github.com/MystenLabs/skills; pinned to the same ref the audit catalog derives from (see…

MystenLabs/sui · 116 tokens

nip85-trusted-assertions

The NIP-85 trusted-assertions model in Quartz (nip85TrustedAssertions/) — kind 10040 trust-provider lists, kind 30382 contact cards / user assertions, 30383 event assertions, 30384 addressable assertions, 30385 external-id assertions. Use when building or parsing these events, working with the typed tags (RankTag…

vitorpamplona/amethyst · 148 tokens

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…

tradecatlabs/tradecat-public · 85 tokens

trading-signal

Subscribe and retrieve on-chain Smart Money signals. Monitor trading activities of smart money addresses, including buy/sell signals, trigger price, current price, max gain, and exit rate. Use this skill when users are looking for investment opportunities — smart money signals can serve as valuable references for…

tradecatlabs/tradecat-public · 64 tokens

bridge

Cross-chain token transfers using Wormhole and CCTP.

alsk1992/CloddsBot · 13 tokens