Tsp Csharp
querylenshq/ef-querylens
Comprehensive C and .NET development skill for TSP projects.
Help users build sparse Merkle trees with Poseidon or SHA-256 hashing for ZK circuits, privacy pools, and state commitments using Nethereum.Merkle (.NET).
$ npx skills add Nethereum/Nethereum --skill sparse-merkle-trees -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Nethereum/Nethereum sparse-merkle-trees --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/nethereum-skills/skills/sparse-merkle-trees .claude/skills/sparse-merkle-trees && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sparse-merkle-trees" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/sparse-merkle-trees into .claude/skills/sparse-merkle-trees/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sparse-merkle-trees", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/sparse-merkle-treesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Nethereum/Nethereum --skill sparse-merkle-trees -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Nethereum/Nethereum sparse-merkle-trees --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/nethereum-skills/skills/sparse-merkle-trees .agents/skills/sparse-merkle-trees && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sparse-merkle-trees" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/sparse-merkle-trees into .agents/skills/sparse-merkle-trees/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sparse-merkle-trees", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Nethereum/Nethereum --skill sparse-merkle-trees -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Nethereum/Nethereum sparse-merkle-trees --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/nethereum-skills/skills/sparse-merkle-trees .cursor/skills/sparse-merkle-trees && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sparse-merkle-trees" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/sparse-merkle-trees into .cursor/skills/sparse-merkle-trees/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sparse-merkle-trees", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Nethereum/Nethereum.git --path plugins/nethereum-skills/skills/sparse-merkle-trees--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Nethereum/Nethereum --skill sparse-merkle-trees -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Nethereum/Nethereum sparse-merkle-trees --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/nethereum-skills/skills/sparse-merkle-trees .gemini/skills/sparse-merkle-trees && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sparse-merkle-trees" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/sparse-merkle-trees into .gemini/skills/sparse-merkle-trees/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sparse-merkle-trees", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Nethereum/Nethereum sparse-merkle-treesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Nethereum/Nethereum --skill sparse-merkle-trees -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/nethereum-skills/skills/sparse-merkle-trees .github/skills/sparse-merkle-trees && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sparse-merkle-trees" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/sparse-merkle-trees into .github/skills/sparse-merkle-trees/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sparse-merkle-trees", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Nethereum/Nethereum --skill sparse-merkle-trees -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Nethereum/Nethereum sparse-merkle-trees --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/nethereum-skills/skills/sparse-merkle-trees .opencode/skills/sparse-merkle-trees && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sparse-merkle-trees" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/sparse-merkle-trees into .opencode/skills/sparse-merkle-trees/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sparse-merkle-trees", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sparse-merkle-treesHelp users build sparse Merkle trees with Poseidon or SHA-256 hashing for ZK circuits, privacy pools, and state commitments using Nethereum.Merkle (.NET).
Sparse Merkle Trees is an agent skill from Nethereum/Nethereum. Help users build sparse Merkle trees with Poseidon or SHA-256 hashing for ZK circuits, privacy pools, and state commitments using Nethereum.Merkle (.NET). Use this skill whenever the user mentions sparse Merkle trees, SMT, Poseidon hashing, Celestia SMT, ZK-compatible state trees, nullifier sets, membership proofs, or PoseidonSmtHasher in a C/.NET context.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs. It works with .NET and C#. The repository describes itself as: Ethereum .Net cross platform integration library. The licence is MIT.
Read from SKILL.md and the folder at commit 229f278. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
dotnetFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
docs.nethereum.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sparse Merkle Trees loads about 1.2k tokens when it runs. Until then it costs about 95 tokens; SKILL.md has 284 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Nethereum/Nethereum at commit 229f278, republished under its MIT licence (© Nethereum). 284 words, ~1,216 tokens.
.claude/skills/sparse-merkle-trees/SKILL.md (or your agent's skills folder).Use this skill when a user wants to:
dotnet add package Nethereum.Merkle
dotnet add package Nethereum.UtilSparseMerkleBinaryTree<T> is a binary sparse Merkle tree where:
The ISmtHasher interface controls hashing. Three built-in strategies:
| Hasher | Hash Function | Use Case |
|---|---|---|
PoseidonSmtHasher | Poseidon (CircomT3 leaf, CircomT2 node) | ZK circuits |
CelestiaSmtHasher | SHA-256 with domain prefixes | Celestia compatibility |
DefaultSmtHasher | Any IHashProvider | Generic use |
The most common use case — a Poseidon-based tree whose root can be used directly as a public input in Circom proofs:
using Nethereum.Merkle.Sparse;
using Nethereum.Util.ByteArrayConvertors;
var smt = new SparseMerkleBinaryTree<byte[]>(
new PoseidonSmtHasher(),
new ByteArrayToByteArrayConvertor(),
new IdentitySmtKeyHasher(256));
smt.Put(key1, value1);
smt.Put(key2, value2);
var root = smt.ComputeRoot(); // Circom-compatible root hash
var value = smt.Get(key1);
smt.Delete(key1);Poseidon hash details:
Poseidon(key, value, 1) using CircomT3 (3 inputs)Poseidon(left, right) using CircomT2 (2 inputs)var smt = new SparseMerkleBinaryTree<byte[]>(
new CelestiaSmtHasher(),
new ByteArrayToByteArrayConvertor());
smt.Put(key, value);
var root = smt.ComputeRoot();Hash formulas:
SHA256(0x00 || path || SHA256(value))SHA256(0x01 || leftHash || rightHash)For trees that survive process restarts:
var storage = new InMemorySmtNodeStorage();
var smt = new SparseMerkleBinaryTree<byte[]>(
new PoseidonSmtHasher(),
new ByteArrayToByteArrayConvertor(),
new IdentitySmtKeyHasher(256),
storage: storage);
await smt.PutAsync(key1, value1);
await smt.PutAsync(key2, value2);
var root = await smt.ComputeRootAsync();
await smt.FlushAsync(); // Persist all nodes
// Later — reload from storage
var smt2 = new SparseMerkleBinaryTree<byte[]>(
new PoseidonSmtHasher(),
new ByteArrayToByteArrayConvertor(),
new IdentitySmtKeyHasher(256),
storage: storage);
await smt2.LoadRootAsync(root); // Lazy-loads nodes on demandvar entries = new Dictionary<byte[], byte[]>
{
{ key1, value1 },
{ key2, value2 },
{ key3, value3 }
};
smt.PutBatch(entries); // Sync
await smt.PutBatchAsync(entries); // Async
Console.WriteLine($"Leaves: {smt.LeafCount}");| Implementation | Description |
|---|---|
IdentitySmtKeyHasher(n) | Key bits used directly as path, n-bit depth |
Sha256SmtKeyHasher | SHA256(key) → 256-bit path |
For custom storage backends:
byte[] encoded = SmtNodeCodec.EncodeLeaf(path, valueBytes);
SmtNodeCodec.DecodeLeaf(encoded, out var path, out var value);
byte[] branch = SmtNodeCodec.EncodeBranch(leftHash, rightHash);
SmtNodeCodec.DecodeBranch(branch, 32, out var left, out var right);
bool isLeaf = SmtNodeCodec.IsLeaf(data);
bool isBranch = SmtNodeCodec.IsBranch(data);PoseidonSmtHasher uses LSB-first bit ordering, CelestiaSmtHasher uses MSB-firstInMemorySmtNodeStorage is thread-safe (ConcurrentDictionary) but for production use, implement ISmtNodeStorage with a database backendIdentitySmtKeyHasher requires keys to be the exact bit length specified — use Sha256SmtKeyHasher for variable-length keysFor full documentation, see: https://docs.nethereum.com/docs/consensus-and-cryptography/guide-sparse-merkle-zk
© Nethereum, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/nethereum-skills/skills/sparse-merkle-trees of Nethereum/Nethereum.
Open the folder on GitHubat commit 229f278
Sparse Merkle Trees next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sparse Merkle Trees this skillNethereum/Nethereum | 2.3k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Tsp Csharpquerylenshq/ef-querylens | 225 | — | ~1.3k | Automated safety check: Pass | MIT | |
| XML DocumentationVonage/vonage-dotnet-sdk | 118 | — | ~2.7k | Automated safety check: Pass | Apache-2.0 | |
| Dotnet 10 Csharp 14sketch7/FluentlyHttpClient | 121 | — | ~2.2k | Automated safety check: Pass | MIT | |
| DisCatSharp Discord DevelopmentAiko-IT-Systems/DisCatSharp | 140 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Foundationdb Advanced LayersSnowBankSDK/foundationdb-dotnet-client | 158 | — | ~3.4k | Automated safety check: Pass | BSD-3-Clause |
querylenshq/ef-querylens
Comprehensive C and .NET development skill for TSP projects.
Vonage/vonage-dotnet-sdk
Improve XML documentation in the Vonage .NET SDK. An agent skill from Vonage/vonage-dotnet-sdk.
sketch7/FluentlyHttpClient
A skill your agent uses when building .NET 10 or C 14 applications; when using minimal APIs, modular monolith patterns, or feature folders; when implementing HTTP resilience, Options pattern…
Aiko-IT-Systems/DisCatSharp
Helps build, explain and troubleshoot C# Discord apps on DisCatSharp, answering from the project's installed version and the library's documentation rather than guesses.
SnowBankSDK/foundationdb-dotnet-client
Advanced engineering for sophisticated FoundationDB layers with the .NET client (FoundationDB.Client / SnowBank) — the cluster model and transaction lifecycle (proxies, resolvers, tlogs, storage…
qusong0627/QuantMind
Guides building C# and .NET apps on the Tiger Brokers OpenAPI SDK: setup, market data, orders, accounts, options and real-time push, defaulting to paper trading.
Nethereum/Nethereum
Help users batch multiple calls into a single UserOperation and sponsor gas with paymasters using Nethereum Account Abstraction.
Nethereum/Nethereum
Help users run an ERC-4337 bundler using Nethereum — set up in-process or standalone bundlers with mempool, validation, reputation, and JSON-RPC server.
Nethereum/Nethereum
Encode and decode Ethereum ABI data with Nethereum. An agent skill from Nethereum/Nethereum.
Nethereum/Nethereum
Fetch contract ABIs from Sourcify, Etherscan, and 4Byte Directory using the composite ABIInfoStorage pattern (.NET/C).
Nethereum/Nethereum
Help users implement ERC-4337 Account Abstraction with Nethereum — send UserOperations, use smart accounts, route contract calls through a bundler, enable gasless transactions, or work with AA in…
Nethereum/Nethereum
Validate and format Ethereum addresses with Nethereum. An agent skill from Nethereum/Nethereum.
Categories
Help users build sparse Merkle trees with Poseidon or SHA-256 hashing for ZK circuits, privacy pools, and state commitments using Nethereum.Merkle (.NET). Sparse Merkle Trees is an agent skill from Nethereum/Nethereum.NET).
Sparse Merkle Trees fits situations like: the user mentions sparse Merkle trees; poseidon hashing; ZK-compatible state trees; membership proofs.
Run `npx skills add Nethereum/Nethereum --skill sparse-merkle-trees -a claude-code`. Or copy the skill folder (plugins/nethereum-skills/skills/sparse-merkle-trees in Nethereum/Nethereum) into .claude/skills/sparse-merkle-trees in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Nethereum/Nethereum --skill sparse-merkle-trees -a codex`. Or copy the skill folder (plugins/nethereum-skills/skills/sparse-merkle-trees in Nethereum/Nethereum) into .agents/skills/sparse-merkle-trees in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Nethereum/Nethereum --skill sparse-merkle-trees -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sparse-merkle-trees, .gemini/skills/sparse-merkle-trees, .github/skills/sparse-merkle-trees and .opencode/skills/sparse-merkle-trees in your project.
Going by SKILL.md and its folder, Sparse Merkle Trees needs the command-line tools its instructions call (dotnet).
SKILL.md names 1 domain. As links in the text: docs.nethereum.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sparse Merkle Trees is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sparse Merkle Trees: Tsp Csharp (querylenshq/ef-querylens, 225 stars), XML Documentation (Vonage/vonage-dotnet-sdk, 118 stars), Dotnet 10 Csharp 14 (sketch7/FluentlyHttpClient, 121 stars) and DisCatSharp Discord Development (Aiko-IT-Systems/DisCatSharp, 140 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Nethereum (a GitHub organization) maintains it in Nethereum/Nethereum, which has 2,260 GitHub stars. The repository holds 71 skills in this directory. The repository was last updated on October 5, 2026.
Source: Nethereum/Nethereum on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.