/voltaire-effect:voltaire-effect-schemasfrom voltaire-effect
This skill should be used when the user asks about "voltaire branded types", "Effect Schema Ethereum", "Address schema", "Hash schema", "Uint8Array branded", "S.decode address", "ParseError", "voltaire primitives", "type safety Ethereum", or needs to understand how voltaire-effect handles type-safe Ethereum data.
Ships in voltaire-effect. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
voltaire-effect provides 150+ Effect Schema wrappers that decode raw input into Voltaire's branded Uint8Array types. This gives compile-time type safety (Address vs Hash are distinct types) with zero runtime overhead, validated once at the boundary.
Branded types add a nominal tag to Uint8Array, preventing type confusion at compile time:
type AddressType = Uint8Array & { readonly __tag: "Address" }
type HashType = Uint8Array & { readonly __tag: "Hash" }
// TypeScript prevents mixing:
function transfer(to: AddressType, txHash: HashType) { ... }
transfer(myHash, myAddress) // ← Compile error! Types don't match
At runtime both are plain Uint8Array - brands exist only in the type system.
import * as Address from 'voltaire-effect/primitives/Address'
import * as Hash from 'voltaire-effect/primitives/Hash'
import * as S from 'effect/Schema'
// Synchronous (throws on failure)
const addr = S.decodeSync(Address.Hex)('0x742d35Cc6634C0532925a3b844Bc9e7595f251e3')
// Returns: AddressType (branded Uint8Array)
// Effectful (typed ParseError)
const addrEffect = S.decode(Address.Hex)(input)
// Type: Effect<AddressType, ParseError, never>
// Either for branching
const addrEither = S.decodeEither(Address.Hex)(input)
// Type: Either<AddressType, ParseError>
Encoding to checksummed hex requires the Keccak service:
import { KeccakLive } from 'voltaire-effect/crypto/Keccak256'
const checksummed = await Effect.runPromise(
S.encode(Address.Checksummed)(addr).pipe(Effect.provide(KeccakLive))
)
// "0x742d35Cc6634C0532925a3b844Bc9e7595f251e3"
const parseAddress = (input: string) =>
S.decode(Address.Hex)(input).pipe(
Effect.catchTag('ParseError', () =>
Effect.succeed(Address.zero())
)
)
ParseError contains a structured issue tree describing exactly what went wrong - field path, expected type, received value.
| Schema | Input | Output | Size |
|---|---|---|---|
Address.Hex | 0x${string} (40 hex chars) | AddressType | 20 bytes |
Hash.Hex | 0x${string} (64 hex chars) | HashType | 32 bytes |
Signature.Hex | 0x${string} (130 hex chars) | SignatureType | 65 bytes |
Address.Checksummed | EIP-55 checksummed | AddressType | 20 bytes |
Integer schemas cover the full Solidity range:
| Schema | Range |
|---|---|
Uint8 - Uint256 | 0 to 2^N - 1 |
Int8 - Int256 | -2^(N-1) to 2^(N-1) - 1 |
Schemas for complex Ethereum structures:
Transaction - Full transaction object with EIP-1559/4844/7702 supportBlock - Block header and bodyLog - Event log entriesTransactionReceipt - Execution receiptDecode once at the boundary; downstream operations skip re-validation:
Raw input ("0xabc...")
│
▼ S.decode(Address.Hex)
AddressType (branded, validated)
│
├──▶ getBalance(addr) ← no re-validation
├──▶ Contract.read(addr) ← no re-validation
└──▶ Address.toHex(addr) ← no re-validation
Decoded branded values work directly with both Voltaire and Effect functions:
// Works with Voltaire's native functions
import { keccak256 } from '@tevm/voltaire'
const hash = keccak256(addr) // Accepts Uint8Array
// Works with Effect Schema encoding
const hex = S.encodeSync(Address.Hex)(addr) // "0x742d..."
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/voltaire-effect-architectureVoltaire Effect ArchitectureThis skill should be used when the user asks about "voltaire-effect architecture", "voltaire-effect overview", "how does voltaire-effect work", "what is voltaire-effect", "Effect.ts Ethereum library", "Voltaire Effect layers", "decode use provide pattern", "voltaire-effect vs viem", "voltaire-effect vs ethers", "voltaire-effect getting started", or needs a high-level understanding of how voltaire-effect integrates Voltaire Ethereum primitives with Effect.ts./voltaire-effect-contractsVoltaire Effect Contract InteractionsThis skill should be used when the user asks about "voltaire-effect contract", "Contract factory", "readContract", "writeContract", "simulateContract", "type-safe ABI", "ERC-20 Effect", "contract read write", "contract events", "voltaire-effect multicall", or needs to understand how voltaire-effect interacts with smart contracts./voltaire-effect-cryptoVoltaire Effect Crypto ServicesThis skill should be used when the user asks about "voltaire-effect crypto", "KeccakService", "Secp256k1", "BLS12-381", "AES-GCM", "HDWallet", "BIP-39", "CryptoLive", "CryptoTest", "keccak256 Effect", "ECDSA Effect", "voltaire hashing", "voltaire signing", or needs to understand the cryptographic services in voltaire-effect.voltaire-effect@cyotee is listed by cyotee/cyotee-claude-plugins — review the source before installing
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin voltaire-effectOther plugins' skills for the same job