Логотип Dotnet Performance

Dotnet Performance

Спільнота
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.

Огляд

Видавецьwieslawsoltes
РепозиторійPerformance-Skill
Назва навичкиdotnet-performance
Зірки
36
Форки
1
Файли в пакеті
24
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 24

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: wieslawsoltes. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Dotnet Performance у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/wieslawsoltes/Performance-Skill/tree/main
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wieslawsoltes/Performance-Skill.git \
  .claude/skills/dotnet-performance
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Dotnet Performance в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Dotnet Performance, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Dotnet Performance не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

.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. ↩

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Dotnet Performance у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Dotnet Performance — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Dotnet Performance у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/wieslawsoltes/Performance-Skill/tree/main. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Dotnet Performance?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Dotnet Performance?

Зі скількома забажаєте. У TypingMind ви можете використовувати Dotnet Performance із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Dotnet Performance?

Так. На GitHub цю навичку публікує wieslawsoltes за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇