[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-analyzing-dotnet-performance":3,"mdc--wz33aj-key":37,"related-repo-dotnet-analyzing-dotnet-performance":1677,"related-org-dotnet-analyzing-dotnet-performance":1778},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":29,"topics":30,"repo":32,"sourceUrl":35,"mdContent":36},"analyzing-dotnet-performance","analyze .NET code for performance anti-patterns","Scans .NET code for ~50 performance anti-patterns across async, memory, strings, collections, LINQ, regex, serialization, and I\u002FO with tiered severity classification. Use when analyzing .NET code for optimization opportunities, reviewing hot paths, or auditing allocation-heavy patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"dotnet",".NET (Microsoft)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fdotnet.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Performance","performance","tag",{"name":17,"slug":18,"type":15},".NET","net",{"name":20,"slug":21,"type":15},"Code Analysis","code-analysis",{"name":23,"slug":24,"type":15},"Debugging","debugging",4576,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills","2026-07-12T08:23:25.400375","MIT",332,[31],"agent-skills",{"repoUrl":26,"stars":25,"forks":29,"topics":33,"description":34},[31],"Repository for skills to assist AI coding agents with .NET and C#","https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills\u002Ftree\u002FHEAD\u002Fplugins\u002Fdotnet-diag\u002Fskills\u002Fanalyzing-dotnet-performance","---\nname: analyzing-dotnet-performance\ndescription: >-\n  Scans .NET code for ~50 performance anti-patterns across async, memory,\n  strings, collections, LINQ, regex, serialization, and I\u002FO with tiered\n  severity classification. Use when analyzing .NET code for optimization\n  opportunities, reviewing hot paths, or auditing allocation-heavy patterns.\nlicense: MIT\n---\n\n# .NET Performance Patterns\n\nScan C#\u002F.NET code for performance anti-patterns and produce prioritized findings with concrete fixes. Patterns sourced from the official .NET performance blog series, distilled to customer-actionable guidance.\n\n## When to Use\n\n- Reviewing C#\u002F.NET code for performance optimization opportunities\n- Auditing hot paths for allocation-heavy or inefficient patterns\n- Systematic scan of a codebase for known anti-patterns before release\n- Second-opinion analysis after manual performance review\n\n## When Not to Use\n\n- **Algorithmic complexity analysis** — this skill targets API usage patterns, not algorithm design\n- **Code not on a hot path** with no performance requirements — avoid premature optimization\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Source code | Yes | C# files, code blocks, or repository paths to scan |\n| Hot-path context | Recommended | Which code paths are performance-critical |\n| Target framework | Recommended | .NET version (some patterns require .NET 8+) |\n| Scan depth | Optional | `critical-only`, `standard` (default), or `comprehensive` |\n\n## Workflow\n\n### Step 1: Load Reference Files (if available)\n\nTry to load `references\u002Fcritical-patterns.md` and the topic-specific reference files listed below. These contain detailed detection recipes and grep commands.\n\n**If reference files are not found** (e.g., in a sandboxed environment or when the skill is embedded as instructions only), **skip file loading and proceed directly to Step 3** using the scan recipes listed inline below. Do not spend time searching the filesystem for reference files — if they aren't at the expected relative path, they aren't available.\n\n### Step 2: Detect Code Signals and Select Topic Recipes\n\nScan the code for signals that indicate which pattern categories to check. If reference files were loaded, use their `## Detection` sections. Otherwise, use the inline recipes in Step 3.\n\n| Signal in Code | Topic |\n|----------------|-------|\n| `async`, `await`, `Task`, `ValueTask` | Async patterns |\n| `Span\u003C`, `Memory\u003C`, `stackalloc`, `ArrayPool`, `string.Substring`, `.Replace(`, `.ToLower()`, `+=` in loops, `params` | Memory & strings |\n| `Regex`, `[GeneratedRegex]`, `Regex.Match`, `RegexOptions.Compiled` | Regex patterns |\n| `Dictionary\u003C`, `List\u003C`, `.ToList()`, `.Where(`, `.Select(`, LINQ methods, `static readonly Dictionary\u003C` | Collections & LINQ |\n| `JsonSerializer`, `HttpClient`, `Stream`, `FileStream` | I\u002FO & serialization |\n\nAlways check structural patterns (unsealed classes) regardless of signals.\n\n**Scan depth controls scope:**\n- `critical-only`: Only critical patterns (deadlocks, >10x regressions)\n- `standard` (default): Critical + detected topic patterns\n- `comprehensive`: All pattern categories\n\n### Step 3: Scan and Report\n\n**For files under 500 lines, read the entire file first** — you'll spot most patterns faster than running individual grep recipes. Use grep to confirm counts and catch patterns you might miss visually.\n\nFor each relevant pattern category, run the detection recipes below. Report exact counts, not estimates.\n\n**Core scan recipes** (run these when reference files aren't available):\n```\n# Strings & memory\ngrep -n '\\.IndexOf(\\\"' FILE                    # Missing StringComparison\ngrep -n '\\.Substring(' FILE                    # Substring allocations\ngrep -En '\\.(StartsWith|EndsWith|Contains)\\s*\\(' FILE  # Missing StringComparison\ngrep -n '\\.ToLower()\\|\\.ToUpper()' FILE        # Culture-sensitive + allocation\ngrep -n '\\.Replace(' FILE                      # Chained Replace allocations\ngrep -n 'params ' FILE                         # params array allocation\n\n# Collections & LINQ\ngrep -n '\\.Select\\|\\.Where\\|\\.OrderBy\\|\\.GroupBy' FILE  # LINQ on hot path\ngrep -n '\\.All\\|\\.Any' FILE                    # LINQ on string\u002Fchar\ngrep -n 'new Dictionary\u003C\\|new List\u003C' FILE      # Per-call allocation\ngrep -n 'static readonly Dictionary\u003C' FILE     # FrozenDictionary candidate\n\n# Regex\ngrep -n 'RegexOptions.Compiled' FILE           # Compiled regex budget\ngrep -n 'new Regex(' FILE                      # Per-call regex\ngrep -n 'GeneratedRegex' FILE                  # Positive: source-gen regex\n\n# Structural\ngrep -n 'public class \\|internal class ' FILE  # Unsealed classes\ngrep -n 'sealed class' FILE                    # Already sealed\ngrep -n ': IEquatable' FILE                    # Positive: struct equality\n```\n\n**Rules:**\n- Run every relevant recipe for the detected pattern categories\n- **Emit a scan execution checklist** before classifying findings — list each recipe and the hit count\n- A result of **0 hits** is valid and valuable (confirms good practice)\n- If reference files were loaded, also run their `## Detection` recipes\n\n**Verify-the-Inverse Rule:** For absence patterns, always count both sides and report the ratio (e.g., \"N of M classes are sealed\"). The ratio determines severity — 0\u002F185 is systematic, 12\u002F15 is a consistency fix.\n\n### Step 3b: Cross-File Consistency Check\n\nIf an optimized pattern is found in one file, check whether sibling files (same directory, same interface, same base class) use the un-optimized equivalent. Flag as 🟡 Moderate with the optimized file as evidence.\n\n### Step 3c: Compound Allocation Check\n\nAfter running scan recipes, look for these multi-allocation patterns that single-line recipes miss:\n\n1. **Branched `.Replace()` chains:** Methods that call `.Replace()` across multiple `if\u002Felse` branches — report total allocation count across all branches, not just per-line.\n2. **Cross-method chaining:** When a public method delegates to another method that itself allocates intermediates (e.g., A calls B which does 3 regex replaces, then A calls C), report the total chain cost as one finding.\n3. **Compound `+=` with embedded allocating calls:** Lines like `result += $\"...{Foo().ToLower()}\"` are 2+ allocations (interpolation + ToLower + concatenation) — flag the compound cost, not just the `.ToLower()`.\n4. **`string.Format` specificity:** Distinguish resource-loaded format strings (not fixable) from compile-time literal format strings (fixable with interpolation). Enumerate the actionable sites.\n\n### Step 4: Classify and Prioritize Findings\n\nAssign each finding a severity:\n\n| Severity | Criteria | Action |\n|----------|----------|--------|\n| 🔴 **Critical** | Deadlocks, crashes, security vulnerabilities, >10x regression | Must fix |\n| 🟡 **Moderate** | 2-10x improvement opportunity, best practice for hot paths | Should fix on hot paths |\n| ℹ️ **Info** | Pattern applies but code may not be on a hot path | Consider if profiling shows impact |\n\n**Prioritization rules:**\n1. If the user identified hot-path code, elevate all findings in that code to their maximum severity\n2. If hot-path context is unknown, report 🔴 Critical findings unconditionally; report 🟡 Moderate findings with a note: _\"Impactful if this code is on a hot path\"_\n3. Never suggest micro-optimizations on code that is clearly not performance-sensitive\n\n**Scale-based severity escalation:**\nWhen the same pattern appears across many instances, escalate severity:\n- 1-10 instances of the same anti-pattern → report at the pattern's base severity\n- 11-50 instances → escalate ℹ️ Info patterns to 🟡 Moderate\n- 50+ instances → escalate to 🟡 Moderate with elevated priority; flag as a codebase-wide systematic issue\n\nAlways report exact counts (from scan recipes), not estimates or agent summaries.\n\n### Step 5: Generate Findings\n\n**Keep findings compact.** Each finding is one short block — not an essay. Group by severity (🔴 → 🟡 → ℹ️), not by file.\n\nFormat per finding:\n\n```\n#### ID. Title (N instances)\n**Impact:** one-line impact statement\n**Files:** file1.cs:L1, file2.cs:L2, ... (list locations, don't build tables)\n**Fix:** one-line description of the change (e.g., \"Add `StringComparison.Ordinal` parameter\")\n**Caveat:** only if non-obvious (version requirement, correctness risk)\n```\n\n**Rules for compact output:**\n- **No ❌\u002F✅ code blocks** for trivial fixes (adding a keyword, parameter, or type change). A one-line fix description suffices.\n- **Only include code blocks** for non-obvious transformations (e.g., replacing a LINQ chain with a foreach loop, or hoisting a closure).\n- **File locations as inline comma-separated list**, not a table. Use `File.cs:L42` format.\n- **No explanatory prose** beyond the Impact line — the severity icon already conveys urgency.\n- **Merge related findings** that share the same fix (e.g., all `.ToLower()` calls go in one finding, not split by file).\n- **Positive findings** in a bullet list, not a table. One line per pattern: `✅ Pattern — evidence`.\n\nEnd with a summary table and disclaimer:\n\n```markdown\n| Severity | Count | Top Issue |\n|----------|-------|-----------|\n| 🔴 Critical | N | ... |\n| 🟡 Moderate | N | ... |\n| ℹ️ Info | N | ... |\n\n> ⚠️ **Disclaimer:** These results are generated by an AI assistant and are non-deterministic. Findings may include false positives, miss real issues, or suggest changes that are incorrect for your specific context. Always verify recommendations with benchmarks and human review before applying changes to production code.\n```\n\n## Validation\n\nBefore delivering results, verify:\n\n- [ ] All critical patterns were checked (from reference files or inline recipes)\n- [ ] Topic-specific recipes run only when matching signals detected\n- [ ] Each finding includes a concrete code fix\n- [ ] Scan execution checklist is complete (all recipes run)\n- [ ] Summary table included at end\n\n## Common Pitfalls\n\n| Pitfall | Correct Approach |\n|---------|-----------------|\n| Flagging every `Dictionary` as needing `FrozenDictionary` | Only flag if the dictionary is never mutated after construction |\n| Suggesting `Span\u003CT>` in async methods | Use `Memory\u003CT>` in async code; `Span\u003CT>` only in sync hot paths |\n| Reporting LINQ outside hot paths | Only flag LINQ in identified hot paths or tight loops; LINQ is acceptable in code that runs infrequently. Since .NET 7, LINQ Min\u002FMax\u002FSum\u002FAverage are vectorized — blanket bans on LINQ are misguided |\n| Suggesting `ConfigureAwait(false)` in app code | Only applicable in library code; not primarily a performance concern |\n| Recommending `ValueTask` everywhere | Only for hot paths with frequent synchronous completion |\n| Flagging `new HttpClient()` in DI services | Check if `IHttpClientFactory` is already in use |\n| Suggesting `[GeneratedRegex]` for dynamic patterns | Only flag when the pattern string is a compile-time literal |\n| Suggesting `CollectionsMarshal.AsSpan` broadly | Only for ultra-hot paths with benchmarked evidence; adds complexity and fragility |\n| Suggesting `unsafe` code for micro-optimizations | Avoid `unsafe` except where absolutely necessary — do not recommend it for micro-optimizations that don't matter. Safe alternatives like `Span\u003CT>`, `stackalloc` in safe context, and `ArrayPool` cover the vast majority of performance needs |\n",{"data":38,"body":39},{"name":4,"description":6,"license":28},{"type":40,"children":41},"root",[42,51,57,64,89,95,119,125,250,256,263,276,293,299,312,575,580,588,621,627,637,642,652,664,672,714,724,730,735,741,746,841,847,852,948,956,980,990,1008,1013,1019,1029,1034,1043,1051,1136,1141,1348,1354,1359,1412,1418,1671],{"type":43,"tag":44,"props":45,"children":47},"element","h1",{"id":46},"net-performance-patterns",[48],{"type":49,"value":50},"text",".NET Performance Patterns",{"type":43,"tag":52,"props":53,"children":54},"p",{},[55],{"type":49,"value":56},"Scan C#\u002F.NET code for performance anti-patterns and produce prioritized findings with concrete fixes. Patterns sourced from the official .NET performance blog series, distilled to customer-actionable guidance.",{"type":43,"tag":58,"props":59,"children":61},"h2",{"id":60},"when-to-use",[62],{"type":49,"value":63},"When to Use",{"type":43,"tag":65,"props":66,"children":67},"ul",{},[68,74,79,84],{"type":43,"tag":69,"props":70,"children":71},"li",{},[72],{"type":49,"value":73},"Reviewing C#\u002F.NET code for performance optimization opportunities",{"type":43,"tag":69,"props":75,"children":76},{},[77],{"type":49,"value":78},"Auditing hot paths for allocation-heavy or inefficient patterns",{"type":43,"tag":69,"props":80,"children":81},{},[82],{"type":49,"value":83},"Systematic scan of a codebase for known anti-patterns before release",{"type":43,"tag":69,"props":85,"children":86},{},[87],{"type":49,"value":88},"Second-opinion analysis after manual performance review",{"type":43,"tag":58,"props":90,"children":92},{"id":91},"when-not-to-use",[93],{"type":49,"value":94},"When Not to Use",{"type":43,"tag":65,"props":96,"children":97},{},[98,109],{"type":43,"tag":69,"props":99,"children":100},{},[101,107],{"type":43,"tag":102,"props":103,"children":104},"strong",{},[105],{"type":49,"value":106},"Algorithmic complexity analysis",{"type":49,"value":108}," — this skill targets API usage patterns, not algorithm design",{"type":43,"tag":69,"props":110,"children":111},{},[112,117],{"type":43,"tag":102,"props":113,"children":114},{},[115],{"type":49,"value":116},"Code not on a hot path",{"type":49,"value":118}," with no performance requirements — avoid premature optimization",{"type":43,"tag":58,"props":120,"children":122},{"id":121},"inputs",[123],{"type":49,"value":124},"Inputs",{"type":43,"tag":126,"props":127,"children":128},"table",{},[129,153],{"type":43,"tag":130,"props":131,"children":132},"thead",{},[133],{"type":43,"tag":134,"props":135,"children":136},"tr",{},[137,143,148],{"type":43,"tag":138,"props":139,"children":140},"th",{},[141],{"type":49,"value":142},"Input",{"type":43,"tag":138,"props":144,"children":145},{},[146],{"type":49,"value":147},"Required",{"type":43,"tag":138,"props":149,"children":150},{},[151],{"type":49,"value":152},"Description",{"type":43,"tag":154,"props":155,"children":156},"tbody",{},[157,176,194,211],{"type":43,"tag":134,"props":158,"children":159},{},[160,166,171],{"type":43,"tag":161,"props":162,"children":163},"td",{},[164],{"type":49,"value":165},"Source code",{"type":43,"tag":161,"props":167,"children":168},{},[169],{"type":49,"value":170},"Yes",{"type":43,"tag":161,"props":172,"children":173},{},[174],{"type":49,"value":175},"C# files, code blocks, or repository paths to scan",{"type":43,"tag":134,"props":177,"children":178},{},[179,184,189],{"type":43,"tag":161,"props":180,"children":181},{},[182],{"type":49,"value":183},"Hot-path context",{"type":43,"tag":161,"props":185,"children":186},{},[187],{"type":49,"value":188},"Recommended",{"type":43,"tag":161,"props":190,"children":191},{},[192],{"type":49,"value":193},"Which code paths are performance-critical",{"type":43,"tag":134,"props":195,"children":196},{},[197,202,206],{"type":43,"tag":161,"props":198,"children":199},{},[200],{"type":49,"value":201},"Target framework",{"type":43,"tag":161,"props":203,"children":204},{},[205],{"type":49,"value":188},{"type":43,"tag":161,"props":207,"children":208},{},[209],{"type":49,"value":210},".NET version (some patterns require .NET 8+)",{"type":43,"tag":134,"props":212,"children":213},{},[214,219,224],{"type":43,"tag":161,"props":215,"children":216},{},[217],{"type":49,"value":218},"Scan depth",{"type":43,"tag":161,"props":220,"children":221},{},[222],{"type":49,"value":223},"Optional",{"type":43,"tag":161,"props":225,"children":226},{},[227,234,236,242,244],{"type":43,"tag":228,"props":229,"children":231},"code",{"className":230},[],[232],{"type":49,"value":233},"critical-only",{"type":49,"value":235},", ",{"type":43,"tag":228,"props":237,"children":239},{"className":238},[],[240],{"type":49,"value":241},"standard",{"type":49,"value":243}," (default), or ",{"type":43,"tag":228,"props":245,"children":247},{"className":246},[],[248],{"type":49,"value":249},"comprehensive",{"type":43,"tag":58,"props":251,"children":253},{"id":252},"workflow",[254],{"type":49,"value":255},"Workflow",{"type":43,"tag":257,"props":258,"children":260},"h3",{"id":259},"step-1-load-reference-files-if-available",[261],{"type":49,"value":262},"Step 1: Load Reference Files (if available)",{"type":43,"tag":52,"props":264,"children":265},{},[266,268,274],{"type":49,"value":267},"Try to load ",{"type":43,"tag":228,"props":269,"children":271},{"className":270},[],[272],{"type":49,"value":273},"references\u002Fcritical-patterns.md",{"type":49,"value":275}," and the topic-specific reference files listed below. These contain detailed detection recipes and grep commands.",{"type":43,"tag":52,"props":277,"children":278},{},[279,284,286,291],{"type":43,"tag":102,"props":280,"children":281},{},[282],{"type":49,"value":283},"If reference files are not found",{"type":49,"value":285}," (e.g., in a sandboxed environment or when the skill is embedded as instructions only), ",{"type":43,"tag":102,"props":287,"children":288},{},[289],{"type":49,"value":290},"skip file loading and proceed directly to Step 3",{"type":49,"value":292}," using the scan recipes listed inline below. Do not spend time searching the filesystem for reference files — if they aren't at the expected relative path, they aren't available.",{"type":43,"tag":257,"props":294,"children":296},{"id":295},"step-2-detect-code-signals-and-select-topic-recipes",[297],{"type":49,"value":298},"Step 2: Detect Code Signals and Select Topic Recipes",{"type":43,"tag":52,"props":300,"children":301},{},[302,304,310],{"type":49,"value":303},"Scan the code for signals that indicate which pattern categories to check. If reference files were loaded, use their ",{"type":43,"tag":228,"props":305,"children":307},{"className":306},[],[308],{"type":49,"value":309},"## Detection",{"type":49,"value":311}," sections. Otherwise, use the inline recipes in Step 3.",{"type":43,"tag":126,"props":313,"children":314},{},[315,331],{"type":43,"tag":130,"props":316,"children":317},{},[318],{"type":43,"tag":134,"props":319,"children":320},{},[321,326],{"type":43,"tag":138,"props":322,"children":323},{},[324],{"type":49,"value":325},"Signal in Code",{"type":43,"tag":138,"props":327,"children":328},{},[329],{"type":49,"value":330},"Topic",{"type":43,"tag":154,"props":332,"children":333},{},[334,372,446,484,537],{"type":43,"tag":134,"props":335,"children":336},{},[337,367],{"type":43,"tag":161,"props":338,"children":339},{},[340,346,347,353,354,360,361],{"type":43,"tag":228,"props":341,"children":343},{"className":342},[],[344],{"type":49,"value":345},"async",{"type":49,"value":235},{"type":43,"tag":228,"props":348,"children":350},{"className":349},[],[351],{"type":49,"value":352},"await",{"type":49,"value":235},{"type":43,"tag":228,"props":355,"children":357},{"className":356},[],[358],{"type":49,"value":359},"Task",{"type":49,"value":235},{"type":43,"tag":228,"props":362,"children":364},{"className":363},[],[365],{"type":49,"value":366},"ValueTask",{"type":43,"tag":161,"props":368,"children":369},{},[370],{"type":49,"value":371},"Async patterns",{"type":43,"tag":134,"props":373,"children":374},{},[375,441],{"type":43,"tag":161,"props":376,"children":377},{},[378,384,385,391,392,398,399,405,406,412,413,419,420,426,427,433,435],{"type":43,"tag":228,"props":379,"children":381},{"className":380},[],[382],{"type":49,"value":383},"Span\u003C",{"type":49,"value":235},{"type":43,"tag":228,"props":386,"children":388},{"className":387},[],[389],{"type":49,"value":390},"Memory\u003C",{"type":49,"value":235},{"type":43,"tag":228,"props":393,"children":395},{"className":394},[],[396],{"type":49,"value":397},"stackalloc",{"type":49,"value":235},{"type":43,"tag":228,"props":400,"children":402},{"className":401},[],[403],{"type":49,"value":404},"ArrayPool",{"type":49,"value":235},{"type":43,"tag":228,"props":407,"children":409},{"className":408},[],[410],{"type":49,"value":411},"string.Substring",{"type":49,"value":235},{"type":43,"tag":228,"props":414,"children":416},{"className":415},[],[417],{"type":49,"value":418},".Replace(",{"type":49,"value":235},{"type":43,"tag":228,"props":421,"children":423},{"className":422},[],[424],{"type":49,"value":425},".ToLower()",{"type":49,"value":235},{"type":43,"tag":228,"props":428,"children":430},{"className":429},[],[431],{"type":49,"value":432},"+=",{"type":49,"value":434}," in loops, ",{"type":43,"tag":228,"props":436,"children":438},{"className":437},[],[439],{"type":49,"value":440},"params",{"type":43,"tag":161,"props":442,"children":443},{},[444],{"type":49,"value":445},"Memory & strings",{"type":43,"tag":134,"props":447,"children":448},{},[449,479],{"type":43,"tag":161,"props":450,"children":451},{},[452,458,459,465,466,472,473],{"type":43,"tag":228,"props":453,"children":455},{"className":454},[],[456],{"type":49,"value":457},"Regex",{"type":49,"value":235},{"type":43,"tag":228,"props":460,"children":462},{"className":461},[],[463],{"type":49,"value":464},"[GeneratedRegex]",{"type":49,"value":235},{"type":43,"tag":228,"props":467,"children":469},{"className":468},[],[470],{"type":49,"value":471},"Regex.Match",{"type":49,"value":235},{"type":43,"tag":228,"props":474,"children":476},{"className":475},[],[477],{"type":49,"value":478},"RegexOptions.Compiled",{"type":43,"tag":161,"props":480,"children":481},{},[482],{"type":49,"value":483},"Regex patterns",{"type":43,"tag":134,"props":485,"children":486},{},[487,532],{"type":43,"tag":161,"props":488,"children":489},{},[490,496,497,503,504,510,511,517,518,524,526],{"type":43,"tag":228,"props":491,"children":493},{"className":492},[],[494],{"type":49,"value":495},"Dictionary\u003C",{"type":49,"value":235},{"type":43,"tag":228,"props":498,"children":500},{"className":499},[],[501],{"type":49,"value":502},"List\u003C",{"type":49,"value":235},{"type":43,"tag":228,"props":505,"children":507},{"className":506},[],[508],{"type":49,"value":509},".ToList()",{"type":49,"value":235},{"type":43,"tag":228,"props":512,"children":514},{"className":513},[],[515],{"type":49,"value":516},".Where(",{"type":49,"value":235},{"type":43,"tag":228,"props":519,"children":521},{"className":520},[],[522],{"type":49,"value":523},".Select(",{"type":49,"value":525},", LINQ methods, ",{"type":43,"tag":228,"props":527,"children":529},{"className":528},[],[530],{"type":49,"value":531},"static readonly Dictionary\u003C",{"type":43,"tag":161,"props":533,"children":534},{},[535],{"type":49,"value":536},"Collections & LINQ",{"type":43,"tag":134,"props":538,"children":539},{},[540,570],{"type":43,"tag":161,"props":541,"children":542},{},[543,549,550,556,557,563,564],{"type":43,"tag":228,"props":544,"children":546},{"className":545},[],[547],{"type":49,"value":548},"JsonSerializer",{"type":49,"value":235},{"type":43,"tag":228,"props":551,"children":553},{"className":552},[],[554],{"type":49,"value":555},"HttpClient",{"type":49,"value":235},{"type":43,"tag":228,"props":558,"children":560},{"className":559},[],[561],{"type":49,"value":562},"Stream",{"type":49,"value":235},{"type":43,"tag":228,"props":565,"children":567},{"className":566},[],[568],{"type":49,"value":569},"FileStream",{"type":43,"tag":161,"props":571,"children":572},{},[573],{"type":49,"value":574},"I\u002FO & serialization",{"type":43,"tag":52,"props":576,"children":577},{},[578],{"type":49,"value":579},"Always check structural patterns (unsealed classes) regardless of signals.",{"type":43,"tag":52,"props":581,"children":582},{},[583],{"type":43,"tag":102,"props":584,"children":585},{},[586],{"type":49,"value":587},"Scan depth controls scope:",{"type":43,"tag":65,"props":589,"children":590},{},[591,601,611],{"type":43,"tag":69,"props":592,"children":593},{},[594,599],{"type":43,"tag":228,"props":595,"children":597},{"className":596},[],[598],{"type":49,"value":233},{"type":49,"value":600},": Only critical patterns (deadlocks, >10x regressions)",{"type":43,"tag":69,"props":602,"children":603},{},[604,609],{"type":43,"tag":228,"props":605,"children":607},{"className":606},[],[608],{"type":49,"value":241},{"type":49,"value":610}," (default): Critical + detected topic patterns",{"type":43,"tag":69,"props":612,"children":613},{},[614,619],{"type":43,"tag":228,"props":615,"children":617},{"className":616},[],[618],{"type":49,"value":249},{"type":49,"value":620},": All pattern categories",{"type":43,"tag":257,"props":622,"children":624},{"id":623},"step-3-scan-and-report",[625],{"type":49,"value":626},"Step 3: Scan and Report",{"type":43,"tag":52,"props":628,"children":629},{},[630,635],{"type":43,"tag":102,"props":631,"children":632},{},[633],{"type":49,"value":634},"For files under 500 lines, read the entire file first",{"type":49,"value":636}," — you'll spot most patterns faster than running individual grep recipes. Use grep to confirm counts and catch patterns you might miss visually.",{"type":43,"tag":52,"props":638,"children":639},{},[640],{"type":49,"value":641},"For each relevant pattern category, run the detection recipes below. Report exact counts, not estimates.",{"type":43,"tag":52,"props":643,"children":644},{},[645,650],{"type":43,"tag":102,"props":646,"children":647},{},[648],{"type":49,"value":649},"Core scan recipes",{"type":49,"value":651}," (run these when reference files aren't available):",{"type":43,"tag":653,"props":654,"children":658},"pre",{"className":655,"code":657,"language":49},[656],"language-text","# Strings & memory\ngrep -n '\\.IndexOf(\\\"' FILE                    # Missing StringComparison\ngrep -n '\\.Substring(' FILE                    # Substring allocations\ngrep -En '\\.(StartsWith|EndsWith|Contains)\\s*\\(' FILE  # Missing StringComparison\ngrep -n '\\.ToLower()\\|\\.ToUpper()' FILE        # Culture-sensitive + allocation\ngrep -n '\\.Replace(' FILE                      # Chained Replace allocations\ngrep -n 'params ' FILE                         # params array allocation\n\n# Collections & LINQ\ngrep -n '\\.Select\\|\\.Where\\|\\.OrderBy\\|\\.GroupBy' FILE  # LINQ on hot path\ngrep -n '\\.All\\|\\.Any' FILE                    # LINQ on string\u002Fchar\ngrep -n 'new Dictionary\u003C\\|new List\u003C' FILE      # Per-call allocation\ngrep -n 'static readonly Dictionary\u003C' FILE     # FrozenDictionary candidate\n\n# Regex\ngrep -n 'RegexOptions.Compiled' FILE           # Compiled regex budget\ngrep -n 'new Regex(' FILE                      # Per-call regex\ngrep -n 'GeneratedRegex' FILE                  # Positive: source-gen regex\n\n# Structural\ngrep -n 'public class \\|internal class ' FILE  # Unsealed classes\ngrep -n 'sealed class' FILE                    # Already sealed\ngrep -n ': IEquatable' FILE                    # Positive: struct equality\n",[659],{"type":43,"tag":228,"props":660,"children":662},{"__ignoreMap":661},"",[663],{"type":49,"value":657},{"type":43,"tag":52,"props":665,"children":666},{},[667],{"type":43,"tag":102,"props":668,"children":669},{},[670],{"type":49,"value":671},"Rules:",{"type":43,"tag":65,"props":673,"children":674},{},[675,680,690,702],{"type":43,"tag":69,"props":676,"children":677},{},[678],{"type":49,"value":679},"Run every relevant recipe for the detected pattern categories",{"type":43,"tag":69,"props":681,"children":682},{},[683,688],{"type":43,"tag":102,"props":684,"children":685},{},[686],{"type":49,"value":687},"Emit a scan execution checklist",{"type":49,"value":689}," before classifying findings — list each recipe and the hit count",{"type":43,"tag":69,"props":691,"children":692},{},[693,695,700],{"type":49,"value":694},"A result of ",{"type":43,"tag":102,"props":696,"children":697},{},[698],{"type":49,"value":699},"0 hits",{"type":49,"value":701}," is valid and valuable (confirms good practice)",{"type":43,"tag":69,"props":703,"children":704},{},[705,707,712],{"type":49,"value":706},"If reference files were loaded, also run their ",{"type":43,"tag":228,"props":708,"children":710},{"className":709},[],[711],{"type":49,"value":309},{"type":49,"value":713}," recipes",{"type":43,"tag":52,"props":715,"children":716},{},[717,722],{"type":43,"tag":102,"props":718,"children":719},{},[720],{"type":49,"value":721},"Verify-the-Inverse Rule:",{"type":49,"value":723}," For absence patterns, always count both sides and report the ratio (e.g., \"N of M classes are sealed\"). The ratio determines severity — 0\u002F185 is systematic, 12\u002F15 is a consistency fix.",{"type":43,"tag":257,"props":725,"children":727},{"id":726},"step-3b-cross-file-consistency-check",[728],{"type":49,"value":729},"Step 3b: Cross-File Consistency Check",{"type":43,"tag":52,"props":731,"children":732},{},[733],{"type":49,"value":734},"If an optimized pattern is found in one file, check whether sibling files (same directory, same interface, same base class) use the un-optimized equivalent. Flag as 🟡 Moderate with the optimized file as evidence.",{"type":43,"tag":257,"props":736,"children":738},{"id":737},"step-3c-compound-allocation-check",[739],{"type":49,"value":740},"Step 3c: Compound Allocation Check",{"type":43,"tag":52,"props":742,"children":743},{},[744],{"type":49,"value":745},"After running scan recipes, look for these multi-allocation patterns that single-line recipes miss:",{"type":43,"tag":747,"props":748,"children":749},"ol",{},[750,783,793,825],{"type":43,"tag":69,"props":751,"children":752},{},[753,766,768,773,775,781],{"type":43,"tag":102,"props":754,"children":755},{},[756,758,764],{"type":49,"value":757},"Branched ",{"type":43,"tag":228,"props":759,"children":761},{"className":760},[],[762],{"type":49,"value":763},".Replace()",{"type":49,"value":765}," chains:",{"type":49,"value":767}," Methods that call ",{"type":43,"tag":228,"props":769,"children":771},{"className":770},[],[772],{"type":49,"value":763},{"type":49,"value":774}," across multiple ",{"type":43,"tag":228,"props":776,"children":778},{"className":777},[],[779],{"type":49,"value":780},"if\u002Felse",{"type":49,"value":782}," branches — report total allocation count across all branches, not just per-line.",{"type":43,"tag":69,"props":784,"children":785},{},[786,791],{"type":43,"tag":102,"props":787,"children":788},{},[789],{"type":49,"value":790},"Cross-method chaining:",{"type":49,"value":792}," When a public method delegates to another method that itself allocates intermediates (e.g., A calls B which does 3 regex replaces, then A calls C), report the total chain cost as one finding.",{"type":43,"tag":69,"props":794,"children":795},{},[796,808,810,816,818,823],{"type":43,"tag":102,"props":797,"children":798},{},[799,801,806],{"type":49,"value":800},"Compound ",{"type":43,"tag":228,"props":802,"children":804},{"className":803},[],[805],{"type":49,"value":432},{"type":49,"value":807}," with embedded allocating calls:",{"type":49,"value":809}," Lines like ",{"type":43,"tag":228,"props":811,"children":813},{"className":812},[],[814],{"type":49,"value":815},"result += $\"...{Foo().ToLower()}\"",{"type":49,"value":817}," are 2+ allocations (interpolation + ToLower + concatenation) — flag the compound cost, not just the ",{"type":43,"tag":228,"props":819,"children":821},{"className":820},[],[822],{"type":49,"value":425},{"type":49,"value":824},".",{"type":43,"tag":69,"props":826,"children":827},{},[828,839],{"type":43,"tag":102,"props":829,"children":830},{},[831,837],{"type":43,"tag":228,"props":832,"children":834},{"className":833},[],[835],{"type":49,"value":836},"string.Format",{"type":49,"value":838}," specificity:",{"type":49,"value":840}," Distinguish resource-loaded format strings (not fixable) from compile-time literal format strings (fixable with interpolation). Enumerate the actionable sites.",{"type":43,"tag":257,"props":842,"children":844},{"id":843},"step-4-classify-and-prioritize-findings",[845],{"type":49,"value":846},"Step 4: Classify and Prioritize Findings",{"type":43,"tag":52,"props":848,"children":849},{},[850],{"type":49,"value":851},"Assign each finding a severity:",{"type":43,"tag":126,"props":853,"children":854},{},[855,876],{"type":43,"tag":130,"props":856,"children":857},{},[858],{"type":43,"tag":134,"props":859,"children":860},{},[861,866,871],{"type":43,"tag":138,"props":862,"children":863},{},[864],{"type":49,"value":865},"Severity",{"type":43,"tag":138,"props":867,"children":868},{},[869],{"type":49,"value":870},"Criteria",{"type":43,"tag":138,"props":872,"children":873},{},[874],{"type":49,"value":875},"Action",{"type":43,"tag":154,"props":877,"children":878},{},[879,902,925],{"type":43,"tag":134,"props":880,"children":881},{},[882,892,897],{"type":43,"tag":161,"props":883,"children":884},{},[885,887],{"type":49,"value":886},"🔴 ",{"type":43,"tag":102,"props":888,"children":889},{},[890],{"type":49,"value":891},"Critical",{"type":43,"tag":161,"props":893,"children":894},{},[895],{"type":49,"value":896},"Deadlocks, crashes, security vulnerabilities, >10x regression",{"type":43,"tag":161,"props":898,"children":899},{},[900],{"type":49,"value":901},"Must fix",{"type":43,"tag":134,"props":903,"children":904},{},[905,915,920],{"type":43,"tag":161,"props":906,"children":907},{},[908,910],{"type":49,"value":909},"🟡 ",{"type":43,"tag":102,"props":911,"children":912},{},[913],{"type":49,"value":914},"Moderate",{"type":43,"tag":161,"props":916,"children":917},{},[918],{"type":49,"value":919},"2-10x improvement opportunity, best practice for hot paths",{"type":43,"tag":161,"props":921,"children":922},{},[923],{"type":49,"value":924},"Should fix on hot paths",{"type":43,"tag":134,"props":926,"children":927},{},[928,938,943],{"type":43,"tag":161,"props":929,"children":930},{},[931,933],{"type":49,"value":932},"ℹ️ ",{"type":43,"tag":102,"props":934,"children":935},{},[936],{"type":49,"value":937},"Info",{"type":43,"tag":161,"props":939,"children":940},{},[941],{"type":49,"value":942},"Pattern applies but code may not be on a hot path",{"type":43,"tag":161,"props":944,"children":945},{},[946],{"type":49,"value":947},"Consider if profiling shows impact",{"type":43,"tag":52,"props":949,"children":950},{},[951],{"type":43,"tag":102,"props":952,"children":953},{},[954],{"type":49,"value":955},"Prioritization rules:",{"type":43,"tag":747,"props":957,"children":958},{},[959,964,975],{"type":43,"tag":69,"props":960,"children":961},{},[962],{"type":49,"value":963},"If the user identified hot-path code, elevate all findings in that code to their maximum severity",{"type":43,"tag":69,"props":965,"children":966},{},[967,969],{"type":49,"value":968},"If hot-path context is unknown, report 🔴 Critical findings unconditionally; report 🟡 Moderate findings with a note: ",{"type":43,"tag":970,"props":971,"children":972},"em",{},[973],{"type":49,"value":974},"\"Impactful if this code is on a hot path\"",{"type":43,"tag":69,"props":976,"children":977},{},[978],{"type":49,"value":979},"Never suggest micro-optimizations on code that is clearly not performance-sensitive",{"type":43,"tag":52,"props":981,"children":982},{},[983,988],{"type":43,"tag":102,"props":984,"children":985},{},[986],{"type":49,"value":987},"Scale-based severity escalation:",{"type":49,"value":989},"\nWhen the same pattern appears across many instances, escalate severity:",{"type":43,"tag":65,"props":991,"children":992},{},[993,998,1003],{"type":43,"tag":69,"props":994,"children":995},{},[996],{"type":49,"value":997},"1-10 instances of the same anti-pattern → report at the pattern's base severity",{"type":43,"tag":69,"props":999,"children":1000},{},[1001],{"type":49,"value":1002},"11-50 instances → escalate ℹ️ Info patterns to 🟡 Moderate",{"type":43,"tag":69,"props":1004,"children":1005},{},[1006],{"type":49,"value":1007},"50+ instances → escalate to 🟡 Moderate with elevated priority; flag as a codebase-wide systematic issue",{"type":43,"tag":52,"props":1009,"children":1010},{},[1011],{"type":49,"value":1012},"Always report exact counts (from scan recipes), not estimates or agent summaries.",{"type":43,"tag":257,"props":1014,"children":1016},{"id":1015},"step-5-generate-findings",[1017],{"type":49,"value":1018},"Step 5: Generate Findings",{"type":43,"tag":52,"props":1020,"children":1021},{},[1022,1027],{"type":43,"tag":102,"props":1023,"children":1024},{},[1025],{"type":49,"value":1026},"Keep findings compact.",{"type":49,"value":1028}," Each finding is one short block — not an essay. Group by severity (🔴 → 🟡 → ℹ️), not by file.",{"type":43,"tag":52,"props":1030,"children":1031},{},[1032],{"type":49,"value":1033},"Format per finding:",{"type":43,"tag":653,"props":1035,"children":1038},{"className":1036,"code":1037,"language":49},[656],"#### ID. Title (N instances)\n**Impact:** one-line impact statement\n**Files:** file1.cs:L1, file2.cs:L2, ... (list locations, don't build tables)\n**Fix:** one-line description of the change (e.g., \"Add `StringComparison.Ordinal` parameter\")\n**Caveat:** only if non-obvious (version requirement, correctness risk)\n",[1039],{"type":43,"tag":228,"props":1040,"children":1041},{"__ignoreMap":661},[1042],{"type":49,"value":1037},{"type":43,"tag":52,"props":1044,"children":1045},{},[1046],{"type":43,"tag":102,"props":1047,"children":1048},{},[1049],{"type":49,"value":1050},"Rules for compact output:",{"type":43,"tag":65,"props":1052,"children":1053},{},[1054,1064,1074,1092,1102,1119],{"type":43,"tag":69,"props":1055,"children":1056},{},[1057,1062],{"type":43,"tag":102,"props":1058,"children":1059},{},[1060],{"type":49,"value":1061},"No ❌\u002F✅ code blocks",{"type":49,"value":1063}," for trivial fixes (adding a keyword, parameter, or type change). A one-line fix description suffices.",{"type":43,"tag":69,"props":1065,"children":1066},{},[1067,1072],{"type":43,"tag":102,"props":1068,"children":1069},{},[1070],{"type":49,"value":1071},"Only include code blocks",{"type":49,"value":1073}," for non-obvious transformations (e.g., replacing a LINQ chain with a foreach loop, or hoisting a closure).",{"type":43,"tag":69,"props":1075,"children":1076},{},[1077,1082,1084,1090],{"type":43,"tag":102,"props":1078,"children":1079},{},[1080],{"type":49,"value":1081},"File locations as inline comma-separated list",{"type":49,"value":1083},", not a table. Use ",{"type":43,"tag":228,"props":1085,"children":1087},{"className":1086},[],[1088],{"type":49,"value":1089},"File.cs:L42",{"type":49,"value":1091}," format.",{"type":43,"tag":69,"props":1093,"children":1094},{},[1095,1100],{"type":43,"tag":102,"props":1096,"children":1097},{},[1098],{"type":49,"value":1099},"No explanatory prose",{"type":49,"value":1101}," beyond the Impact line — the severity icon already conveys urgency.",{"type":43,"tag":69,"props":1103,"children":1104},{},[1105,1110,1112,1117],{"type":43,"tag":102,"props":1106,"children":1107},{},[1108],{"type":49,"value":1109},"Merge related findings",{"type":49,"value":1111}," that share the same fix (e.g., all ",{"type":43,"tag":228,"props":1113,"children":1115},{"className":1114},[],[1116],{"type":49,"value":425},{"type":49,"value":1118}," calls go in one finding, not split by file).",{"type":43,"tag":69,"props":1120,"children":1121},{},[1122,1127,1129,1135],{"type":43,"tag":102,"props":1123,"children":1124},{},[1125],{"type":49,"value":1126},"Positive findings",{"type":49,"value":1128}," in a bullet list, not a table. One line per pattern: ",{"type":43,"tag":228,"props":1130,"children":1132},{"className":1131},[],[1133],{"type":49,"value":1134},"✅ Pattern — evidence",{"type":49,"value":824},{"type":43,"tag":52,"props":1137,"children":1138},{},[1139],{"type":49,"value":1140},"End with a summary table and disclaimer:",{"type":43,"tag":653,"props":1142,"children":1146},{"className":1143,"code":1144,"language":1145,"meta":661,"style":661},"language-markdown shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","| Severity | Count | Top Issue |\n|----------|-------|-----------|\n| 🔴 Critical | N | ... |\n| 🟡 Moderate | N | ... |\n| ℹ️ Info | N | ... |\n\n> ⚠️ **Disclaimer:** These results are generated by an AI assistant and are non-deterministic. Findings may include false positives, miss real issues, or suggest changes that are incorrect for your specific context. Always verify recommendations with benchmarks and human review before applying changes to production code.\n","markdown",[1147],{"type":43,"tag":228,"props":1148,"children":1149},{"__ignoreMap":661},[1150,1191,1200,1235,1268,1301,1311],{"type":43,"tag":1151,"props":1152,"children":1155},"span",{"class":1153,"line":1154},"line",1,[1156,1162,1168,1172,1177,1181,1186],{"type":43,"tag":1151,"props":1157,"children":1159},{"style":1158},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[1160],{"type":49,"value":1161},"|",{"type":43,"tag":1151,"props":1163,"children":1165},{"style":1164},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[1166],{"type":49,"value":1167}," Severity ",{"type":43,"tag":1151,"props":1169,"children":1170},{"style":1158},[1171],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1173,"children":1174},{"style":1164},[1175],{"type":49,"value":1176}," Count ",{"type":43,"tag":1151,"props":1178,"children":1179},{"style":1158},[1180],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1182,"children":1183},{"style":1164},[1184],{"type":49,"value":1185}," Top Issue ",{"type":43,"tag":1151,"props":1187,"children":1188},{"style":1158},[1189],{"type":49,"value":1190},"|\n",{"type":43,"tag":1151,"props":1192,"children":1194},{"class":1153,"line":1193},2,[1195],{"type":43,"tag":1151,"props":1196,"children":1197},{"style":1158},[1198],{"type":49,"value":1199},"|----------|-------|-----------|\n",{"type":43,"tag":1151,"props":1201,"children":1203},{"class":1153,"line":1202},3,[1204,1208,1213,1217,1222,1226,1231],{"type":43,"tag":1151,"props":1205,"children":1206},{"style":1158},[1207],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1209,"children":1210},{"style":1164},[1211],{"type":49,"value":1212}," 🔴 Critical ",{"type":43,"tag":1151,"props":1214,"children":1215},{"style":1158},[1216],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1218,"children":1219},{"style":1164},[1220],{"type":49,"value":1221}," N ",{"type":43,"tag":1151,"props":1223,"children":1224},{"style":1158},[1225],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1227,"children":1228},{"style":1164},[1229],{"type":49,"value":1230}," ... ",{"type":43,"tag":1151,"props":1232,"children":1233},{"style":1158},[1234],{"type":49,"value":1190},{"type":43,"tag":1151,"props":1236,"children":1238},{"class":1153,"line":1237},4,[1239,1243,1248,1252,1256,1260,1264],{"type":43,"tag":1151,"props":1240,"children":1241},{"style":1158},[1242],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1244,"children":1245},{"style":1164},[1246],{"type":49,"value":1247}," 🟡 Moderate ",{"type":43,"tag":1151,"props":1249,"children":1250},{"style":1158},[1251],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1253,"children":1254},{"style":1164},[1255],{"type":49,"value":1221},{"type":43,"tag":1151,"props":1257,"children":1258},{"style":1158},[1259],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1261,"children":1262},{"style":1164},[1263],{"type":49,"value":1230},{"type":43,"tag":1151,"props":1265,"children":1266},{"style":1158},[1267],{"type":49,"value":1190},{"type":43,"tag":1151,"props":1269,"children":1271},{"class":1153,"line":1270},5,[1272,1276,1281,1285,1289,1293,1297],{"type":43,"tag":1151,"props":1273,"children":1274},{"style":1158},[1275],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1277,"children":1278},{"style":1164},[1279],{"type":49,"value":1280}," ℹ️ Info ",{"type":43,"tag":1151,"props":1282,"children":1283},{"style":1158},[1284],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1286,"children":1287},{"style":1164},[1288],{"type":49,"value":1221},{"type":43,"tag":1151,"props":1290,"children":1291},{"style":1158},[1292],{"type":49,"value":1161},{"type":43,"tag":1151,"props":1294,"children":1295},{"style":1164},[1296],{"type":49,"value":1230},{"type":43,"tag":1151,"props":1298,"children":1299},{"style":1158},[1300],{"type":49,"value":1190},{"type":43,"tag":1151,"props":1302,"children":1304},{"class":1153,"line":1303},6,[1305],{"type":43,"tag":1151,"props":1306,"children":1308},{"emptyLinePlaceholder":1307},true,[1309],{"type":49,"value":1310},"\n",{"type":43,"tag":1151,"props":1312,"children":1314},{"class":1153,"line":1313},7,[1315,1321,1327,1333,1339,1343],{"type":43,"tag":1151,"props":1316,"children":1318},{"style":1317},"--shiki-light:#FF5370;--shiki-light-font-style:italic;--shiki-default:#FF9CAC;--shiki-default-font-style:italic;--shiki-dark:#FF9CAC;--shiki-dark-font-style:italic",[1319],{"type":49,"value":1320},">",{"type":43,"tag":1151,"props":1322,"children":1324},{"style":1323},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[1325],{"type":49,"value":1326}," ⚠️ ",{"type":43,"tag":1151,"props":1328,"children":1330},{"style":1329},"--shiki-light:#39ADB5;--shiki-light-font-weight:bold;--shiki-default:#89DDFF;--shiki-default-font-weight:bold;--shiki-dark:#89DDFF;--shiki-dark-font-weight:bold",[1331],{"type":49,"value":1332},"**",{"type":43,"tag":1151,"props":1334,"children":1336},{"style":1335},"--shiki-light:#E53935;--shiki-light-font-weight:bold;--shiki-default:#F07178;--shiki-default-font-weight:bold;--shiki-dark:#F07178;--shiki-dark-font-weight:bold",[1337],{"type":49,"value":1338},"Disclaimer:",{"type":43,"tag":1151,"props":1340,"children":1341},{"style":1329},[1342],{"type":49,"value":1332},{"type":43,"tag":1151,"props":1344,"children":1345},{"style":1323},[1346],{"type":49,"value":1347}," These results are generated by an AI assistant and are non-deterministic. Findings may include false positives, miss real issues, or suggest changes that are incorrect for your specific context. Always verify recommendations with benchmarks and human review before applying changes to production code.\n",{"type":43,"tag":58,"props":1349,"children":1351},{"id":1350},"validation",[1352],{"type":49,"value":1353},"Validation",{"type":43,"tag":52,"props":1355,"children":1356},{},[1357],{"type":49,"value":1358},"Before delivering results, verify:",{"type":43,"tag":65,"props":1360,"children":1363},{"className":1361},[1362],"contains-task-list",[1364,1376,1385,1394,1403],{"type":43,"tag":69,"props":1365,"children":1368},{"className":1366},[1367],"task-list-item",[1369,1374],{"type":43,"tag":1370,"props":1371,"children":1373},"input",{"disabled":1307,"type":1372},"checkbox",[],{"type":49,"value":1375}," All critical patterns were checked (from reference files or inline recipes)",{"type":43,"tag":69,"props":1377,"children":1379},{"className":1378},[1367],[1380,1383],{"type":43,"tag":1370,"props":1381,"children":1382},{"disabled":1307,"type":1372},[],{"type":49,"value":1384}," Topic-specific recipes run only when matching signals detected",{"type":43,"tag":69,"props":1386,"children":1388},{"className":1387},[1367],[1389,1392],{"type":43,"tag":1370,"props":1390,"children":1391},{"disabled":1307,"type":1372},[],{"type":49,"value":1393}," Each finding includes a concrete code fix",{"type":43,"tag":69,"props":1395,"children":1397},{"className":1396},[1367],[1398,1401],{"type":43,"tag":1370,"props":1399,"children":1400},{"disabled":1307,"type":1372},[],{"type":49,"value":1402}," Scan execution checklist is complete (all recipes run)",{"type":43,"tag":69,"props":1404,"children":1406},{"className":1405},[1367],[1407,1410],{"type":43,"tag":1370,"props":1408,"children":1409},{"disabled":1307,"type":1372},[],{"type":49,"value":1411}," Summary table included at end",{"type":43,"tag":58,"props":1413,"children":1415},{"id":1414},"common-pitfalls",[1416],{"type":49,"value":1417},"Common Pitfalls",{"type":43,"tag":126,"props":1419,"children":1420},{},[1421,1437],{"type":43,"tag":130,"props":1422,"children":1423},{},[1424],{"type":43,"tag":134,"props":1425,"children":1426},{},[1427,1432],{"type":43,"tag":138,"props":1428,"children":1429},{},[1430],{"type":49,"value":1431},"Pitfall",{"type":43,"tag":138,"props":1433,"children":1434},{},[1435],{"type":49,"value":1436},"Correct Approach",{"type":43,"tag":154,"props":1438,"children":1439},{},[1440,1467,1503,1516,1536,1556,1585,1604,1624],{"type":43,"tag":134,"props":1441,"children":1442},{},[1443,1462],{"type":43,"tag":161,"props":1444,"children":1445},{},[1446,1448,1454,1456],{"type":49,"value":1447},"Flagging every ",{"type":43,"tag":228,"props":1449,"children":1451},{"className":1450},[],[1452],{"type":49,"value":1453},"Dictionary",{"type":49,"value":1455}," as needing ",{"type":43,"tag":228,"props":1457,"children":1459},{"className":1458},[],[1460],{"type":49,"value":1461},"FrozenDictionary",{"type":43,"tag":161,"props":1463,"children":1464},{},[1465],{"type":49,"value":1466},"Only flag if the dictionary is never mutated after construction",{"type":43,"tag":134,"props":1468,"children":1469},{},[1470,1483],{"type":43,"tag":161,"props":1471,"children":1472},{},[1473,1475,1481],{"type":49,"value":1474},"Suggesting ",{"type":43,"tag":228,"props":1476,"children":1478},{"className":1477},[],[1479],{"type":49,"value":1480},"Span\u003CT>",{"type":49,"value":1482}," in async methods",{"type":43,"tag":161,"props":1484,"children":1485},{},[1486,1488,1494,1496,1501],{"type":49,"value":1487},"Use ",{"type":43,"tag":228,"props":1489,"children":1491},{"className":1490},[],[1492],{"type":49,"value":1493},"Memory\u003CT>",{"type":49,"value":1495}," in async code; ",{"type":43,"tag":228,"props":1497,"children":1499},{"className":1498},[],[1500],{"type":49,"value":1480},{"type":49,"value":1502}," only in sync hot paths",{"type":43,"tag":134,"props":1504,"children":1505},{},[1506,1511],{"type":43,"tag":161,"props":1507,"children":1508},{},[1509],{"type":49,"value":1510},"Reporting LINQ outside hot paths",{"type":43,"tag":161,"props":1512,"children":1513},{},[1514],{"type":49,"value":1515},"Only flag LINQ in identified hot paths or tight loops; LINQ is acceptable in code that runs infrequently. Since .NET 7, LINQ Min\u002FMax\u002FSum\u002FAverage are vectorized — blanket bans on LINQ are misguided",{"type":43,"tag":134,"props":1517,"children":1518},{},[1519,1531],{"type":43,"tag":161,"props":1520,"children":1521},{},[1522,1523,1529],{"type":49,"value":1474},{"type":43,"tag":228,"props":1524,"children":1526},{"className":1525},[],[1527],{"type":49,"value":1528},"ConfigureAwait(false)",{"type":49,"value":1530}," in app code",{"type":43,"tag":161,"props":1532,"children":1533},{},[1534],{"type":49,"value":1535},"Only applicable in library code; not primarily a performance concern",{"type":43,"tag":134,"props":1537,"children":1538},{},[1539,1551],{"type":43,"tag":161,"props":1540,"children":1541},{},[1542,1544,1549],{"type":49,"value":1543},"Recommending ",{"type":43,"tag":228,"props":1545,"children":1547},{"className":1546},[],[1548],{"type":49,"value":366},{"type":49,"value":1550}," everywhere",{"type":43,"tag":161,"props":1552,"children":1553},{},[1554],{"type":49,"value":1555},"Only for hot paths with frequent synchronous completion",{"type":43,"tag":134,"props":1557,"children":1558},{},[1559,1572],{"type":43,"tag":161,"props":1560,"children":1561},{},[1562,1564,1570],{"type":49,"value":1563},"Flagging ",{"type":43,"tag":228,"props":1565,"children":1567},{"className":1566},[],[1568],{"type":49,"value":1569},"new HttpClient()",{"type":49,"value":1571}," in DI services",{"type":43,"tag":161,"props":1573,"children":1574},{},[1575,1577,1583],{"type":49,"value":1576},"Check if ",{"type":43,"tag":228,"props":1578,"children":1580},{"className":1579},[],[1581],{"type":49,"value":1582},"IHttpClientFactory",{"type":49,"value":1584}," is already in use",{"type":43,"tag":134,"props":1586,"children":1587},{},[1588,1599],{"type":43,"tag":161,"props":1589,"children":1590},{},[1591,1592,1597],{"type":49,"value":1474},{"type":43,"tag":228,"props":1593,"children":1595},{"className":1594},[],[1596],{"type":49,"value":464},{"type":49,"value":1598}," for dynamic patterns",{"type":43,"tag":161,"props":1600,"children":1601},{},[1602],{"type":49,"value":1603},"Only flag when the pattern string is a compile-time literal",{"type":43,"tag":134,"props":1605,"children":1606},{},[1607,1619],{"type":43,"tag":161,"props":1608,"children":1609},{},[1610,1611,1617],{"type":49,"value":1474},{"type":43,"tag":228,"props":1612,"children":1614},{"className":1613},[],[1615],{"type":49,"value":1616},"CollectionsMarshal.AsSpan",{"type":49,"value":1618}," broadly",{"type":43,"tag":161,"props":1620,"children":1621},{},[1622],{"type":49,"value":1623},"Only for ultra-hot paths with benchmarked evidence; adds complexity and fragility",{"type":43,"tag":134,"props":1625,"children":1626},{},[1627,1639],{"type":43,"tag":161,"props":1628,"children":1629},{},[1630,1631,1637],{"type":49,"value":1474},{"type":43,"tag":228,"props":1632,"children":1634},{"className":1633},[],[1635],{"type":49,"value":1636},"unsafe",{"type":49,"value":1638}," code for micro-optimizations",{"type":43,"tag":161,"props":1640,"children":1641},{},[1642,1644,1649,1651,1656,1657,1662,1664,1669],{"type":49,"value":1643},"Avoid ",{"type":43,"tag":228,"props":1645,"children":1647},{"className":1646},[],[1648],{"type":49,"value":1636},{"type":49,"value":1650}," except where absolutely necessary — do not recommend it for micro-optimizations that don't matter. Safe alternatives like ",{"type":43,"tag":228,"props":1652,"children":1654},{"className":1653},[],[1655],{"type":49,"value":1480},{"type":49,"value":235},{"type":43,"tag":228,"props":1658,"children":1660},{"className":1659},[],[1661],{"type":49,"value":397},{"type":49,"value":1663}," in safe context, and ",{"type":43,"tag":228,"props":1665,"children":1667},{"className":1666},[],[1668],{"type":49,"value":404},{"type":49,"value":1670}," cover the vast majority of performance needs",{"type":43,"tag":1672,"props":1673,"children":1674},"style",{},[1675],{"type":49,"value":1676},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1678,"total":1777},[1679,1686,1701,1719,1733,1753,1763],{"slug":4,"name":4,"fn":5,"description":6,"org":1680,"tags":1681,"stars":25,"repoUrl":26,"updatedAt":27},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1682,1683,1684,1685],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":23,"slug":24,"type":15},{"name":13,"slug":14,"type":15},{"slug":1687,"name":1687,"fn":1688,"description":1689,"org":1690,"tags":1691,"stars":25,"repoUrl":26,"updatedAt":1700},"android-tombstone-symbolication","symbolicate .NET runtime frames in Android tombstones","Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app crash from a tombstone, resolving native backtrace frames in libmonosgen-2.0.so or libcoreclr.so to .NET runtime source code, or investigating SIGABRT, SIGSEGV, or other native signals originating from the .NET runtime on Android. DO NOT USE FOR pure Java\u002FKotlin crashes, managed .NET exceptions that are already captured in logcat, or iOS crash logs. INVOKES Symbolicate-Tombstone.ps1 script, llvm-symbolizer, Microsoft symbol server.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1692,1693,1696,1697],{"name":17,"slug":18,"type":15},{"name":1694,"slug":1695,"type":15},"Android","android",{"name":23,"slug":24,"type":15},{"name":1698,"slug":1699,"type":15},"Microsoft","microsoft","2026-07-12T08:23:21.595572",{"slug":1702,"name":1702,"fn":1703,"description":1704,"org":1705,"tags":1706,"stars":25,"repoUrl":26,"updatedAt":1718},"apple-crash-symbolication","symbolicate .NET runtime frames in crash logs","Symbolicate .NET runtime frames in Apple platform .ips crash logs (iOS, tvOS, Mac Catalyst, macOS). Extracts UUIDs and addresses from the native backtrace, locates dSYM debug symbols, and runs atos to produce function names with source file and line numbers. Automatically downloads .dwarf symbols from the Microsoft symbol server using Mach-O UUIDs. USE FOR triaging a .NET MAUI or Mono app crash from an .ips file on any Apple platform, resolving native backtrace frames in libcoreclr or libmonosgen-2.0 to .NET runtime source code, retrieving .ips crash logs from a connected iOS device or iPhone, or investigating EXC_CRASH, EXC_BAD_ACCESS, SIGABRT, or SIGSEGV originating from the .NET runtime. DO NOT USE FOR pure Swift\u002FObjective-C crashes with no .NET components, or Android tombstone files. INVOKES Symbolicate-Crash.ps1 script, atos, dwarfdump, idevicecrashreport.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1707,1708,1709,1712,1715],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":1710,"slug":1711,"type":15},"iOS","ios",{"name":1713,"slug":1714,"type":15},"macOS","macos",{"name":1716,"slug":1717,"type":15},"Observability","observability","2026-07-12T08:23:20.369986",{"slug":1720,"name":1720,"fn":1721,"description":1722,"org":1723,"tags":1724,"stars":25,"repoUrl":26,"updatedAt":1732},"assertion-quality","evaluate assertion quality in test suites","Analyzes the variety and depth of assertions across test suites in any language. Use when the user asks to evaluate assertion quality, find shallow tests, identify assertion-free tests (no assertions or only trivial ones like Assert.IsNotNull \u002F toBeTruthy()), flag self-referential or tautological assertions, measure assertion diversity, or audit whether tests verify different facets of behavior. Polyglot: .NET, Python, TS\u002FJS, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, C++. DO NOT USE FOR: writing new tests (use code-testing-agent \u002F writing-mstest-tests), mutation reasoning about whether tests would catch a bug (use test-gap-analysis), or a general severity-ranked anti-pattern audit (use test-anti-patterns), fixing or rewriting assertions, or writing, fixing, or modernizing MSTest tests, assertions, or attributes (use writing-mstest-tests).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1725,1726,1729],{"name":20,"slug":21,"type":15},{"name":1727,"slug":1728,"type":15},"QA","qa",{"name":1730,"slug":1731,"type":15},"Testing","testing","2026-07-12T08:23:51.277743",{"slug":1734,"name":1734,"fn":1735,"description":1736,"org":1737,"tags":1738,"stars":25,"repoUrl":26,"updatedAt":1752},"author-component","create and review Blazor components","Create or review Blazor components (.razor files) with correct architecture. USE FOR: writing new Blazor components that do NOT involve JavaScript interop, implementing parameters and EventCallback, RenderFragment slots, component lifecycle (OnInitializedAsync, OnParametersSet), async patterns, IAsyncDisposable, CancellationToken, CSS isolation, code-behind. DO NOT USE FOR: creating new projects (use create-blazor-project), JavaScript interop or calling browser APIs from Blazor (use use-js-interop), forms and validation (use collect-user-input), prerendering issues (use support-prerendering), HTTP data fetching patterns (use fetch-and-send-data), coordinating state between unrelated components (use coordinate-components).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1739,1740,1743,1746,1749],{"name":17,"slug":18,"type":15},{"name":1741,"slug":1742,"type":15},"Blazor","blazor",{"name":1744,"slug":1745,"type":15},"C#","csharp",{"name":1747,"slug":1748,"type":15},"UI Components","ui-components",{"name":1750,"slug":1751,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":1754,"name":1754,"fn":1755,"description":1756,"org":1757,"tags":1758,"stars":25,"repoUrl":26,"updatedAt":1762},"binlog-failure-analysis","analyze MSBuild binary logs","Analyze MSBuild binary logs to diagnose build failures. USE FOR: build errors that are unclear from console output, diagnosing cascading failures across multi-project builds, tracing MSBuild target execution order, and generally any MSBuild build issues. Requires an existing .binlog file. DO NOT USE FOR: generating binlogs (use binlog-generation), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1759,1760,1761],{"name":20,"slug":21,"type":15},{"name":23,"slug":24,"type":15},{"name":1698,"slug":1699,"type":15},"2026-07-12T08:21:34.637923",{"slug":1764,"name":1764,"fn":1765,"description":1766,"org":1767,"tags":1768,"stars":25,"repoUrl":26,"updatedAt":1776},"binlog-generation","generate MSBuild binary logs for diagnostics","Generate MSBuild binary logs (binlogs) for build diagnostics and analysis. USE FOR: adding \u002Fbl:{} to any dotnet build, test, pack, publish, or restore command to capture a full build execution trace, prerequisite for binlog-failure-analysis and build-perf-diagnostics skills, enabling post-build investigation of errors or performance. Requires MSBuild 17.8+ \u002F .NET 8 SDK+ for {} placeholder; PowerShell needs -bl:{{}}. DO NOT USE FOR: non-MSBuild build systems (npm, Maven, CMake), analyzing an existing binlog (use binlog-failure-analysis instead).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1769,1772,1773],{"name":1770,"slug":1771,"type":15},"Build","build",{"name":23,"slug":24,"type":15},{"name":1774,"slug":1775,"type":15},"Engineering","engineering","2026-07-19T05:38:19.340791",96,{"items":1779,"total":1884},[1780,1792,1799,1806,1814,1820,1828,1834,1840,1850,1863,1874],{"slug":1781,"name":1781,"fn":1782,"description":1783,"org":1784,"tags":1785,"stars":1789,"repoUrl":1790,"updatedAt":1791},"multithreaded-task-migration","migrate MSBuild tasks to multithreaded mode","Guide for migrating MSBuild tasks to multithreaded mode support, including compatibility red-team review. Use this when converting tasks to thread-safe versions, implementing IMultiThreadableTask, adding TaskEnvironment support, or auditing migrations for behavioral compatibility.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1786,1787,1788],{"name":17,"slug":18,"type":15},{"name":1774,"slug":1775,"type":15},{"name":13,"slug":14,"type":15},5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":4,"name":4,"fn":5,"description":6,"org":1793,"tags":1794,"stars":25,"repoUrl":26,"updatedAt":27},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1795,1796,1797,1798],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":23,"slug":24,"type":15},{"name":13,"slug":14,"type":15},{"slug":1687,"name":1687,"fn":1688,"description":1689,"org":1800,"tags":1801,"stars":25,"repoUrl":26,"updatedAt":1700},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1802,1803,1804,1805],{"name":17,"slug":18,"type":15},{"name":1694,"slug":1695,"type":15},{"name":23,"slug":24,"type":15},{"name":1698,"slug":1699,"type":15},{"slug":1702,"name":1702,"fn":1703,"description":1704,"org":1807,"tags":1808,"stars":25,"repoUrl":26,"updatedAt":1718},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1809,1810,1811,1812,1813],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":1710,"slug":1711,"type":15},{"name":1713,"slug":1714,"type":15},{"name":1716,"slug":1717,"type":15},{"slug":1720,"name":1720,"fn":1721,"description":1722,"org":1815,"tags":1816,"stars":25,"repoUrl":26,"updatedAt":1732},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1817,1818,1819],{"name":20,"slug":21,"type":15},{"name":1727,"slug":1728,"type":15},{"name":1730,"slug":1731,"type":15},{"slug":1734,"name":1734,"fn":1735,"description":1736,"org":1821,"tags":1822,"stars":25,"repoUrl":26,"updatedAt":1752},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1823,1824,1825,1826,1827],{"name":17,"slug":18,"type":15},{"name":1741,"slug":1742,"type":15},{"name":1744,"slug":1745,"type":15},{"name":1747,"slug":1748,"type":15},{"name":1750,"slug":1751,"type":15},{"slug":1754,"name":1754,"fn":1755,"description":1756,"org":1829,"tags":1830,"stars":25,"repoUrl":26,"updatedAt":1762},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1831,1832,1833],{"name":20,"slug":21,"type":15},{"name":23,"slug":24,"type":15},{"name":1698,"slug":1699,"type":15},{"slug":1764,"name":1764,"fn":1765,"description":1766,"org":1835,"tags":1836,"stars":25,"repoUrl":26,"updatedAt":1776},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1837,1838,1839],{"name":1770,"slug":1771,"type":15},{"name":23,"slug":24,"type":15},{"name":1774,"slug":1775,"type":15},{"slug":1841,"name":1841,"fn":1842,"description":1843,"org":1844,"tags":1845,"stars":25,"repoUrl":26,"updatedAt":1849},"build-parallelism","optimize MSBuild build parallelism","Diagnose and fix under-parallelized MSBuild builds. USE WHEN a multi-project solution build is slower than expected, doesn't speed up when you add cores, pegs a single core while others idle, or you want to know why `-m` isn't helping. Note: `\u002Fmaxcpucount` default is 1 (sequential) — always pass `-m` for parallel builds. Covers finding the critical path (longest serial ProjectReference chain), graph build (`\u002Fgraph`), BuildInParallel, and solution filters (`.slnf`). DO NOT USE FOR: single-project builds, incremental issues (use incremental-build), compilation slowness inside one project (use build-perf-diagnostics), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1846,1847,1848],{"name":17,"slug":18,"type":15},{"name":1774,"slug":1775,"type":15},{"name":13,"slug":14,"type":15},"2026-07-19T05:38:18.364937",{"slug":1851,"name":1851,"fn":1852,"description":1853,"org":1854,"tags":1855,"stars":25,"repoUrl":26,"updatedAt":1862},"build-perf-baseline","establish and optimize build performance baselines","Establish build performance baselines and apply systematic optimization techniques. USE FOR: diagnosing slow builds, establishing before\u002Fafter measurements (cold, warm, no-op scenarios), applying optimization strategies like MSBuild Server, static graph builds, artifacts output, and dependency graph trimming. Start here before diving into build-perf-diagnostics, incremental-build, or build-parallelism. DO NOT USE FOR: non-MSBuild build systems, detailed bottleneck analysis (use build-perf-diagnostics after baselining).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1856,1857,1860,1861],{"name":1774,"slug":1775,"type":15},{"name":1858,"slug":1859,"type":15},"Monitoring","monitoring",{"name":13,"slug":14,"type":15},{"name":1730,"slug":1731,"type":15},"2026-07-12T08:21:35.865649",{"slug":1864,"name":1864,"fn":1865,"description":1866,"org":1867,"tags":1868,"stars":25,"repoUrl":26,"updatedAt":1873},"build-perf-diagnostics","diagnose MSBuild build performance bottlenecks","Diagnose MSBuild build performance bottlenecks using binary log analysis. USE FOR: identifying why builds are slow by analyzing binlog performance summaries, detecting ResolveAssemblyReference (RAR) taking >5s, Roslyn analyzers consuming >30% of Csc time, single targets dominating >50% of build time, node utilization below 80%, excessive Copy tasks, NuGet restore running every build. Covers timeline analysis, Target\u002FTask Performance Summary interpretation, and 7 common bottleneck categories. Use after build-perf-baseline has established measurements. DO NOT USE FOR: establishing initial baselines (use build-perf-baseline first), fixing incremental build issues (use incremental-build), parallelism tuning (use build-parallelism), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1869,1870,1871,1872],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":1774,"slug":1775,"type":15},{"name":13,"slug":14,"type":15},"2026-07-12T08:21:40.961722",{"slug":1875,"name":1875,"fn":1876,"description":1877,"org":1878,"tags":1879,"stars":25,"repoUrl":26,"updatedAt":1883},"check-bin-obj-clash","detect MSBuild output path conflicts","Detects MSBuild projects with conflicting OutputPath or IntermediateOutputPath. USE FOR: builds failing with 'Cannot create a file when that file already exists', 'The process cannot access the file because it is being used by another process', intermittent build failures that succeed on retry, or missing\u002Foverwritten outputs in multi-project or multi-targeting builds where bin\u002Fobj (or project.assets.json) collide. Common causes: shared OutputPath, missing AppendTargetFrameworkToOutputPath, extra global properties (e.g. PublishReadyToRun), or SetTargetFramework on a ProjectReference to a single-targeting project. DO NOT USE FOR: file access errors unrelated to MSBuild (OS-level locking), single-project single-TFM builds, non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1880,1881,1882],{"name":23,"slug":24,"type":15},{"name":1774,"slug":1775,"type":15},{"name":1727,"slug":1728,"type":15},"2026-07-19T05:38:14.336279",144]