uniswap/uniswap-ai/deployer-2
Claude Code and agent skill by uniswap/uniswap-ai
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Deploy CCA (Continuous Clearing Auction) smart contracts using the Factory pattern. Use when user says "deploy auction", "deploy cca", "factory deployment", or wants to deploy a configured auction.
Install
npx vskill@latest install uniswap/uniswap-ai/deployer-2Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
CCA Deployment
Deploy Continuous Clearing Auction (CCA) smart contracts using the ContinuousClearingAuctionFactory with CREATE2 for consistent addresses across chains.
Runtime Compatibility: This skill usesAskUserQuestionfor interactive prompts. IfAskUserQuestionis not available in your runtime, collect the same parameters through natural language conversation instead.
Instructions for Claude Code
When the user invokes this skill, guide them through the CCA deployment process with appropriate safety warnings and validation.
Pre-Deployment Requirements
Before proceeding with deployment, you MUST:
- Show educational disclaimer and get user acknowledgment
- Validate configuration file if provided
- Verify factory address for the target network
- Confirm deployment parameters with user
Deployment Workflow
- Show Educational Disclaimer (REQUIRED)
- Load or Request Configuration
- Validate Configuration
- Display Deployment Plan
- Get User Confirmation
- Provide Deployment Commands
- Post-Deployment Steps
⚠️ Educational Use Disclaimer
IMPORTANT: Before proceeding with deployment, you must acknowledge:
This tool and all deployment instructions are provided for educational purposes only. AI-generated deployment commands may contain errors or security vulnerabilities.
You must:
- ✅ Review all configurations carefully before deploying
- ✅ Verify all parameters (addresses, pricing, schedules) are correct
- ✅ Test on testnets first before deploying to mainnet
- ✅ Audit your contracts before deploying with real funds
Use AskUserQuestion to confirm the user acknowledges these warnings before proceeding with deployment steps.
Input Validation Rules
Before interpolating ANY user-provided value into forge/cast commands or deployment scripts:
- Ethereum addresses: MUST match
^0x[a-fA-F0-9]{40}$— reject otherwise - Chain IDs: MUST be from the supported chains list (1, 130, 1301, 8453, 42161, 11155111)
- Numeric values (supply, prices, blocks, chain IDs): MUST be non-negative and match
^[0-9]+\.?[0-9]*$ - RPC endpoint URL (
$RPC_URL): MUST behttps://-scheme and MUST NOT contain any metacharacter or whitespace from the rule below. This value does not come from the configuration file, the user supplies it during the walkthrough, and it reaches--rpc-urlon everyforge script,cast send, andforge verify-contractcommand below. "It came from the user, not the config" is not an exemption. Validate it the first time it is supplied, assign it to$RPC_URL, and reference only that variable afterwards; never re-read a raw URL into a later command. An endpoint whose URL needs a query string (a provider API key, for example) is exported into the environment out of band and referenced as$RPC_URL, never pasted into command text. - REJECT any input containing shell metacharacters or whitespace:
;,|,&,$, ``,(,),>,<,\,',", spaces, tabs, newlines.$(...)and backticks execute even inside double quotes, and a space splits one value into extraforge/cast` flags, so neither is ever safe to interpolate. Abort and report which value and which character failed rather than stripping the offending characters and continuing. - Never pass raw user input directly to shell commands without validation
- Always double-quote every interpolation in a generated command (write
--rpc-url "$RPC_URL", never the bare unquoted form). Quoting is the second layer, not the first: validate the value before it reaches the command, then quote it as well.
⚠️ Permission Safety
Do NOT auto-approve `Bash(forge:*)` or `Bash(cast:*)` in your Claude Code settings. Always require per-invocation approval for commands that spend gas or broadcast transactions. The PreToolUse hooks in .claude/hooks/ provide programmatic validation as a safety net, but user approval per command is the primary control.
🔐 Private Key Security
CRITICAL: Handling private keys safely is essential for secure deployments.
⚠️ Never Do These
- ❌ Never store private keys in git repositories or config files
- ❌ Never paste private keys directly in command line (visible in shell history)
- ❌ Never share private keys or store them in shared environments
- ❌ Never use mainnet private keys on untrusted computers
- ❌ Never use
--private-keyflag (blocked by PreToolUse hook)
✅ Recommended Practices
Option 1: Hardware Wallets (Most Secure)
Use Ledger or Trezor hardware wallets with the --ledger flag:
Option 2: Encrypted Keystore
Create an encrypted keystore with cast wallet import:
Option 3: Environment Variables (For Testing Only)
If using environment variables, ensure they are:
- Set in a secure
.envfile (never committed to git) - Loaded via
source .envordotenv - Only used on trusted, secure computers
- Use testnet keys for development
Example:
Testnet First
Always test on testnets before mainnet:
- Sepolia (testnet): Get free ETH from faucets
- Base Sepolia: Free ETH for testing on Base
- Deploy and verify full workflow on testnet
- Only deploy to mainnet after thorough testing
Deployment Guide
Factory Deployment
CCA instances are deployed via the ContinuousClearingAuctionFactory contract, which uses CREATE2 for consistent addresses across chains.
Factory Addresses
| Version | Address | Status | |
|---|---|---|---|
| v1.1.0 | 0xCCccCcCAE7503Cac057829BF2811De42E16e0bD5 | Recommended |
Deploying an Auction Instance
Step 0: Clone the CCA Repository
If you don't already have the CCA contracts locally, clone the repository and install dependencies:
This gives you access to the deployment scripts, contract ABIs, and test helpers referenced in later steps.
Step 1: Prepare Configuration
Ensure you have a valid configuration file (generated via the configurator skill or manually created).
Example configuration file structure:
Step 2: Validate Configuration
Before deployment, verify the configuration passes all validation rules (see Validation Rules section).
Step 3: Deploy via Factory
The factory has a simple interface:
Where:
token: Address of the token to be soldamount: Amount of tokens to sell in the auctionconfigData: ABI-encodedAuctionParametersstructsalt: Optional bytes32 value for vanity address mining
Step 3.5: Encode Configuration to configData
The factory's initializeDistribution expects configData as ABI-encoded AuctionParameters. Convert your JSON config to encoded bytes:
Using cast (Foundry CLI):
Using a Foundry Script:
Important: You must approve the token transfer to the factory before calling initializeDistribution. The factory will transfer amount tokens from your address to the newly created auction contract.
Step 4: Using Foundry Script
Step 5: Post-Deployment
After deployment, you must call onTokensReceived() to notify the auction that tokens have been transferred:
This is a required prerequisite before the auction can accept bids.
Alternative: Deploy via Constructor
You can also deploy directly via the constructor:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/plugins/uniswap-cca/skills/deployer/SKILL.md
Popularity
- Repository stars
- 156
- Repository forks
- 26
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 8 months ago.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/uniswap/uniswap-ai/deployer-2)