شعار 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 يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 24

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها wieslawsoltes على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Dotnet Performance في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/wieslawsoltes/Performance-Skill/tree/main
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
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؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Dotnet Performance معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Dotnet Performance مجانية؟

نعم. نشرها wieslawsoltes على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇