Logo di Dotnet Performance

Dotnet Performance

Community
wieslawsoltes
dotnet-performance

Evidence-first performance engineering workflow for coding agents combining portable .NET diagnostics with platform-native profiling, BenchmarkDotNet, application benchmarking, statistical validation, deployment, container, graphics, and GPU procedures.

Panoramica

Autorewieslawsoltes
RepositoryPerformance-Skill
Nome della skilldotnet-performance
Stelle
36
Fork
1
File inclusi
24
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 24 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da wieslawsoltes su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Dotnet Performance in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/wieslawsoltes/Performance-Skill/tree/main
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wieslawsoltes/Performance-Skill.git \
  .claude/skills/dotnet-performance
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Dotnet Performance in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Dotnet Performance non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Dotnet Performance non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

.NET Performance Engineering

Use this skill when investigating, explaining, fixing, benchmarking, or validating the performance of a .NET application, including ASP.NET Core, services, console applications, Avalonia, WPF, WinUI, MAUI, Skia, WebGPU, game/graphics engines, NativeAOT, and native-interoperability workloads.

This repository defines one skill. SKILL.md is the policy and routing entry point; detailed operational procedures live in a hierarchical reference tree. Load only the indexes and chapters required by the current investigation, then expand when evidence crosses an ownership boundary.

Non-negotiable rules

  • Profile and benchmark an optimized build, normally Release, in the real deployment form.
  • Record commit and dirty state, SDK/runtime, OS, architecture, hardware, power mode, workload, tool versions, environment overrides, and exact commands.
  • Establish a deterministic reproduction before changing code.
  • Separate cold startup, first use, warm steady state, overload, drain, and shutdown.
  • Warm tiered compilation, shaders, pipelines, caches, and pools unless cold behavior is the subject.
  • Collect evidence at every relevant ownership boundary: managed runtime, native library, kernel, scheduler, filesystem/network, dependency, driver, GPU, compositor, and display.
  • Do not infer managed retention from RSS alone.
  • Do not infer GPU saturation from high frame time, GPU API usage, or utilization alone.
  • Do not claim a fix from one average, one trace, one frame capture, one microbenchmark, or the fastest benchmark run.
  • Preserve raw artifacts and report missing symbols, dropped events, profiler overhead, environmental variance, and uncertainty.
  • Protect secrets and personal data in dumps, traces, logs, SQL spans, packet captures, and benchmark input corpora.
  • Treat command examples as version-sensitive. Query installed tool help first; it overrides examples when syntax differs. Use references/command-reference.md for verified selection rules and canonical forms.1

Required investigation output

Report:

  1. Symptom — observable impact and violated target.
  2. Reproduction — deterministic workload and environment.
  3. Collection — exact tools, commands, duration, and artifact paths.
  4. Evidence — counters, traces, captures, dumps, benchmark distributions, and measurements.
  5. Ownership — managed CPU, runtime, native CPU, kernel, scheduler, I/O, dependency, memory, driver, GPU, compositor, or display.
  6. Dominant cause — largest supported cost, wait, or fastest-growing resource.
  7. Fix — smallest high-leverage code or configuration change.
  8. Validation — equivalent before/after runs with spread and tail metrics.
  9. Residual risks — unresolved bottlenecks and measurement limits.

Never claim an improvement without before/after evidence from an equivalent workload.

Reference router

Always begin with references/index.md, references/core/index.md, and the verified references/command-reference.md.

Load additional domain indexes by question:

Load every relevant platform reference through references/platforms/index.md. A single-host investigation usually needs one platform document; cross-platform comparisons and remote/client-server scenarios may require several.

Do not load every document by default. Select the minimum set that answers the current hypothesis, but do not stop at an ownership boundary merely because another guide is required.

Fast triage sequence

  1. Build and run the production-equivalent configuration.
  2. Define workload phases, success metrics, and a stopping rule.
  3. Record System.Runtime counters plus process CPU and total memory.
  4. Capture managed CPU/runtime evidence with dotnet-trace when managed ownership is plausible.
  5. Capture repeated stacks when progress, starvation, or blocking is suspected.
  6. If total cost is unexplained, collect the platform-native CPU/scheduler/I/O/memory trace.
  7. For memory, compare managed live bytes, GC commitment, private/RSS/PSS, native allocations, mappings, graphics allocations, and GPU residency.
  8. For rendering, correlate application markers, CPU submission, GPU timestamps, native GPU capture, present, compositor, and display timing.
  9. For benchmark requests, choose micro, component, macro, load, or soak methodology before selecting BenchmarkDotNet or another harness.
  10. For production-only incidents, use bounded or triggered collection and record cgroup/host constraints.
  11. Implement only after evidence supports the dominant cause.
  12. Repeat the identical workload and publish median, spread, tail values, and raw artifacts.

Ownership tests

  • High process CPU with hot managed stacks: application/JIT/runtime work.
  • High process CPU below P/Invoke: native library, allocator, graphics API, or driver CPU.
  • Low CPU with repeated blocked stacks: synchronization, I/O, scheduler, queueing, or external dependency.
  • Rising ThreadPool queue with low CPU and blocking stacks: starvation or sync-over-async.
  • Stable managed live bytes with growing private/RSS: native heap, mappings, code heaps, fragmentation, graphics resources, or OS caches.
  • Growing live managed graph after equivalent full-collection points: managed retention or intentional unbounded cache.
  • Long CPU frame with short GPU timestamps: application/render-thread/driver CPU bound.
  • Short CPU submission with long GPU timestamps: GPU execution bound.
  • CPU and GPU complete early but present is late: swapchain, compositor, vsync, drawable starvation, or display pacing.
  • GPU idle gaps between dependent submissions: CPU starvation, excessive synchronization, serialization, or insufficient buffering.
  • High latency with low on-CPU time: off-CPU wait, queueing, dependency, throttling, or scheduler delay.
  • Startup improves but first action worsens: work was deferred rather than removed.
  • Benchmark improves but the product metric does not: the experiment omitted the critical path, used the wrong input distribution, or optimized a non-dominant operation.

Agent operating procedure

  • Inspect repository build, deployment, diagnostics, benchmark projects, input corpora, CI, and artifact conventions.
  • Create artifacts/performance/<issue-or-timestamp>/ or the repository equivalent.
  • Add a deterministic workload driver and stable markers when absent.
  • Store commands, environment metadata, analyzer/tool versions, and official reference links beside artifacts.
  • Analyze inclusive costs first, then exclusive costs, callees, waits, queueing, synchronization, and ownership.
  • Modify code only after the dominant cause is supported.
  • Add a benchmark, regression budget, telemetry marker, trace recipe, or lifetime invariant that prevents recurrence.
  • Keep large trace, capture, dump, and benchmark artifacts out of Git unless repository policy explicitly stores them.
  • Validate failure, cancellation, overload, cleanup, device-loss, and shutdown paths—not only the happy path.

Invalid conclusions to reject

  • “CPU is high, therefore method X is slow” without stacks.
  • “RSS grew, therefore the managed heap leaks.”
  • “The GC heap is stable, therefore there is no leak.”
  • “Average latency/frame time is under budget, therefore tails are healthy.”
  • “GPU utilization is high, therefore shader X is the bottleneck.”
  • “The render thread is busy, therefore the GPU is busy.”
  • “One frame capture represents steady-state behavior.”
  • “Fewer draw calls always means faster rendering.”
  • “More ThreadPool threads fix starvation.”
  • “Async code cannot block.”
  • “NativeAOT is automatically faster.”
  • “A microbenchmark improvement proves application improvement.”
  • “A statistically detectable delta is automatically product-significant.”
  • “One benchmark run proves the result.”

Documentation footnotes

Footnotes

  1. references/command-reference.md, which links to the current official documentation for the .NET diagnostic tools, BenchmarkDotNet, Xcode Instruments, Windows Performance Toolkit, Linux perf/BCC, PresentMon, RenderDoc, and vendor GPU profilers. ↩

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Dotnet Performance?

Evidence-first performance engineering workflow for coding agents combining portable .NET diagnostics with platform-native profiling, BenchmarkDotNet, application benchmarking, statistical validation, deployment, container, graphics, and GPU procedures.

Perché usare Dotnet Performance su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Dotnet Performance è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Dotnet Performance in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/wieslawsoltes/Performance-Skill/tree/main. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Dotnet Performance?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Dotnet Performance?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Dotnet Performance: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Dotnet Performance è gratuita?

Sì. È pubblicata su GitHub da wieslawsoltes con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇