/zama-protocol:zama-protocolfrom zama-protocol
Explains Zama FHEVM concepts: encrypted state, handles, access control, decryption, costs, and package selection. Load first for any Zama Solidity or TypeScript work.
Ships in zama-protocol. 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.
Read when SKILL.md points to them.
FHEVM lets smart contracts compute on encrypted values. Load this skill first, then zama-solidity for contracts or zama-typescript for client code. Open a reference only when the task needs it:
references/concepts.md: deciding what to encrypt, what still leaks, cost and latency.references/addresses.md: finding deployed protocol and app contracts.@fhevm/solidity for the FHE library and @openzeppelin/confidential-contracts for ERC-7984 confidential tokens.@zama-fhe/sdk, plus @zama-fhe/react-sdk for React. Do not import @fhevm/sdk (the SDK's internal backend) or @zama-fhe/relayer-sdk (deprecated).Contracts store 32-byte handles that point to ciphertexts. Coprocessors compute the ciphertexts off-chain after the transaction. A mined receipt does not mean a result can be decrypted yet, and handle bytes say nothing about the value: two different handles can hold the same number.
The client encrypts a value for a specific contract and sender. That contract imports it with FHE.fromExternal. Other contracts receive the resulting handle, never the original proof.
Every handle has an access list. A contract grants itself access to keep using a stored value, grants a user access to values that user may decrypt, and grants another contract temporary access before passing it a handle. A user can decrypt only when both the user and the contract are on the list. A signed permit adds no one.
if, require and revert cannot see encrypted values. Compute both outcomes and choose with FHE.select. A revert or event that depends on a revealed secret leaks that secret.
Users decrypt their own values off-chain through the SDK. To use a plaintext on-chain, the contract marks the handle publicly decryptable, someone fetches the value with a KMS proof off-chain, and the contract verifies that proof against the handle it stored.
Addresses, timing, which functions run, plaintext deposits and withdrawals, and event contents are public. A plaintext passed to FHE.asEuint64 (and similar) is public too, so secrets must come from the client already encrypted. Aggregates over a few users can reveal each of them.
Packages, protocol releases and deployments change. Read the installed package versions and the protocol changelog before using a version-specific behavior, and look up addresses instead of recalling them. To find any docs page, search the index at https://docs.zama.org/protocol/llms.txt and open its .md links.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
3 skills in this plugin
/zama-solidityWrite, review, or debug confidential Solidity on Zama FHEVM — encrypted types and operations, ACL, public decryption, ERC-7984 confidential tokens, @fhevm/solidity, @openzeppelin/confidential-contracts, and Hardhat or Foundry setup. Also covers HCU cost and design of auctions, escrow, swaps and batchers. Load zama-protocol first; use zama-typescript for client code./zama-typescriptBuild, review, or debug TypeScript or JavaScript clients for Zama FHEVM with @zama-fhe/sdk and @zama-fhe/react-sdk — encrypting inputs, decrypting results, permits, ERC-7984 tokens (shield, unshield, transfer), operators, wagmi/viem/ethers, browser apps and Node services. Load zama-protocol first; use zama-solidity for contracts.npx claudepluginhub zama-ai/skills --plugin zama-protocol