npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@zunxbt/fhevm-skill

v1.0.1

Published

FHEVM Skill for Claude Code, Codex CLI, Cursor, and other AGENTS.md tools (Aider, Cline, Continue, Zed, Jules). One-shot installer for confidential smart contract workflows on Zama FHEVM v0.11.

Readme


✨ Quick start

Run one command in your project root:

npx @zunxbt/fhevm-skill claude       # Claude Code (.claude/)
npx @zunxbt/fhevm-skill codex        # Codex CLI (.agents/ + AGENTS.md)
npx @zunxbt/fhevm-skill cursor       # Cursor (.cursor/ + AGENTS.md)
npx @zunxbt/fhevm-skill windsurf     # Windsurf (.windsurfrules + .agents/)
npx @zunxbt/fhevm-skill other        # any other AGENTS.md tool: Aider, Cline, Continue, Zed, Jules, ...

🗣️ Sample prompts

1. Generate a contract

Write a confidential ERC-7984 token with encrypted balances and owner-only mint

2. Review code

Review contracts/Vault.sol for FHE-specific bugs and ACL gaps

3. Generate tests

Write Hardhat tests for contracts/ConfidentialERC20.sol covering mint, transfer, and operator flow

4. Deploy

Set up a new FHEVM project with Hardhat and deploy a confidential ERC-7984 to Sepolia

5. Security audit

Audit all contracts in contracts/ for FHE vulnerabilities

6. Frontend / dApp

Write a React component that encrypts a bid amount and sends it to my SealedAuction contract using the relayer SDK

📦 Installation

Pick one path. The quick install needs Node.js 20+ (per package.json engines.node); the manual install needs nothing but git and cp.

1. Quick install (recommended)

Run from your project root. One command per agent, no clone needed:

npx @zunxbt/fhevm-skill claude       # Claude Code (.claude/)
npx @zunxbt/fhevm-skill codex        # Codex CLI (.agents/ + AGENTS.md)
npx @zunxbt/fhevm-skill cursor       # Cursor (.cursor/ + AGENTS.md)
npx @zunxbt/fhevm-skill windsurf     # Windsurf (.windsurfrules + .agents/)
npx @zunxbt/fhevm-skill other        # any other AGENTS.md tool: Aider, Cline, Continue, Zed, Jules, ...

The CLI prints every file it copies and refuses to overwrite existing files. Useful flags:

| Flag | Effect | | :--- | :--- | | --target <path> | Install into <path> instead of the current directory | | --force | Overwrite existing files | | --dry-run | Print the file list without writing anything | | --help / --version | Show usage / package version |

To upgrade later, pin @latest so npx bypasses its package cache: npx @zunxbt/fhevm-skill@latest <agent> --force.

2. Manual install (no Node.js required)

Clone the repo and copy the bundle for your tool. Run all commands below from inside the cloned fhevm-skill/ directory. Replace /path/to/your-project with your project's absolute path. Pick only the sections for the AI tools you actually use; they are independent of each other.

git clone https://github.com/zunmax/fhevm-skill.git
cd fhevm-skill

The Claude bundle is fully self-contained in .claude/. Copy the whole directory:

cp -r .claude /path/to/your-project/

That places .claude/CLAUDE.md (entry-point) and .claude/skills/fhevm-skill/ (skill) into your project. Claude Code auto-discovers both. The skill triggers on imports of @fhevm/solidity, @zama-fhe/relayer-sdk, @zama-fhe/sdk, @zama-fhe/react-sdk, or @openzeppelin/confidential-contracts, encrypted types (euint*, ebool, eaddress), or any FHEVM-related error string.

Or ask the agent to install:

Install the FHEVM Skill from https://github.com/zunmax/fhevm-skill and set it up for my project

The Codex bundle lives in .agents/. The shared root AGENTS.md is the entry point Codex reads from your project root.

cp -r .agents /path/to/your-project/
cp AGENTS.md /path/to/your-project/

The skill auto-loads from .agents/skills/fhevm-skill/SKILL.md. It ships its own references/, templates/, and review-modules/. No Claude or Cursor install required.

The Cursor bundle lives in .cursor/. Same shared root AGENTS.md.

cp -r .cursor /path/to/your-project/
cp AGENTS.md /path/to/your-project/

Three rule files in .cursor/rules/ activate automatically:

  • fhevm-solidity.mdc auto-attaches on *.sol files
  • fhevm-testing.mdc auto-attaches on *.test.ts / *.spec.ts files
  • fhevm-frontend.mdc is description-matched (agent requested) to avoid firing on every .ts file in non-FHEVM projects

.cursor/references/, .cursor/templates/, .cursor/review-modules/, and .cursor/scripts/ ship with the bundle. No Claude or Codex install required.

Windsurf reads a single .windsurfrules file at the project root. The full reference set ships under .agents/, which the rules link to.

cp .windsurfrules /path/to/your-project/
cp -r .agents /path/to/your-project/

.windsurfrules carries the ALWAYS / ASK FIRST / NEVER list, source-verified hard limits, the post-delivery grep, and the lint command. Detail (anti-patterns, types, ACL, decryption, frontend, testing, deployment, vulnerability catalogs) lives in .agents/skills/fhevm-skill/.

AGENTS.md is becoming a cross-tool standard. Any agent that reads it can use this skill; it just needs the references and templates reachable on disk. Use the .agents/ bundle as the generic mirror:

cp -r .agents /path/to/your-project/
cp AGENTS.md /path/to/your-project/

AGENTS.md routes the agent to .agents/skills/fhevm-skill/SKILL.md as the default fallback for any non-Codex, non-Cursor tool. If your tool does not auto-discover sub-files, point it at AGENTS.md first and ask it to read .agents/skills/fhevm-skill/SKILL.md for the workflows.


🔼 Update to the latest version

Quick install : re-run with @latest to bypass npx's package cache: npx @zunxbt/fhevm-skill@latest <agent> --force.

Manual install :

cd fhevm-skill && git pull
# then re-run the cp commands above for the agent(s) you use

Each install is a snapshot. Re-copy (or re-run the npx command with --force) to pull the latest patterns.


📁 Repository layout

fhevm-skill/                    # this repo after `git clone`
│
├── README.md               # this file
├── LICENSE                 # MIT
├── AGENTS.md               # Cross-tool entry point (Codex CLI / Cursor / other AGENTS.md tools)
├── package.json            # npm manifest (name, bin, files allowlist)
│
├── assets/                 # README assets
│   └── banner.svg
│
├── bin/
│   └── cli.js              # `npx @zunxbt/fhevm-skill` installer entry point
│
├── .github/
│   └── workflows/
│       └── publish.yml     # tag-triggered npm publish with provenance
│
├── .claude/                # Claude Code bundle (self-contained)
│   ├── CLAUDE.md           # entry point (auto-discovered by Claude Code)
│   └── skills/fhevm-skill/
│       ├── SKILL.md        # orchestrator (7 workflows)
│       ├── LICENSE.txt
│       ├── references/     # 22 reference docs (15 core + 7 new-SDK)
│       ├── templates/      # 3 contract templates
│       ├── review-modules/ # 7 audit modules + audit-protocol.md
│       └── scripts/        # fhe-lint.js (mechanical anti-pattern lint)
│
├── .agents/                # Codex / Windsurf bundle (mirror of .claude/skills/fhevm-skill/)
│   └── skills/fhevm-skill/
│       ├── SKILL.md
│       ├── LICENSE.txt
│       ├── references/
│       ├── templates/
│       ├── review-modules/
│       └── scripts/
│
├── .cursor/                # Cursor bundle (rules + same references / templates / review-modules / scripts)
│   ├── LICENSE.txt
│   ├── rules/              # fhevm-solidity.mdc, fhevm-testing.mdc, fhevm-frontend.mdc
│   ├── references/
│   ├── templates/
│   ├── review-modules/
│   └── scripts/
│
└── .windsurfrules          # Windsurf entry point (loads alongside .agents/)

📄 License

MIT. See LICENSE.