AI agent skill that gives expert knowledge of Fully Homomorphic Encryption (FHE) smart contract development on the Fhenix protocol.
When installed, AI agent automatically activates this skill when you mention FHE, Fhenix, encrypted contracts, private on-chain computation, or related topics. It provides:
- Complete FHE type system and operation reference
- Access control patterns (
FHE.allow*) that are critical for correctness - Encrypted conditional logic with
FHE.select - Multi-transaction decryption workflows
- Common mistakes and debugging guidance
- Working contract, test, and deployment templates
npx -y skills add majus/fhenix-skillLoad SKILL.md directly into the conversation for a comprehensive FHE reference.
Just ask naturally -- the skill triggers automatically:
- "Build me an encrypted voting contract using Fhenix"
- "Create a private ERC20 token with encrypted balances"
- "Review this FHE contract for access control issues"
- "Why am I getting access denied errors on my encrypted values?"
- "Help me write Foundry tests for my FHE contract"
SKILL.md -- Skill definition (loaded when triggered)
references/
core.md -- Complete FHE API reference (loaded on demand)
examples/
EncryptedStorage.sol -- Example contract
EncryptedStorage.t.sol -- Example Foundry tests
EncryptedStorage.s.sol -- Example deployment script
Without
FHE.allow()= passing a locked box without the key!
Every encrypted value needs explicit access grants. This is the #1 source of bugs in FHE contracts.