cyotee/cyotee-claude-plugin-crane/crane-deployment
Claude Code and agent skill by cyotee/cyotee-claude-plugin-crane
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks about "create3", "deploy", "diamond factory", "package", "deterministic deployment", "cross-chain", "DiamondPackageCallBackFactory", "FactoryService", or needs guidance on deploying Diamond proxies and facets using Crane's factory system.
Install
npx vskill@latest install cyotee/cyotee-claude-plugin-crane/crane-deploymentSKILL.md
The same SKILL.md was published earlier as cyotee/cyotee-claude-plugin-crane/crane-deployment.
Crane Deployment Patterns
Crane uses a two-factory system for deterministic cross-chain deployments of Diamond proxies.
Factory Hierarchy
Deployment Flow
Step 1: Initialize Factories
In test setUp() or deployment scripts:
Step 2: Deploy Facets
Use Create3Factory to deploy facets with deterministic addresses:
Step 3: Deploy Package
Deploy package with facet references in constructor:
Step 4: Deploy Diamond Proxy Instances
Key Components
| Component | Purpose | |
|---|---|---|
Create3Factory | Deploys any contract with deterministic addresses via CREATE3 | |
DiamondPackageCallBackFactory | Deploys Diamond proxies, calls initAccount() via delegatecall | |
IDiamondFactoryPackage | Interface for packages - bundles facets + initialization logic | |
InitDevService | Library to bootstrap the factory system in tests |
Create3Factory Methods
deployFacet()
Deploy a facet (no constructor args):
deployPackageWithArgs()
Deploy a package with constructor arguments:
deploy()
Deploy any contract:
Salt Calculation
Always derive salt from type name for deterministic addresses:
This ensures:
- Same address across all EVM chains
- Predictable deployment addresses
- No salt collision between different contracts
DiamondPackageCallBackFactory Flow
- User calls
factory.deploy(pkg, pkgArgs) - Factory calculates deterministic address via
pkg.calcSalt(pkgArgs) - Factory deploys
MinimalDiamondCallBackProxyvia CREATE2 - Proxy calls back to factory's
initAccount() - Factory delegatecalls
pkg.initAccount()to initialize storage - Factory calls
pkg.postDeploy()for any post-deployment hooks
FactoryService Pattern
Group related deployments in FactoryService libraries:
See references/factory-service-examples.md for complete examples.
Test Setup Pattern
Additional Resources
Reference Files
- `references/factory-service-examples.md` - Complete FactoryService examples
- `references/deployment-scripts.md` - Production deployment script patterns
Key Files
/contracts/factories/create3/Create3Factory.sol- CREATE3 factory/contracts/factories/diamondPkg/DiamondPackageCallBackFactory.sol- Diamond factory/contracts/InitDevService.sol- Factory initialization/contracts/interfaces/IDiamondFactoryPackage.sol- Package interface with flow diagram
Security
- Security scanPassed, 90 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 repositoryCheckingskills/crane-deployment/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (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/cyotee/cyotee-claude-plugin-crane/crane-deployment)