cyotee/cyotee-claude-plugin-crane/crane-access
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 "access control", "onlyOwner", "onlyOperator", "ownership transfer", "MultiStepOwnable", "ERC8023", "operable pattern", "function-level permissions", "reentrancy protection", "reentrancy lock", or needs to restrict function access in Crane Diamond contracts.
Install
npx vskill@latest install cyotee/cyotee-claude-plugin-crane/crane-accessSKILL.md
The same SKILL.md was published earlier as cyotee/cyotee-claude-plugin-crane/crane-access.
Crane Access Control Components
Crane provides three access control patterns for Diamond proxies: MultiStepOwnable (ERC-8023), Operable, and ReentrancyLock.
Component Selection
| Need | Component | Purpose | |
|---|---|---|---|
| Ownership with time-lock | MultiStepOwnable | Two-step ownership transfer with buffer period | |
| Delegated permissions | Operable | Global and function-level operator authorization | |
| Reentrancy protection | ReentrancyLock | Transient storage lock for cross-function reentrancy |
Quick Start: Add Access Control
MultiStepOwnable (ERC-8023)
Time-locked two-step ownership transfer with buffer period.
Storage
Ownership Transfer Flow
- Initiate: Owner calls
initiateOwnershipTransfer(newOwner) - Wait: Buffer period must elapse
- Confirm: Owner calls
confirmOwnershipTransfer(newOwner) - Accept: New owner calls
acceptOwnershipTransfer()
Guard Functions
Modifiers
Initialization
Operable Pattern
Delegated authorization for global and function-level permissions.
Storage
Authorization Levels
- Global Operator: Can call any function protected by
onlyOperator - Function Operator: Can only call specific functions
Setting Permissions (Owner Only)
Checking Permissions
Guard Functions
Modifiers
ReentrancyLock
Transient storage-based reentrancy protection (EIP-1153).
Usage
Functions
Benefits
- Uses transient storage (cleared after transaction)
- Gas efficient compared to storage-based guards
- Protects against cross-function reentrancy
Component Files
| Component | Files | |
|---|---|---|
| MultiStepOwnable | MultiStepOwnableRepo.sol, MultiStepOwnableModifiers.sol, MultiStepOwnableTarget.sol, MultiStepOwnableFacet.sol | |
| Operable | OperableRepo.sol, OperableModifiers.sol, OperableTarget.sol, OperableFacet.sol | |
| ReentrancyLock | ReentrancyLockRepo.sol, ReentrancyLockModifiers.sol, ReentrancyLockTarget.sol, ReentrancyLockFacet.sol |
AccessFacetFactoryService
Deploy access control facets:
Additional Resources
Reference Files
For detailed patterns and examples:
- `references/access-patterns.md` - Complete access control integration patterns
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/crane-access/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-access)