By cyotee
Development tools and guidance for the Crane Diamond framework. Provides skills for architecture patterns, testing, deployment, code style, and NatSpec documentation. Includes code generation commands and convention review agents.
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin craneValidate NatSpec documentation and include-tags in Crane contracts
Validate code style against Crane conventions
Generate a Diamond Factory Package (DFPkg) with PkgInit and PkgArgs structs
Generate a complete Facet + Target + Repo + Interface + Modifiers scaffold following Crane conventions
Generate TestBase + Behavior library + test spec scaffold following Crane testing conventions
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.
This skill should be used when the user asks about "Aerodrome integration", "Aerodrome swap", "Aerodrome liquidity", "volatile pool", "stable pool", "Slipstream", "concentrated liquidity on Aerodrome", or needs to interact with Aerodrome DEX on Base using Crane's service libraries.
This skill should be used when the user asks about "facet", "target", "repo", "diamond pattern", "storage slot", "guard function", "DFPkg", "AwareRepo", "Service pattern", "Modifiers", "ERC2535", or needs guidance on Crane's core architectural patterns for building modular, upgradeable smart contracts.
This skill should be used when the user asks about "Balancer V3 integration", "Balancer pool", "weighted pool", "constant product pool", "BPT token", "Balancer vault", "rate provider", or needs to create or interact with Balancer V3 pools using Crane's DFPkg and service libraries.
This skill should be used when the user asks about "Camelot integration", "Camelot swap", "Camelot liquidity", "Camelot V2", "fee-on-transfer tokens", "asymmetric fees", "directional fees", or needs to interact with Camelot DEX on Arbitrum using Crane's service library.
This skill should be used when the user asks about "code style", "naming convention", "imports", "section headers", "slot naming", "viaIR", "stack too deep", "formatting", or needs guidance on Crane's code conventions and style requirements.
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.
This skill should be used when the user asks about "natspec", "documentation", "include-tag", "selector", "cast", "@custom:signature", "@custom:selector", "@custom:topiczero", "@custom:interfaceid", "AsciiDoc", or needs guidance on documenting Crane contracts with NatSpec and AsciiDoc include-tags.
This skill should be used when the user asks about "testbase", "behavior library", "invariant test", "handler", "fuzz test", "test pattern", "Behavior_", "TestBase_", or needs guidance on Crane's testing infrastructure for writing comprehensive smart contract tests.
This skill should be used when the user asks to "deploy an ERC20 token", "create a token", "implement ERC20", "add permit to token", "mint/burn functionality", "ERC4626 vault", "tokenized vault", "ERC721 NFT", or needs guidance on token standards implementation with Crane's Diamond Factory Packages.
This skill should be used when the user asks about "Uniswap integration", "Uniswap V2 swap", "Uniswap V2 liquidity", "UniswapV2Service", "Uniswap V3", "Uniswap V4", "concentrated liquidity", or needs to interact with Uniswap DEX using Crane's service libraries.
This skill should be used when the user asks about "set collections", "AddressSet", "Bytes32Set", "math utilities", "ConstProdUtils", "AMM math", "hash functions", "BetterMath", "pagination", "EIP-712", "cryptography", or needs utility libraries for Crane Diamond development.
Development tools and guidance for the Crane Diamond framework. Available for both Claude Code and OpenCode.
/crane:new-facet <name> - Generate Facet + Target + Repo + Interface scaffold/crane:new-test <name> - Generate TestBase + Behavior library + test spec/crane:new-dfpkg <name> - Generate Diamond Factory Package/crane:check-natspec [file] - Validate NatSpec documentation/crane:check-style [file] - Validate code style conventionsIf you have Crane as a submodule at lib/crane/:
/plugin marketplace add ./lib/crane
/plugin install crane@crane-plugins
Use the installation script to add the plugin to your OpenCode configuration:
# Global installation (symlinks to ~/.config/opencode/)
./lib/crane/scripts/install-opencode-plugin.sh
# Project-local installation (copies to .opencode/)
./lib/crane/scripts/install-opencode-plugin.sh --local
# Uninstall
./lib/crane/scripts/install-opencode-plugin.sh --uninstall
Options:
--global - Install to ~/.config/opencode/ (user-wide, default)--local - Install to .opencode/ in current directory (project-local)--link - Create symlinks instead of copying (default for --global)--copy - Copy files instead of symlinking--uninstall - Remove the installed pluginSkills activate automatically when you ask about relevant topics:
Commands are invoked explicitly:
Claude Code:
/crane:new-facet MyFeature
/crane:check-natspec contracts/MyContract.sol
OpenCode:
/new-facet MyFeature
/check-natspec contracts/MyContract.sol
MIT
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Uses power tools
Uses Bash, Write, or Edit tools
Has parse errors
Some configuration could not be fully parsed
Share bugs, ideas, or general feedback.
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.
Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification
Meta-prompting and spec-driven development system for Claude Code. Productivity framework for structured AI-assisted development.
Comprehensive C4 architecture documentation workflow with bottom-up code analysis, component synthesis, container mapping, and context diagram generation