[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BXVAEGAGEHAD2YR502CBD1":3,"skill-same:01M6BXVAEGAGEHAD2YR502CBD1":112},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":14,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6BXVAEGAGEHAD2YR502CBD1","dotnet-trace-collect",".NET 性能诊断追踪采集","Guides capturing diagnostic artifacts to diagnose production .NET performance problems: choosing tools, collecting performance data, and understanding trade-offs across Windows and Linux, .NET Framework and modern .NET, and container and non-container environments. Use when the user needs help choosing a diagnostic tool or collecting performance data for a .NET process. Not for crash dumps (use dump-collect), repository-level profiling workflows (use profiling), or analyzing collected traces.","指导捕获诊断工件以排查生产环境 .NET 性能问题：选择工具、收集性能数据，并理解 Windows 与 Linux、.NET Framework 与现代 .NET、容器与非容器环境之间的权衡。当用户需要帮助选择诊断工具或为 .NET 进程收集性能数据时使用。不适用于崩溃转储（使用 dump-collect）、仓库级性能剖析工作流（使用 profiling）或分析已采集的追踪数据。","Cratis\u002FSpecifications","Cratis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16456213?v=4","01M6BXRH290K4C8RS4PTKK3HXQ","01M6BXRH6YXJMJ3140T8TVBSB4",1,"MIT","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C796JZ1YCTM2B2X7TKEWZZ","性能剖析与优化","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"collect","dotnet trace collect","trace","dotnet","workflows","windows","diagnose","help","artifacts","framework","linux","repository","analyzing","data","Production","Tools","tool","performance","2026-11-10 10:12:30",false,"---\nname: dotnet-trace-collect\ndescription: 'Guides capturing diagnostic artifacts to diagnose production .NET performance problems: choosing tools, collecting performance data, and understanding trade-offs across Windows and Linux, .NET Framework and modern .NET, and container and non-container environments. Use when the user needs help choosing a diagnostic tool or collecting performance data for a .NET process. Not for crash dumps (use dump-collect), repository-level profiling workflows (use profiling), or analyzing collected traces.'\nlicense: MIT\n---\n\u003C!-- cratis-ai-managed: skills\u002Fdotnet-trace-collect\u002FSKILL.md -->\n\n\u003C!-- Modified by Cratis from dotnet's original (MIT): frontmatter, applicability, navigation and the changes listed in NOTICE. Upstream: https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills (plugins\u002Fdotnet-diag\u002Fskills\u002Fdotnet-trace-collect\u002FSKILL.md; see NOTICE) -->\n\n# .NET Trace Collect\n\nCratis rules in `.cratis\u002Fai\u002Frules\u002F` (including `csharp.md`, `specs.csharp.md`, and `orleans.md`) and the `cratis-*` skills win where they differ.\n\nThis skill helps developers diagnose production performance issues by recommending the right diagnostic tools for their environment, guiding data collection, and suggesting analysis approaches. It does not analyze code for anti-patterns or perform the analysis itself.\n\n## When to Use\n\n- A developer needs to investigate a production performance issue (high CPU, memory leak, slow requests, excessive GC, networking errors, etc.)\n- Choosing the right diagnostic tool for a specific runtime, OS, or deployment topology\n- Setting up and running diagnostic tool commands for data collection\n- Understanding trade-offs between available tools (e.g. PerfView vs dotnet-trace)\n- Collecting diagnostics from containerized or Kubernetes workloads\n\n## When Not to Use\n\n- Reviewing source code for performance anti-patterns (use a code review skill instead)\n- Benchmarking during development (e.g. BenchmarkDotNet setup)\n- Analyzing collected trace or dump files (this skill recommends tools for analysis, but does not perform it)\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Symptom | Yes | What the developer is observing (high CPU, memory growth, slow requests, hangs, excessive GC, HTTP 5xx errors, networking timeouts, connection failures, assembly loading failures, etc.) |\n| Runtime | Yes | .NET Framework or modern .NET (and version, especially whether .NET 10+) |\n| OS | Yes | Windows or Linux |\n| Deployment | Yes | Non-container, container, or Kubernetes |\n| Admin privileges | Recommended | Whether the developer has admin\u002Froot access on the target machine |\n| Repro characteristics | Recommended | Whether the issue is easy to reproduce or requires a long time to manifest |\n\n## Workflow\n\n### Step 1: Understand the environment\n\nDetermine or ask the developer to clarify:\n\n1. **Symptom**: What they are observing (high CPU, memory leak, slow requests, hangs, excessive GC, HTTP 5xx errors, networking timeouts, connection failures, assembly loading failures, etc.)\n2. **Runtime**: .NET Framework or modern .NET? If modern .NET, which version? (Especially whether .NET 10 or later.)\n3. **OS**: Windows or Linux?\n4. **Deployment**: Running directly on the host, in a container, or in Kubernetes?\n5. **Admin privileges**: Do they have admin\u002Froot access on the target machine or container?\n6. **Repro characteristics**: Does the issue reproduce quickly, or does it take a long time to manifest?\n7. **Workload context**: Determine or ask the user if you are running in the context of the workload (i.e., on the same machine or connected to the same environment where the issue is occurring). If so, you can run diagnostic commands directly on their behalf. If not, provide the commands as guidance for the user to run themselves.\n\nUse this information to select the right tool in Step 2.\n\nRead references\u002Ftool-selection.md when selecting the relevant diagnostic workflow.\n\n### Step 3: Guide data collection\n\nProvide the specific commands for the recommended tool. Load the appropriate reference file from the [tool reference lookup](references\u002Ftool-selection.md#tool-reference-lookup) table for detailed command-line examples.\n\nKey guidance to include:\n\n> **Cratis:** Downloads or installs a tool: requires the user's approval; prefer a pinned version (`dotnet tool install \u003Ctool> --version \u003Cx>`)\n1. **Installation**: How to install the tool if it is not already available (e.g. `dotnet tool install -g dotnet-trace`). **When recommending multiple tools, provide installation and usage instructions for each one** — do not mention a tool without showing how to install and use it.\n2. **PID discovery (required before any `-p \u003CPID>` command)**: Verify the target process first (for example: `dotnet-trace ps`, `curl \u003Cmonitor-endpoint>\u002Fprocesses`, or `ps` inside a container). If the app is expected to be PID 1 in a container, still verify before collecting.\n3. **Collection command**: The exact command to run, including relevant providers, output format, and duration.\n4. **Container considerations**:\n   - Collecting from **inside** the container: ensure the tool is installed in the image or use `kubectl cp` to copy it in.\n   - Collecting from **outside** the container: use `dotnet-monitor` as a sidecar with a shared diagnostic port (Unix domain socket in `\u002Ftmp`).\n   - Kubernetes: `dotnet-monitor` as a sidecar container, or `kubectl debug` for ephemeral debug containers.\n5. **Long-running repros** (Windows\u002FPerfView): show how to use trigger arguments and circular buffer settings.\n6. **Output location**: Where the collected file will be saved and how to copy it off the target for analysis.\n7. **Artifact handoff checklist**: Include runtime version, OS\u002Fkernel, container image tag or build SHA, PID\u002Fprocess name, UTC collection start\u002Fend timestamps, exact command used, and final artifact path when handing traces to someone else for analysis.\n\n### Step 4: Recommend analysis approach\n\nAfter data is collected, recommend the appropriate tool for analysis. Do **not** perform the analysis — just point the developer to the right tool and documentation.\n\n| Collected Data | Analysis Tool | Notes |\n|----------------|---------------|-------|\n| `.nettrace` file | PerfView (Windows), Speedscope (web) | PerfView gives the richest view on Windows |\n| `.etl` \u002F `.etl.zip` file | PerfView | ETW traces from PerfView or perfcollect |\n| `perf.data.nl` from perfcollect | PerfView (Windows) | Copy the file to a Windows machine and open with PerfView |\n\n## Validation\n\n- [ ] The recommended tool is compatible with the developer's runtime, OS, and deployment topology\n- [ ] The collection command runs without errors\n- [ ] The output file is generated in the expected location\n- [ ] The developer knows which analysis tool to use for the collected data\n\n## Common Pitfalls\n\n> **Cratis:** Requires the user's explicit approval: downloads and runs a script as root \u002F changes container security.\n> **Cratis:** Downloads or installs a tool: requires the user's approval; prefer a pinned version (`dotnet tool install \u003Ctool> --version \u003Cx>`)\n\n| Pitfall | Solution |\n|---------|----------|\n| Using `dotnet-trace` on .NET Framework | `dotnet-trace` only works with modern .NET (.NET Core 3.0+). Use PerfView for .NET Framework. |\n| PerfView without admin privileges | PerfView requires admin for ETW tracing. Fall back to `dotnet-trace` if admin is not available. |\n| `perfcollect` in container without `SYS_ADMIN` | Containers drop `SYS_ADMIN` by default. Run with `--privileged` or add `SYS_ADMIN` capability, or fall back to `dotnet-trace`. |\n| Huge trace files from long repros | On Windows, use PerfView `\u002FStopOn` triggers that fire on the symptom you want to capture (e.g., `\u002FStopOnPerfCounter`, `\u002FStopOnGCEvent`, `\u002FStopOnException`) with `\u002FCircularMB` and `\u002FBufferSizeMB`. **Never trigger on recovery** — the circular buffer continuously overwrites old data, so the interesting behavior may be lost by the time collection stops. |\n| Diagnostic port not accessible in container | Mount `\u002Ftmp` as a shared volume between the app container and `dotnet-monitor` sidecar for the diagnostic Unix domain socket. |\n| Forgetting to install tools in container image | Add `dotnet tool install` to your Dockerfile, or use `dotnet-monitor` as a sidecar to avoid modifying the app image. |\n| Exposing `dotnet-monitor` with `--no-auth` in production | Keep auth enabled, bind to localhost, and use `kubectl port-forward` for access. Use `--no-auth` only for short-lived isolated debugging. |\n| Collecting only CPU\u002Fthread-time trace for networking issues | CPU and thread-time traces alone do not show HTTP status codes, DNS timing, or connection pool behavior. Add the networking providers (`System.Net.Http`, `System.Net.NameResolution`, `System.Net.Security`, `System.Net.Sockets`) alongside the thread-time trace. |\n| Enabling all networking providers when only one is needed | Each networking provider adds overhead. If the issue is clearly HTTP-level (5xx status codes), `System.Net.Http` alone may be sufficient. Add DNS, TLS, and socket providers when the root cause is unclear. |\n\n## Reference navigation\n\n- Read references\u002Fdotnet-monitor.md when working on dotnet monitor.\n- Read references\u002Fdotnet-trace-collect-linux.md when working on dotnet trace collect linux.\n- Read references\u002Fdotnet-trace-collect.md when working on dotnet trace collect.\n- Read references\u002Fperfcollect.md when working on perfcollect.\n- Read references\u002Fperfview.md when working on perfview.\n","\u003C!-- cratis-ai-managed: skills\u002Fdotnet-trace-collect\u002FSKILL.md -->\n\n\u003C!-- Modified by Cratis from dotnet's original (MIT): frontmatter, applicability, navigation and the changes listed in NOTICE. Upstream: https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills (plugins\u002Fdotnet-diag\u002Fskills\u002Fdotnet-trace-collect\u002FSKILL.md; see NOTICE) -->\n\n# .NET Trace Collect\n\nCratis rules in `.cratis\u002Fai\u002Frules\u002F` (including `csharp.md`, `specs.csharp.md`, and `orleans.md`) and the `cratis-*` skills win where they differ.\n\nThis skill helps developers diagnose production performance issues by recommending the right diagnostic tools for their environment, guiding data collection, and suggesting analysis approaches. It does not analyze code for anti-patterns or perform the analysis itself.\n\n## When to Use\n\n- A developer needs to investigate a production performance issue (high CPU, memory leak, slow requests, excessive GC, networking errors, etc.)\n- Choosing the right diagnostic tool for a specific runtime, OS, or deployment topology\n- Setting up and running diagnostic tool commands for data collection\n- Understanding trade-offs between available tools (e.g. PerfView vs dotnet-trace)\n- Collecting diagnostics from containerized or Kubernetes workloads\n\n## When Not to Use\n\n- Reviewing source code for performance anti-patterns (use a code review skill instead)\n- Benchmarking during development (e.g. BenchmarkDotNet setup)\n- Analyzing collected trace or dump files (this skill recommends tools for analysis, but does not perform it)\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Symptom | Yes | What the developer is observing (high CPU, memory growth, slow requests, hangs, excessive GC, HTTP 5xx errors, networking timeouts, connection failures, assembly loading failures, etc.) |\n| Runtime | Yes | .NET Framework or modern .NET (and version, especially whether .NET 10+) |\n| OS | Yes | Windows or Linux |\n| Deployment | Yes | Non-container, container, or Kubernetes |\n| Admin privileges | Recommended | Whether the developer has admin\u002Froot access on the target machine |\n| Repro characteristics | Recommended | Whether the issue is easy to reproduce or requires a long time to manifest |\n\n## Workflow\n\n### Step 1: Understand the environment\n\nDetermine or ask the developer to clarify:\n\n1. **Symptom**: What they are observing (high CPU, memory leak, slow requests, hangs, excessive GC, HTTP 5xx errors, networking timeouts, connection failures, assembly loading failures, etc.)\n2. **Runtime**: .NET Framework or modern .NET? If modern .NET, which version? (Especially whether .NET 10 or later.)\n3. **OS**: Windows or Linux?\n4. **Deployment**: Running directly on the host, in a container, or in Kubernetes?\n5. **Admin privileges**: Do they have admin\u002Froot access on the target machine or container?\n6. **Repro characteristics**: Does the issue reproduce quickly, or does it take a long time to manifest?\n7. **Workload context**: Determine or ask the user if you are running in the context of the workload (i.e., on the same machine or connected to the same environment where the issue is occurring). If so, you can run diagnostic commands directly on their behalf. If not, provide the commands as guidance for the user to run themselves.\n\nUse this information to select the right tool in Step 2.\n\nRead references\u002Ftool-selection.md when selecting the relevant diagnostic workflow.\n\n### Step 3: Guide data collection\n\nProvide the specific commands for the recommended tool. Load the appropriate reference file from the [tool reference lookup](references\u002Ftool-selection.md#tool-reference-lookup) table for detailed command-line examples.\n\nKey guidance to include:\n\n> **Cratis:** Downloads or installs a tool: requires the user's approval; prefer a pinned version (`dotnet tool install \u003Ctool> --version \u003Cx>`)\n1. **Installation**: How to install the tool if it is not already available (e.g. `dotnet tool install -g dotnet-trace`). **When recommending multiple tools, provide installation and usage instructions for each one** — do not mention a tool without showing how to install and use it.\n2. **PID discovery (required before any `-p \u003CPID>` command)**: Verify the target process first (for example: `dotnet-trace ps`, `curl \u003Cmonitor-endpoint>\u002Fprocesses`, or `ps` inside a container). If the app is expected to be PID 1 in a container, still verify before collecting.\n3. **Collection command**: The exact command to run, including relevant providers, output format, and duration.\n4. **Container considerations**:\n   - Collecting from **inside** the container: ensure the tool is installed in the image or use `kubectl cp` to copy it in.\n   - Collecting from **outside** the container: use `dotnet-monitor` as a sidecar with a shared diagnostic port (Unix domain socket in `\u002Ftmp`).\n   - Kubernetes: `dotnet-monitor` as a sidecar container, or `kubectl debug` for ephemeral debug containers.\n5. **Long-running repros** (Windows\u002FPerfView): show how to use trigger arguments and circular buffer settings.\n6. **Output location**: Where the collected file will be saved and how to copy it off the target for analysis.\n7. **Artifact handoff checklist**: Include runtime version, OS\u002Fkernel, container image tag or build SHA, PID\u002Fprocess name, UTC collection start\u002Fend timestamps, exact command used, and final artifact path when handing traces to someone else for analysis.\n\n### Step 4: Recommend analysis approach\n\nAfter data is collected, recommend the appropriate tool for analysis. Do **not** perform the analysis — just point the developer to the right tool and documentation.\n\n| Collected Data | Analysis Tool | Notes |\n|----------------|---------------|-------|\n| `.nettrace` file | PerfView (Windows), Speedscope (web) | PerfView gives the richest view on Windows |\n| `.etl` \u002F `.etl.zip` file | PerfView | ETW traces from PerfView or perfcollect |\n| `perf.data.nl` from perfcollect | PerfView (Windows) | Copy the file to a Windows machine and open with PerfView |\n\n## Validation\n\n- [ ] The recommended tool is compatible with the developer's runtime, OS, and deployment topology\n- [ ] The collection command runs without errors\n- [ ] The output file is generated in the expected location\n- [ ] The developer knows which analysis tool to use for the collected data\n\n## Common Pitfalls\n\n> **Cratis:** Requires the user's explicit approval: downloads and runs a script as root \u002F changes container security.\n> **Cratis:** Downloads or installs a tool: requires the user's approval; prefer a pinned version (`dotnet tool install \u003Ctool> --version \u003Cx>`)\n\n| Pitfall | Solution |\n|---------|----------|\n| Using `dotnet-trace` on .NET Framework | `dotnet-trace` only works with modern .NET (.NET Core 3.0+). Use PerfView for .NET Framework. |\n| PerfView without admin privileges | PerfView requires admin for ETW tracing. Fall back to `dotnet-trace` if admin is not available. |\n| `perfcollect` in container without `SYS_ADMIN` | Containers drop `SYS_ADMIN` by default. Run with `--privileged` or add `SYS_ADMIN` capability, or fall back to `dotnet-trace`. |\n| Huge trace files from long repros | On Windows, use PerfView `\u002FStopOn` triggers that fire on the symptom you want to capture (e.g., `\u002FStopOnPerfCounter`, `\u002FStopOnGCEvent`, `\u002FStopOnException`) with `\u002FCircularMB` and `\u002FBufferSizeMB`. **Never trigger on recovery** — the circular buffer continuously overwrites old data, so the interesting behavior may be lost by the time collection stops. |\n| Diagnostic port not accessible in container | Mount `\u002Ftmp` as a shared volume between the app container and `dotnet-monitor` sidecar for the diagnostic Unix domain socket. |\n| Forgetting to install tools in container image | Add `dotnet tool install` to your Dockerfile, or use `dotnet-monitor` as a sidecar to avoid modifying the app image. |\n| Exposing `dotnet-monitor` with `--no-auth` in production | Keep auth enabled, bind to localhost, and use `kubectl port-forward` for access. Use `--no-auth` only for short-lived isolated debugging. |\n| Collecting only CPU\u002Fthread-time trace for networking issues | CPU and thread-time traces alone do not show HTTP status codes, DNS timing, or connection pool behavior. Add the networking providers (`System.Net.Http`, `System.Net.NameResolution`, `System.Net.Security`, `System.Net.Sockets`) alongside the thread-time trace. |\n| Enabling all networking providers when only one is needed | Each networking provider adds overhead. If the issue is clearly HTTP-level (5xx status codes), `System.Net.Http` alone may be sufficient. Add DNS, TLS, and socket providers when the root cause is unclear. |\n\n## Reference navigation\n\n- Read references\u002Fdotnet-monitor.md when working on dotnet monitor.\n- Read references\u002Fdotnet-trace-collect-linux.md when working on dotnet trace collect linux.\n- Read references\u002Fdotnet-trace-collect.md when working on dotnet trace collect.\n- Read references\u002Fperfcollect.md when working on perfcollect.\n- Read references\u002Fperfview.md when working on perfview.\n",{"name":5,"license":15,"description":7},"main","c392076c8b3fae3b8b31e7d5684d71f9be75e8bb",".cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications","https:\u002F\u002Fwww.cratis.io\u002Fspecifications\u002F","https:\u002F\u002Fgithub.com\u002FCratis","https:\u002F\u002Fwww.cratis.io","Open-source (MIT) event sourcing and CQRS for .NET and beyond: Chronicle, Arc, Components and Screenplay.","2026-11-14 15:53:54",{"source":9,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add Cratis\u002FSpecifications --skill dotnet-trace-collect",{"tool":68,"command":69},"bunx","bunx skills add Cratis\u002FSpecifications --skill dotnet-trace-collect",{"tool":71,"command":72},"pnpm","pnpm dlx skills add Cratis\u002FSpecifications --skill dotnet-trace-collect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect\u002FSKILL.md",true,[76,80,86,92,96,100,104,108],{"path":77,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":16},"LICENSE","许可证",1173,{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"NOTICE","OTHER","其他",5738,"https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect\u002FNOTICE",{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fdotnet-monitor.md","REFERENCE","参考文档",3802,"https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect\u002Freferences\u002Fdotnet-monitor.md",{"path":93,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fdotnet-trace-collect-linux.md",3437,"https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect\u002Freferences\u002Fdotnet-trace-collect-linux.md",{"path":97,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fdotnet-trace-collect.md",3450,"https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect\u002Freferences\u002Fdotnet-trace-collect.md",{"path":101,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fperfcollect.md",6134,"https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect\u002Freferences\u002Fperfcollect.md",{"path":105,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fperfview.md",8063,"https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect\u002Freferences\u002Fperfview.md",{"path":109,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Ftool-selection.md",16930,"https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fdotnet-trace-collect\u002Freferences\u002Ftool-selection.md",[113,132,154,184,206,223],{"skillNo":114,"name":115,"nameZh":116,"description":117,"descriptionZh":118,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":119,"sourceHtmlUrl":120,"categories":121,"keywords":124,"publishedAt":48},"01M6BXWPJZ1W4FTAZ7N0B718XQ","vectorization",".NET SIMD 向量化代码","Designs, implements, optimizes, and reviews SIMD code in .NET: vectorizing scalar loops with TensorPrimitives, Vector64, Vector128, Vector256, Vector512, or hardware intrinsics, and reviewing existing SIMD code, including the generic Vector type, for contract equivalence, tail handling, memory safety, portability, fallbacks, and measured performance. Use when a .NET loop or SIMD routine is being written or reviewed. Not for performance work unrelated to SIMD.","设计、实现、优化和审查 .NET 中的 SIMD 代码：使用 TensorPrimitives、Vector64、Vector128、Vector256、Vector512 或硬件内部函数将标量循环向量化，并审查现有 SIMD 代码（包括泛型 Vector 类型）的契约等价性、尾部处理、内存安全性、可移植性、回退方案和实测性能。当正在编写或审查 .NET 循环或 SIMD 例程时使用。不用于与 SIMD 无关的性能工作。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fvectorization\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fvectorization\u002FSKILL.md",[122,123],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[115,125,126,127,128,129,47,130,131],"loop","Safety","simd","vector","code","memory safety","memory",{"skillNo":133,"name":134,"nameZh":135,"description":136,"descriptionZh":137,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":138,"sourceHtmlUrl":139,"categories":140,"keywords":145,"publishedAt":48},"01M6BXWKDP8VKEXE9WN5R8R1E0","target-authoring","MSBuild自定义目标编写","Canonical patterns for writing custom MSBuild targets: DependsOnTargets versus BeforeTargets and AfterTargets, the Build-to-CoreBuild three-level pattern, and the XxxDependsOn chain-extension pattern. Use when diagnosing or fixing custom-target anti-patterns: Directory.Build.targets redefining SDK targets, targets that replace CompileDependsOn instead of extending it, Outputs versus Returns misuse that returns stale results, missing Inputs\u002FOutputs causing needless rebuilds, or missing FileWrites registration. Not for incremental build tuning or general anti-pattern review (use the msbuild skill), or non-MSBuild build systems.","编写自定义 MSBuild target 的规范模式：DependsOnTargets 与 BeforeTargets、AfterTargets 的区别，Build-to-CoreBuild 三级模式，以及 XxxDependsOn 链式扩展模式。用于诊断或修复自定义 target 的反模式：Directory.Build.targets 重新定义 SDK target、target 替换而非扩展 CompileDependsOn、Outputs 与 Returns 误用导致返回过期结果、缺少 Inputs\u002FOutputs 导致不必要的重新构建，或缺少 FileWrites 注册。不适用于增量构建调优或一般反模式审查（使用 msbuild 技能），也不适用于非 MSBuild 构建系统。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Ftarget-authoring\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Ftarget-authoring\u002FSKILL.md",[141,142],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":143,"categoryName":144,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[146,147,148,149,150,151,152,153],"target authoring","msbuild","tuning","incremental build","sdk","review","directory","writing",{"skillNo":155,"name":156,"nameZh":157,"description":158,"descriptionZh":159,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":160,"sourceHtmlUrl":161,"categories":162,"keywords":169,"publishedAt":48},"01M6BXWG0724RVJDEE4SQBEF8P","run-tests",".NET测试命令执行","Chooses and runs the repository-compatible .NET test command: classic, VSTest, bridged MTP, or native MTP syntax for MSTest, xUnit, NUnit, and TUnit. Use before running .NET tests or answering with a test command or flags: run the tests, one test, class, category, trait or target framework, combined filters, --filter-query, --no-build, --diag, TRX, coverage collection, crash or hang dumps, filter errors, or unrecognized options. Not for platform identification alone (use platform-detection), writing or debugging test code, interpreting a coverage report (use coverage-analysis), CI investigation, migration, or a persistent hot-reload loop.","选择并运行与仓库兼容的 .NET 测试命令：针对 MSTest、xUnit、NUnit 和 TUnit 的 classic、VSTest、bridged MTP 或 native MTP 语法。在运行 .NET 测试或需要给出测试命令\u002F标志时使用：运行全部测试、单个测试、测试类、类别、trait 或目标框架、组合筛选器、--filter-query、--no-build、--diag、TRX、覆盖率收集、崩溃或挂起转储、筛选错误或无法识别的选项。不适用于仅做平台识别（使用 platform-detection）、编写或调试测试代码、解读覆盖率报告（使用 coverage-analysis）、CI 调查、迁移或持续的热重载循环。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Frun-tests\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Frun-tests\u002FSKILL.md",[163,166],{"categoryNo":164,"categoryName":165,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":167,"categoryName":168,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[170,171,172,173,174,41,39,175,129,176,177,178,179,153,180,181,182,125,183],"run tests","run","collection","detection","ci","report","debugging","mtp","mstest","test","analysis","xunit","nunit","investigation",{"skillNo":185,"name":186,"nameZh":187,"description":188,"descriptionZh":189,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":190,"sourceHtmlUrl":191,"categories":192,"keywords":195,"publishedAt":48},"01M6BXWCTS8TECDKSYFJT9C445","profiling",".NET 性能剖析","Uses the free official .NET diagnostics CLI tools for profiling and runtime investigation in a repository: CPU, GC pressure, allocation growth, exception storms, lock contention, and slow code. Use when a .NET application needs performance or runtime profiling. Not for replacing realistic performance or load tests with ad-hoc tracing, production heap collection without a pause-risk plan, crash dumps (use dump-collect), or benchmark design (use microbenchmarking).","使用免费的官方 .NET 诊断 CLI 工具在代码仓库中进行性能剖析和运行时调查：CPU、GC 压力、分配增长、异常风暴、锁竞争和慢代码。当 .NET 应用程序需要性能或运行时剖析时使用。不适用于用临时跟踪替代真实的性能或负载测试、无暂停风险计划的生产堆内存采集、崩溃转储（使用 dump-collect），或基准测试设计（使用 microbenchmarking）。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fprofiling\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fprofiling\u002FSKILL.md",[193,194],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[186,172,196,197,183,45,47,198,44,41,30,199,200,129,201,202,203,204,205],"microbenchmarking","plan","risk","tracing","benchmark","diagnostics","official","first","cli","design",{"skillNo":207,"name":208,"nameZh":209,"description":210,"descriptionZh":211,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":212,"sourceHtmlUrl":213,"categories":214,"keywords":217,"publishedAt":48},"01M6BXW9N4G1NTMKNVBECTM2GM","platform-detection",".NET 测试平台识别","Identifies a .NET project's test platform, framework, command mode, and SDK-style versus classic project system, resolving global.json, project, packages.config, Directory.Build.props, and Directory.Packages.props precedence for MSTest, xUnit, NUnit, and TUnit. Use when asking \"which test platform or framework?\", \"VSTest or MTP?\", or \"what runner does this project use?\", including bridge settings, UseVSTest opt-outs, and conflicting VSTest\u002FMTP configuration. Not for running or filtering tests, commands, flags, TRX, dumps, or test-command errors (use run-tests), or for hot-reload or migration requests.","识别 .NET 项目的测试平台、框架、命令模式，以及 SDK 样式与经典项目系统，并解析 global.json、项目文件、packages.config、Directory.Build.props 和 Directory.Packages.props 对 MSTest、xUnit、NUnit 和 TUnit 的优先级。当询问“使用哪种测试平台或框架”“VSTest 还是 MTP”或“该项目使用什么测试运行器”时使用，包括桥接设置、UseVSTest 退出选项，以及 VSTest\u002FMTP 配置冲突。不适用于运行或筛选测试、命令、标志、TRX、转储或测试命令错误（使用 run-tests），也不适用于热重载或迁移请求。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fplatform-detection\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fplatform-detection\u002FSKILL.md",[215,216],{"categoryNo":164,"categoryName":165,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":167,"categoryName":168,"taxonomyType":27,"taxonomyTypeDesc":28},[218,173,177,178,179,150,152,219,181,182,220,221,39,171,222],"platform detection","config","json","system","packages",{"skillNo":224,"name":225,"nameZh":226,"description":227,"descriptionZh":228,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":229,"sourceHtmlUrl":230,"categories":231,"keywords":238,"publishedAt":48},"01M6BXW4VVFJH0WDPATWMFE9TY","orleans","Orleans 分布式系统设计","Designs Microsoft Orleans systems from each primitive's purpose and failure model: grains, digital twins, state versus databases, transactions, messaging, streams, timers, reminders, Durable Jobs, stateless workers, grain services, startup, and hosting. Use when a task needs an Orleans design decision: inspect version and topology, choose the primitive, implement, and validate. Not for other actor stacks, batch processing, relational-only CRUD, or advice without an Orleans decision.","从每种原语的用途和失效模型出发设计 Microsoft Orleans 系统：grain、数字孪生、状态与数据库、事务、消息传递、流（streams）、计时器（timers）、提醒（reminders）、Durable Jobs（持久作业）、无状态工作进程、grain 服务、启动与托管。当任务需要做出 Orleans 设计决策时使用：检查版本与拓扑、选择原语、实现并验证。不适用于其他 actor 技术栈、批处理、纯关系型 CRUD，或不涉及 Orleans 决策的建议。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Forleans\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Forleans\u002FSKILL.md",[232,235],{"categoryNo":233,"categoryName":234,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C4ZVS0ZJKF2T2G58PW5VR2","系统架构师",{"categoryNo":236,"categoryName":237,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C535MHXGXDSGN98VJTMCSK","系统架构设计模式",[225,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,205],"startup","decision","choose","model","crud","transactions","services","topology","messaging","batch","state","reminders","validate","microsoft","implement"]