Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Local AI for .NET

Adds offline search embeddings, entity extraction and chat to a .NET app with Starling, no cloud API needed.

Claude's review

7/10 Verified Starling .NET patterns with real traps: one native ONNX runtime package, e5 prefixes, OpenLocal exceptions, truncation versus throw per model.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Use when adding local AI to a .NET app with the Starlings.* NuGet packages from starlinghq/starling. Covers text embeddings (multilingual-e5-small, EmbeddingGemma 2), image and video embeddings (EmbeddingGemma 2), zero-shot entity extraction (GLiNER2), and local chat with tool calling (Qwen3.5-0.8B) on ONNX Runtime, CPU or CUDA, through Microsoft.Extensions.AI (IEmbeddingGenerator, IChatClient) or typed APIs.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: starling-dotnet
description: Use when adding local AI to a .NET app with the Starlings.* NuGet packages from starlinghq/starling. Covers text embeddings (multilingual-e5-small, EmbeddingGemma 2), image and video embeddings (EmbeddingGemma 2), zero-shot entity extraction (GLiNER2), and local chat with tool calling (Qwen3.5-0.8B) on ONNX Runtime, CPU or CUDA, through Microsoft.Extensions.AI (IEmbeddingGenerator, IChatClient) or typed APIs.
---

# Using Starling in a .NET app

Starling ships open models as NuGet libraries that run in-process on ONNX Runtime. Each model is pinned to an exact upstream commit, its files are checked by SHA-256, and its outputs are tested against the original Python implementation. Repository: https://github.com/starlinghq/starling.

## Pick the package

| Task | Model | Package | Native runtime the app must add |
| --- | --- | --- | --- |
| Text embeddings, multilingual, small (384 dims) | multilingual-e5-small | `Starlings.Models.E5.Extensions.AI` | `Microsoft.ML.OnnxRuntime` 1.30.0 |
| Text embeddings, higher quality (768 dims, Matryoshka) | EmbeddingGemma 2 | `Starlings.Models.EmbeddingGemma2.Extensions.AI` | `Microsoft.ML.OnnxRuntime` 1.30.0 |
| Image search (text to image), shared text-image space | EmbeddingGemma 2 | above plus `Starlings.Models.EmbeddingGemma2.Imaging.SkiaSharp` | `Microsoft.ML.OnnxRuntime` 1.30.0 |
| Video search | EmbeddingGemma 2 | above plus `Starlings.Models.EmbeddingGemma2.Video.FFmpeg` (FFmpeg 8) or `.Video.FFmpeg9` (FFmpeg 9), both first published in 0.2.0 | `Microsoft.ML.OnnxRuntime` 1.30.0 and your own LGPL FFmpeg shared libraries (none are shipped) |
| Entity extraction with any labels (NER) | GLiNER2 | `Starlings.Models.Gliner2` | `Microsoft.ML.OnnxRuntime` 1.30.0 |
| Local chat, generation and tool calling | Qwen3.5-0.8B | `Starlings.Models.Qwen35.Extensions.AI` | `Microsoft.ML.OnnxRuntimeGenAI` 0.17.1 |

ML.NET transformers exist for e5 and EmbeddingGemma 2 (`*.MLNet`). The target framework is `net10.0`.

`Starlings.Models.Kev` (Kev-0.8B and Kev-4B decision models) and `Starlings.Models.QwenChat` (Qwen3-0.6B and Qwen2.5-0.5B-Instruct chat) are on nuget.org from 0.3.0 with Experimental profiles only; from 0.4.0 they are model definitions without a runtime, and their runtime packages are `Starlings.Models.Kev.Onnx` and `Starlings.Models.QwenChat.OnnxGenAI`. `Starlings.Models.Bert` (BERT-family embeddings and rerankers) and the browser packages (`Starlings.Models.E5.Browser`, `Starlings.Runtime.OnnxWeb`, `Starlings.Runtime.OnnxWeb.WebGpu`) are on nuget.org from 0.4.0 with Experimental profiles only. `Starlings.Models.Whisper` and `Starlings.Models.Lfm3` also exist in the repository; they are experimental, not published to nuget.org, and build only from source. None of these has a Stable profile; don't recommend them for an app unless the user asks for those models.

**Always add exactly one native ONNX Runtime package to the application project**, at the version in the table. The libraries reference only the managed binding. For CUDA on Linux x64, use `Microsoft.ML.OnnxRuntime.Gpu.Linux` 1.30.0 instead of `Microsoft.ML.OnnxRuntime`, never both. For Qwen on CUDA, use `Microsoft.ML.OnnxRuntimeGenAI.Cuda` 0.17.1 instead of `Microsoft.ML.OnnxRuntimeGenAI`.

## Load models: download once, then run offline

Every model has a `*ModelAssets` class:

- `DownloadAsync()` fetches the pinned files, or verifies cached ones. It is the only call that uses the network; call it at setup or deploy time.
- `OpenLocal()` loads from the cache and never downloads. It is synchronous and blocking (file I/O plus SHA-256), and returns the same `*ModelFiles` type as `DownloadAsync`. If a file is missing it throws `ModelAssetMissingException`, and if a file is corrupt, `ModelAssetIntegrityException`. Use it in production paths that must not touch the network.

```csharp
E5ModelFiles files = E5ModelAssets.OpenLocal();                                  // e5, GLiNER2, EmbeddingGemma 2 text
var images = EmbeddingGemma2ModelAssets.OpenLocalImageAssets();                  // EmbeddingGemma 2 image/video
var qwen = Qwen35ModelAssets.OpenLocal(Qwen35Variant.Fp32x);                     // Qwen takes the variant
var custom = E5ModelAssets.OpenLocal(new ModelAcquisitionOptions { CacheDirectory = "/srv/models" });
```

...

From starlinghq's repository, Apache-2.0 licence.

Related skills

  • Checked

    Rust best practices

    Writes and reviews idiomatic, maintainable Rust code and runs a checklist before handing it back to you.

    by morganlinton 2.2k
    7/101 credit
  • Checked

    Port code to Rust

    Ports C, C++, Python, Go or JavaScript code into idiomatic Rust, with tests that prove it behaves the same.

    by morganlinton 2.2k
    8/101 credit
  • Checked

    Rust code review

    Reviews Rust code for idiom, errors, safety and API design, with a ranked report and a fix for every finding.

    by morganlinton 2.2k
    7/101 credit
  • Checked

    Java Debugging Guide

    Finds the cause of Java bugs and failing tests, and attaches a debugger safely in Maven, Gradle, Spring or Docker.

    by github 42k
    7/101 credit
  • Checked

    Python games with pygame

    Builds and debugs 2D pygame games with a proper loop and delta time, so they run the same on any PC.

    by gamedev-skills 13k
    7/101 credit
  • Checked

    Go Benchmarking and Profiling

    Writes Go benchmarks, profiles them with pprof and proves each speedup with benchstat before you claim it.

    by samber 4k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added