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.
In this repository9 other files it gives its agents.
- bttSkill
- cli-forgeSkill
- sablier-designSkill
- sablier-iconSkill
- sablier-writingSkill
- spec-from-screenshotSkill
- tailwind-cssSkill
- viemSkill
- xstate-reactSkill
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
- Distinctive: line 15
Before proceeding, verify Foundry version:
- Distinctive: line 58
Update README.md with deployment info
- Very specific: line 59
Update deployments.ts with contract addresses
- Distinctive: line 68
Run Init.s.sol script to create test streams
- Distinctive: line 105
Test data created (if applicable)
- Distinctive: line 109
When deploying Airdrops test data, campaigns are created via factory:
≈ “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.
Files
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 -VStop if version is below 1.3.6.
Protocol Detection
Detect the current EVM protocol from package.json:
| Package Name | Protocol | SDK Path |
@sablier/evm-utils | Utils | ../sdk/deployments/comptroller |
@sablier/flow | Flow | ../sdk/deployments/flow |
@sablier/lockup | Lockup | ../sdk/deployments/lockup |
@sablier/airdrops | Airdrops | ../sdk/deployments/airdrops |
@sablier/bob | Bob | ../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:
| State | Source |
| Protocol name | Detected from package.json |
| Chain ID | From deployment or user input |
| Chain name | Lowercase (e.g., ethereum, arbitrum) |
| Deployment type | deterministic or non-deterministic |
| Contract addresses | From broadcast JSON returns field |
| Block number | From deployment receipt (hex → decimal) |
| SDK version | From package.json version |
Protocol-Specific Scripts
| Protocol | Deterministic Script | Non-deterministic Script |
| Utils | DeployDeterministicComptrollerProxy.s.sol | DeployComptrollerProxy.s.sol |
| Utils | DeployDeterministicERC20Faucet.s.sol | DeployERC20Faucet.s.sol |
| Flow | DeployDeterministicProtocol.s.sol | DeployProtocol.s.sol |
| Lockup | DeployDeterministicProtocol.s.sol | DeployProtocol.s.sol |
| Airdrops | DeployDeterministicFactories.s.sol | DeployFactories.s.sol |
| Bob | DeployDeterministicBob.s.sol | DeployBob.s.sol |
| Bob | DeployDeterministicEscrow.s.sol | DeployEscrow.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:
| Factory | Campaign Contract |
SablierFactoryMerkleInstant | SablierMerkleInstant |
SablierFactoryMerkleLL | SablierMerkleLL |
SablierFactoryMerkleLT | SablierMerkleLT |
SablierFactoryMerkleVCA | SablierMerkleVCA |
SablierFactoryMerkleExecute | SablierMerkleExecute |
Campaign addresses are returned in broadcast returns field, not contractAddress.
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
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.

