Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Arasz/ai-raccoon --skill dotnet-ai-embeddingsgit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-ai-embeddings)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-ai-embeddings"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-ai-embeddings/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-ai-embeddings"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-ai-embeddings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.04026 |
| Opus 5.5 | $0.00007 | $0.01610 |
| Sonnet 5.5 | $0.00003 | $0.00805 |
| Haiku 4.5 | $0.00002 | $0.00403 |
Grade A, and why
dotnet-ai-embeddings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.
.NET AI embeddings — integration & benchmarking
Integrating embedding backends into a .NET app, or benchmarking retrieval quality/latency across models. Verified end-to-end on a real project (benchmarks/AiRaccoon.Benchmarks): local GGUF (21 MB all-MiniLM) vs LM Studio (qwen3-0.6b, EmbeddingGemma-300m).
Architecture: everything behind IEmbeddingGenerator
Use Microsoft.Extensions.AI's IEmbeddingGenerator<string, Embedding<float>>
as the seam — one interface for every backend, so quality metrics are comparable across models:
| Backend | Package | Wiring |
|---|---|---|
| Local GGUF (llama.cpp) | LLamaSharp + LLamaSharp.Backend.Cpu |
LLamaWeights.LoadFromFile + LLamaEmbedder |
| LM Studio / OpenAI-compatible | OpenAI + Microsoft.Extensions.AI.OpenAI |
OpenAIClient → GetEmbeddingClient(model).AsIEmbeddingGenerator() |
| In-process ONNX (bundled MiniLM) | Microsoft.ML.OnnxRuntime + Microsoft.ML.Tokenizers |
InferenceSession + BertTokenizer + mean-pool/L2 adapter |
Call through the interface type — the extension overloads resolve TInput
ambiguously against string[] collection expressions. Use an explicit array variable and cast to IEmbeddingGenerator<string, Embedding<float>> before
GenerateAsync(values, options: null, ct).
CRITICAL: LLamaSharp 0.27 embedder bug
LLamaEmbedder's built-in interface GenerateAsync implementation touches a disposed context handle (ObjectDisposedException: SafeLLamaContextHandle). The working path:
var @params = new ModelParams(path) { PoolingType = LLamaPoolingType.Mean }; // NOT Embeddings=true
var weights = LLamaWeights.LoadFromFile(@params); // sync load
var embedder = new LLamaEmbedder(weights, @params, NullLogger.Instance); // 2-3 arg ctor
var embeddings = await embedder.GetEmbeddings(text); // works, returns Embeddings (float[][])
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 178 lines · 17 tokens per session scan A deadaa381279
dotnet-ai-embeddings is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 4,026 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.
dotnet-ai-embeddings compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dotnet-ai-embeddingsArasz/ai-raccoon | Skill | 7 | today | MIT | A | 17 | Claude Code, Codex |
| cartographer-kb-ingest-planBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 94 | Claude Code, Codex |
| knowledge-graphariaxhan/kernel-claude | Skill | 16 | yesterday | MIT | A | 52 | Claude Code |
| reward-designbojieli/ai-agent-book | Skill | 61k | yesterday | Apache-2.0 | A | 131 | Claude Code, Codex |
| agent-evolutionbojieli/ai-agent-book | Skill | 61k | yesterday | Apache-2.0 | A | 126 | Claude Code, Codex |
| bad-case-to-dpobojieli/ai-agent-book | Skill | 61k | yesterday | Apache-2.0 | A | 168 | Claude Code, Codex |
| knowledge-orgbojieli/ai-agent-book | Skill | 61k | yesterday | Apache-2.0 | A | 96 | Claude Code, Codex |