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でも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 24個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    wieslawsoltesがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Dotnet Performance」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/wieslawsoltes/Performance-Skill/tree/main
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wieslawsoltes/Performance-Skill.git \
  .claude/skills/dotnet-performance
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDotnet Performanceを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDotnet Performanceを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Dotnet Performanceは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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. ↩

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでDotnet Performanceを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Dotnet Performanceはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDotnet Performanceをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/wieslawsoltes/Performance-Skill/tree/mainを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Dotnet Performanceを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Dotnet Performanceで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDotnet Performanceを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Dotnet Performance」は無料ですか?

はい。wieslawsoltesがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇