cli-forge

cli-forge is a skill for Claude Code, Codex from sablier-labs/agent-skills. It costs 50 tokens per session (1,918 once invoked), scanned A, original, MIT.

A guide for writing Foundry tests and deployment scripts for Ethereum smart contracts. Foundry is a toolkit for compiling, testing, fuzzing, checking invariants, benchmarking gas, and deploying contracts.

In plain words
What is it for?
Use it when working in a smart-contract repository's tests or scripts directories, especially for integration, fuzz, invariant, deployment, coverage, or gas tests.
Why use it?
It gives project-specific patterns for different test types, cheat codes, formal checks, deployment, and performance measurement.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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/agent-skills/cli-forge
Any agent
npx skills add sablier-labs/agent-skills --skill cli-forge
Clone the repo
git clone --depth 1 https://github.com/sablier-labs/agent-skills

Made for: Claude Code, Codex.

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 cli-forge

README.md
[![agentmods](https://agentmods.dev/badge/skills/sablier-labs/agent-skills/cli-forge.svg)](https://agentmods.dev/skills/sablier-labs/agent-skills/cli-forge)
Your own site
<a href="https://agentmods.dev/skills/sablier-labs/agent-skills/cli-forge"><img src="https://agentmods.dev/badge/skills/sablier-labs/agent-skills/cli-forge.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,918 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00050 $0.01918
Opus 5 $0.00025 $0.00959
Sonnet 5 $0.00010 $0.00384
Haiku 4.5 $0.00005 $0.00192

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

Security

Grade A, and why

cli-forge 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

Copies of this mod

1 near-identical copy found in the catalogue:

  • foundry — 97% identical, 2 lines differ
skills/cli-forge/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 · 50 tokens per session scan A 64e248885ede

Subscribe to this mod's changes

cli-forge is a skill published in the GitHub repository sablier-labs/agent-skills (9 stars, last pushed 29d ago), licensed MIT. It adds 50 tokens to every session and 1,918 once invoked, about $0.0003 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.