agentleFS
sablier-labssablier-labs/agent-skills/skills/evm-deployment/SKILL.md

evm-deployment

Skill9 starsChanged 2 months agoMITView on GitHub

Deploy Sablier EVM contracts (Utils, Flow, Lockup, Airdrops, Bob) with full workflow automation. This skill should be used when the user asks to "deploy", "deploy protocol", "deploy to chain", or mentions deployment-related tasks. Handles contract deployment, explorer verification, SDK updates, and initial setup through Init scripts.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before proceeding, verify Foundry version:

    line 15
  2. Distinctive:

    Update README.md with deployment info

    line 58
  3. Very specific:

    Update deployments.ts with contract addresses

    line 59
  4. Distinctive:

    Run Init.s.sol script to create test streams

    line 68
  5. Distinctive:

    Test data created (if applicable)

    line 105
  6. Distinctive:

    When deploying Airdrops test data, campaigns are created via factory:

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overview

End-to-end deployment workflow for Sablier EVM contracts. Supports Utils, Flow, Lockup, Airdrops, and Bob with protocol-specific adaptations.

Prerequisites

Version Check

Before proceeding, verify Foundry version:

forge -V

Stop if version is below 1.3.6.

Protocol Detection

Detect the current EVM protocol from package.json:

Package NameProtocolSDK Path
@sablier/evm-utilsUtils../sdk/deployments/comptroller
@sablier/flowFlow../sdk/deployments/flow
@sablier/lockupLockup../sdk/deployments/lockup
@sablier/airdropsAirdrops../sdk/deployments/airdrops
@sablier/bobBob../sdk/deployments/bob

Extract version from package.json → "version": "x.y.z" → SDK version is v<x.y>

Workflow

Execute steps in order, tracking state between each:

Step 1: Deploy Contracts

Reference: ./references/deploy.md | Examples: ./references/examples.md

Deploy protocol contracts using Foundry. Handles:

  • RPC configuration
  • Deterministic (CREATE2) vs non-deterministic (CREATE) deployment
  • Contract verification on block explorer

Step 2: Update SDK (optional)

Reference: ./references/copy-to-sdk.md

Copy broadcast artifacts to SDK repository:

  • Broadcast JSON file
  • Update README.md with deployment info
  • Update deployments.ts with contract addresses

Step 3: Initial Setup (optional)

Reference: ./references/init-setup.md

Creates initial setup for deployed contracts:

  • Mint or verify ERC20 token balance
  • Run Init.s.sol script to create test streams

State Tracking

Track and carry forward between steps:

StateSource
Protocol nameDetected from package.json
Chain IDFrom deployment or user input
Chain nameLowercase (e.g., ethereum, arbitrum)
Deployment typedeterministic or non-deterministic
Contract addressesFrom broadcast JSON returns field
Block numberFrom deployment receipt (hex → decimal)
SDK versionFrom package.json version

Protocol-Specific Scripts

ProtocolDeterministic ScriptNon-deterministic Script
UtilsDeployDeterministicComptrollerProxy.s.solDeployComptrollerProxy.s.sol
UtilsDeployDeterministicERC20Faucet.s.solDeployERC20Faucet.s.sol
FlowDeployDeterministicProtocol.s.solDeployProtocol.s.sol
LockupDeployDeterministicProtocol.s.solDeployProtocol.s.sol
AirdropsDeployDeterministicFactories.s.solDeployFactories.s.sol
BobDeployDeterministicBob.s.solDeployBob.s.sol
BobDeployDeterministicEscrow.s.solDeployEscrow.s.sol

Output Summary

After completion, provide:

  • Protocol deployed
  • Chain and deployment type
  • Contract addresses (factories + campaigns if applicable)
  • Verification status
  • SDK files updated (if applicable)
  • Test data created (if applicable)

Airdrops Campaign Contracts

When deploying Airdrops test data, campaigns are created via factory:

FactoryCampaign Contract
SablierFactoryMerkleInstantSablierMerkleInstant
SablierFactoryMerkleLLSablierMerkleLL
SablierFactoryMerkleLTSablierMerkleLT
SablierFactoryMerkleVCASablierMerkleVCA
SablierFactoryMerkleExecuteSablierMerkleExecute

Campaign addresses are returned in broadcast returns field, not contractAddress.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.