/zama-protocol:zama-typescriptfrom zama-protocol
Builds, reviews, or debugs TypeScript/JavaScript clients for Zama FHEVM using @zama-fhe/sdk and @zama-fhe/react-sdk. Covers encryption, decryption, permits, ERC-7984 tokens, operators, and integration with wagmi/viem/ethers.
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.
Load zama-protocol first. Open references/patterns.md for Node services, unshielding, delegated decryption and resource cleanup.
App code imports @zama-fhe/sdk, plus @zama-fhe/react-sdk for React.
@fhevm/sdk. It is the SDK's internal backend, and the SDK pins the matching version. Hardhat test tooling may still need it installed.@zama-fhe/relayer-sdk. It is deprecated. Code that calls createInstance() comes from it. Migrate such code to @zama-fhe/sdk.The SDK API changes between releases, so check every call before writing it.
node_modules/@zama-fhe/sdk/package.json.https://raw.githubusercontent.com/zama-ai/sdk/v<version>/llms.txt. It lists the official docs, API reference and examples. Its links point at main. Replace main with v<version> to stay on your release. Older releases have no index: upgrade the SDK, or use the SDK docs.node_modules/@zama-fhe/sdk/dist and node_modules/@zama-fhe/react-sdk/dist.The official examples live in zama-ai/sdk examples/. Open the one for your stack at your version's tag and read its WALKTHROUGH.md, or its README.md when it has no walkthrough.
| Building | Example |
|---|---|
| React app with wagmi | react-wagmi |
| React app with viem or ethers | react-viem, react-ethers |
| Embedded wallet | react-turnkey-wallet |
| Node.js script or service | node-viem, node-ethers |
| Your own contract: encrypt, write, decrypt | the "Encrypt & decrypt" guide in the index |
The React examples show provider setup and the confidential token flows.
confidentialTransferFrom must be the holder's operator on that token. The expiry is in Unix seconds.cleartext() only on local test chains. It does not encrypt.bigint base units and read decimals() and rate() from the actual wrapper.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-protocolExplain or plan Zama FHEVM applications — encrypted state, handles, access control (ACL), decryption, costs, package choice and deployed addresses. Load first for any Zama Solidity or TypeScript work, then load zama-solidity for contracts or zama-typescript for client code./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.npx claudepluginhub zama-ai/skills --plugin zama-protocol