The FHEVM cookbook
for privacy builders.
Actionable code patterns, focused snippets, and agent skills to build faster on the Zama stack.
Created by zKorp, a team of builders focused on FHEVM for more than a year.
▸ 01 · Install
One command.
Fully wired.
Uses the open skills CLI. Most teams should start with the full install. Single-skill commands are available on each catalog card.
Recommended / Default install
Recommendednpx skills add z-korp/fhevm-cookbook --skill '*'Inspect before installing
npx skills add z-korp/fhevm-cookbook --list▸ 02 · Catalog
Custom FHEVM Skills.
Curated skills for builders who want the exact FHEVM pattern, snippet, or agent workflow they need without digging through the full catalog first.
01 · fhevm
fhevm-router
General-purpose skill that triages a Zama FHEVM task, points to the right official docs, and keeps contract and frontend responsibilities separated.
Start here
View →
02 · fhevm
fhevm-privacy-constraints
Product and mechanism design when confidential balances, ACL boundaries, and async decryption change what can actually be measured or enforced.
Core FHE mechanics
View →
03 · fhevm
fhevm-acl-lifecycle
Managing encrypted value permissions: FHE.allow, FHE.allowThis, FHE.allowTransient, handle re-creation, and the critical rule that new handles carry no permissions.
Core FHE mechanics
View →
04 · fhevm
fhevm-control-flow
Replacing if/else and require patterns with FHE equivalents: FHE.select, silent zeroing, and designing UX around non-reverting failures.
Core FHE mechanics
View →
05 · fhevm
fhevm-encrypted-inputs
Accepting user-encrypted values in contracts: FHE.fromExternal, input proofs, caller binding, and replay prevention.
Core FHE mechanics
View →
06 · fhevm
fhevm-user-decryption
Client-side decryption: off-chain reencryption, EIP-712 authorization, React hooks, and ACL pre-grant requirements.
Decryption patterns
View →
▸ 03 · Specific Snippets
Specific Snippets.
Direct answers to the questions builders actually ask: how to solve a specific FHEVM problem, or how to make a precise thing happen in a real project.