[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75V4Q47SXPV2C18QBW7ZQQF":3,"skill-same:01M75V4Q47SXPV2C18QBW7ZQQF":233},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M75V4Q47SXPV2C18QBW7ZQQF","dotnet-performance",null,"Tunes Puck .NET 11 performance: allocation, gen0 pauses, data layout, false sharing, stackalloc, LINQ, Vector\u003CT>, tiering, AllocationWindow, puck bench, AOT (IL2026). Numerics: maths-usage.","ByteTerrace\u002FPuck","ByteTerrace","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F18753984?v=4","01M75V2WCB9PGGC3H7RZC7AXPS","01M75V2WD0NJPRNP5HJ75VZGD0",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: dotnet-performance\ndescription: \"Tunes Puck .NET 11 performance: allocation, gen0 pauses, data layout, false sharing, stackalloc, LINQ, Vector\u003CT>, tiering, AllocationWindow, puck bench, AOT (IL2026). Numerics: maths-usage.\"\n---\n\n# .NET 11 performance\n\nJudge a change by code, disassembly and load-independent counts (allocations,\noperation counts, work counters). A wall-clock benchmark (`puck bench`) is\nevidence beside those counts, never alone, and runs as interleaved A\u002FB rounds\nin the lead's quiet window through `puck measure run` or `puck lease quiet`.\nThe heavy lease alone does not make a timing window quiet. Keep runtime improvements\napart from workload-specific evidence.\n\n`bench world` runs its collector against each frozen build's engine. Read a\nsource's `IWorkCounterSource.WorkKinds` rather than binding the CLI to individual\ncounter members: the measured source owns the kinds it exposes. Preserve the\nroot exception when a frozen build cannot run the harness; a type-initializer\nwrapper hides the member or input that needs fixing.\n\n## Route to the relevant evidence\n\n| Area | Read |\n|---|---|\n| Cross-domain mental model, pattern changes, API shortlist, folklore | [references\u002Fcore-guidance.md](references\u002Fcore-guidance.md) |\n| Landing a speed change: what keeps it, counters versus A\u002FB timing, proving the changed path ran, PGO in the World, techniques and the hazards review finds | [references\u002Fmeasured-changes.md](references\u002Fmeasured-changes.md) |\n| What the data costs: steady-state allocation, gen0 pauses and old-to-young references, LOH, layout and hot\u002Fcold splitting, struct copies, zero-fill and `stackalloc`, scans, bandwidth, false sharing, branches; measuring them here | [references\u002Fdata-and-memory.md](references\u002Fdata-and-memory.md) |\n| JIT, codegen, allocation, inlining, bounds checks, ISA | [references\u002Fjit-and-codegen.md](references\u002Fjit-and-codegen.md) |\n| Collections, LINQ, Frozen\u002FImmutable, `CollectionsMarshal` | [references\u002Fcollections-and-linq.md](references\u002Fcollections-and-linq.md) |\n| Strings, spans, search, regex, UTF-8, encoding | [references\u002Fstrings-text-search.md](references\u002Fstrings-text-search.md) |\n| Numerics, SIMD, tensor APIs, randomness, threading | [references\u002Fnumerics-simd-threading.md](references\u002Fnumerics-simd-threading.md) |\n| I\u002FO, compression, networking, JSON, crypto | [references\u002Fio-network-json-crypto.md](references\u002Fio-network-json-crypto.md) |\n| AOT, reflection, GC handles, diagnostics, DI, runtime | [references\u002Fruntime-aot-reflection-diagnostics.md](references\u002Fruntime-aot-reflection-diagnostics.md) |\n\nRead only the files relevant to the code under review. The references describe\n.NET 11 in general, with magnitudes measured on 10.0 that 11 keeps unless a\nsection says otherwise; resolve their advice through\n[`Directory.Build.props`](..\u002F..\u002F..\u002FDirectory.Build.props) and the affected\nproject file before changing code.\n\n## Apply repository constraints\n\n- **Bare-metal Puck intentionally has no GC.** Its own runtime and platform\n  host are the target. A port gives engine allocations explicit owners and\n  lifetimes and supplies reclamation or reuse; do not propose adding GC or\n  hosting stock .NET to preserve implicit managed lifetimes. The GC and JIT\n  advice below applies to the existing stock-runtime builds\n  ([owner ruling](..\u002F..\u002F..\u002Fdocs\u002Fdecisions\u002Fruntime-and-delivery.md#the-runtime)).\n- **`net11.0` is the repository default.** `Puck.Analyzers` deliberately\n  targets `netstandard2.0`; inspect the affected project rather than assuming\n  every project inherits the default.\n- **`InvariantGlobalization` is on.** Culture-sensitive comparison and\n  formatting guidance collapses to the invariant case.\n- **`PlatformTarget` is x64 and `OptimizationPreference` is Speed.** Arm-specific\n  and size-tuning material is background rather than a work item.\n- **`Puck.World` sets `TieredPGO=false`**\n  (the `TieredPGO` property in [`Puck.World.csproj`](..\u002F..\u002F..\u002Fsrc\u002FPuck.World\u002FPuck.World.csproj)). The\n  setting is process-wide, so every library a World loads runs without dynamic\n  PGO, while `puck bench` runs in the CLI with it. Advice that rests on dynamic\n  PGO (guarded devirtualization, stack-allocated `foreach` enumerators over\n  `IEnumerable\u003CT>`, hot and cold splitting) describes other hosts; for code the\n  World runs, read the disassembly of the actual build before relying on it.\n- **Test hosts shape allocation evidence.** Test projects run blocking server GC\n  (no background GC) so `GC.GetAllocatedBytesForCurrentThread` stays exact, and\n  several suites set `System.Runtime.TieredCompilation` to `false` so allocation\n  laws measure optimized code. Read the test project's own\n  `RuntimeHostConfigurationOption` entries before comparing numbers across\n  hosts. Counts are not comparable across different GC modes or tiering\n  configurations.\n- **`System.Numerics.Tensors` is a NuGet package outside the shared framework,**\n  and no Puck project references it directly (it arrives transitively through\n  `Microsoft.Extensions.AI`, which `Puck.World.Embeddings` uses). Adding a direct\n  reference is a dependency decision.\n- **AOT and trim compatibility analysis is the default; Native AOT publication\n  is not.** `Directory.Build.props` sets `IsAotCompatible=true`, enabling the AOT\n  and trimming analyzers under warnings-as-errors, and executables opt into\n  `PublishAot` deliberately when they ship that artifact. A project that cannot\n  satisfy the analyzers sets `IsAotCompatible=false` locally with a comment\n  naming the blocker (`src\u002FPuck.Launcher\u002FPuck.Launcher.csproj` is one). Discover\n  the current set with a search for that property and read each blocker comment\n  before adding one; do not copy a count into a skill or document.\n- **Fix a reflection-JSON analysis failure with source generation, not an\n  opt-out.** Declare a `[JsonSerializable]` partial class deriving from\n  `JsonSerializerContext` (`BindingProfileJsonContext` in `src\u002FPuck.Commands` is\n  the in-tree example) and call the `JsonTypeInfo` overloads\n  (`JsonSerializer.Serialize(value, Context.Default.Type)`) so the analyzer sees\n  the supported graph. Set `IsAotCompatible=false` only when the project file can\n  document a structural blocker, such as reflection-based document\n  serialization that a source-generated context cannot yet replace.\n- **Source generation removes reflection, not first-use JIT.** The world\n  document already rides one source-generated context (`WorldJsonSourceContext`\n  behind `WorldJsonContext`, `src\u002FPuck.World.Schema\u002FWorldDefinitionSerialization.cs`);\n  reach a graph type through its typed accessors or `WorldJsonContext.Default.For\u003CT>()`,\n  never a second options object or a cast of `Options.GetTypeInfo`. Its\n  generated metadata still instantiates `System.Text.Json`'s generics\n  (`JsonPropertyInfoValues\u003CT>`, `JsonPropertyInfo\u003CT>`, `JsonConverter\u003CT>`,\n  `EnumConverter\u003CT>`) once per value type in the graph, and neither an IL build\n  nor a ReadyToRun publish outside the framework's version bubble precompiles\n  them: they are most of a boot's `System.Text.Json` JIT. Count them with\n  `DOTNET_JitStdOutFile` and `DOTNET_JitDisasmSummary=1` grouped by generic\n  definition, and read the total with `host.memory` (`jit methods`, `compile`).\n  The World configures this metadata on a background thread from its first line\n  (`WorldJsonContext.StartPreparing`), so it overlaps composition and\n  compilation; a first parse that arrives sooner waits in the serializer's\n  `ConfigureSynchronized` lock rather than configuring a second time.\n- **World publication uses ReadyToRun.** `Puck.World` restores the `win-x64` and\n  `linux-x64` graphs and precompiles published assemblies; ordinary builds still\n  produce IL. Compare the exact published artifact with `puck bench startup\n  --world-artifact \u003Cpath>` and account for its larger assemblies. The World\n  README owns the publish recipe; CI retains its compile-once contract.\n\n## Determinism outranks throughput\n\n`AGENTS.md` rule 4 binds every value a simulation advances, compares, hashes,\nsnapshots or replays: the same document and input produce bit-identical state\non every run, machine and backend. Some of the references' strongest\nrecommendations are unsafe on that path, and they do not say so because they\nare not written about this repository.\n\n- Decide whether a value is simulation-significant before measuring. Route\n  simulation numerics to [maths-usage](..\u002Fmaths-usage\u002FSKILL.md): use the appropriate\n  fixed-point or integer operation. A stable float reduction is still forbidden\n  on a simulation or replayed-value path. Throughput alone does not justify a\n  changed simulation value; justify a deliberate correction and show repeatability\n  with `puck test --reproduce` before measuring it.\n- **Presentation-only float SIMD.** `Vector\u003CT>` is machine-width; a float\n  reduction can change its order and bits across machines. Fixed-width\n  `Vector128\u002F256\u002F512` with explicit lane-combine order and scalar tail gives\n  a controlled reduction order when the presentation needs one. Reordering is\n  a deliberate presentation choice, not a route for floats into simulation.\n  `TensorPrimitives` makes no reduction-order guarantee over float\u002Fdouble.\n- **Randomness and parallel completion order are not optimization knobs.**\n  `Random.Shared`, `RandomNumberGenerator` and `Parallel.*` never touch a value\n  path; [`maths-usage`](..\u002Fmaths-usage\u002FSKILL.md) names the reproducible\n  primitives that replace them. Neither is uninitialized memory: a rented,\n  native, `preserve: false` or `[SkipLocalsInit]` buffer read before it is\n  written makes the next run differ\n  ([data and memory](references\u002Fdata-and-memory.md#zero-only-what-you-read)).\n\nPresentation-only float (shaders, renderer and UI math, capture output) sits\noutside this contract and takes the references as written.\n\n## Review discipline\n\n- A capturing local function can allocate its display class at method entry,\n  before a cache check returns. Keep a hot cache-check method separate from its\n  closure-bearing slow rebuild. A test of it measures warmed calls on an active\n  path; an inactive-tick test cannot see the allocation.\n- Start with a profile, benchmark, allocation trace or demonstrated hot path. A\n  suspected hot path is not one; ask for the evidence. A change is kept when it\n  wins on a measured metric (time, bytes, work counters) or when it simplifies,\n  unifies or opens a design the next step builds on; never judge it by its\n  isolated delta alone (AGENTS.md, \"Changes pay dividends\"). A measurement\n  counts once it is shown to run the changed branch\n  ([measured changes](references\u002Fmeasured-changes.md#measure)).\n- Route measurements through the existing harnesses: `puck bench kernels` for\n  BenchmarkDotNet timing, allocation and disassembly; `puck bench world` for\n  server construction and tick workloads; `puck bench startup` for fresh-process\n  readiness. The [CLI reference](..\u002F..\u002F..\u002Fdocs\u002Freference\u002Fcli.md#puck-benchthe-puckmaths-microscope)\n  owns options, report fields and measurement hygiene.\n- Profile a running World's frame thread with `dotnet-trace collect -p \u003Cpid>\n  --profile dotnet-sampled-thread-time` (frame cost) or `--profile gc-verbose`\n  (allocation ticks with stacks, GC heap stats), then `dotnet-trace convert\n  --format speedscope` and aggregate the frame thread's stacks yourself; read\n  `host.frames` beside it for produce (split into `produce-work` and\n  `produce-fence`, the device back-pressure), simulate and the frame thread's\n  allocated bytes per iteration. Without a trace, `host.frames`' frame thread\n  allocation per iteration on a headless World is the first reading of\n  steady-state churn; `host.memory`'s `allocated-bytes` counts every thread.\n  A headless `--unpaced` World spends every iteration ticking, so a short\n  thread-time trace holds thousands of tick samples instead of hundreds, but\n  its ticks also wait on the machine queue (`QueuedMachineHost.Submit`), which\n  a paced World does not. The sampler\n  suspends threads at safe points, so samples pile onto `Thread.PollGC` under\n  `Buffer.BulkMoveWithWriteBarrier` and other poll sites: charge that time to\n  the caller's loop, not to the copy. `SpanHelpers.ZeroMemoryNative` under a\n  method returning a large struct with references (`WorldBody.CaptureIntegrationResidue`)\n  is the same skid: confirm such a share with an untraced reading before\n  cutting it. The debug world's scoped replay (the chess table's idle demo)\n  starts 60 s after boot, from tick 1800 at 30 Hz: a trace that ends before\n  then holds no scope hash. Per-frame costs that matter here come in\n  0.1-0.5 ms pieces; a scan of thousands of objects per call (a cache miss\n  each) and a closure a method allocates on entry because one of its lambdas\n  captures a parameter are the usual shapes.\n- Attribute a trace to the workload's outer frame or thread, including its tiered and inlined stacks. Filtering\n  only for an inner `WorldTick.Advance` frame drops steady samples after that method inlines; a short trace can\n  then make first-use workspace growth look like the dominant steady allocation. Separate warmup from the measured window.\n- Check the folklore section of the core guidance before preserving an old\n  hand-optimization, and confirm specialization and call boundaries in optimized\n  assembly. Prefer idiomatic code the .NET 11 JIT and libraries recognize.\n- Preserve determinism (AGENTS.md rule 4) and observable behaviour. Traversal\n  order matters where simulation state or deterministic output depends on it.\n  Deferred execution and exact exception types are not constraints: a loop\n  that replaces a LINQ pipeline may run eagerly and throw differently, and the\n  internal callers are updated in the same change.\n- Record first-use work separately from warm tables, and distinguish allocated\n  bytes from retained pools or peak workspace. Use idle, serial runs; sampled\n  timings alone never establish an algorithmic or full-domain claim.\n- Keep identities structural on hot read paths: formatting a principal or a parsed\n  channel just to check a public policy or compare a channel name creates garbage\n  even when the check has no work to do. Format only when the policy or output\n  needs text. A placement response-mask change preserves placement ids and order,\n  so resolved addresses carry across it; live permission checks refresh on every\n  use.\n- No law gates a timing: cost laws state deterministic counts. The managed\n  allocation meter is `Puck.Abstractions.Counting.AllocationWindow`: `Least`\n  takes the least of up to 16 windows of `GC.GetAllocatedBytesForCurrentThread`\n  and, when every window allocated, throws naming the window, the GC mode and\n  the types the runtime's `AllocationSampled` event sampled on that thread;\n  `Measure` returns the same least as a count for a ceiling, and `Total` counts\n  one run of a body that cannot repeat. Write allocation laws, stages and\n  diagnostics with it rather than reading the counter by hand. Warm the body\n  first: it runs more than once and must leave its subject able to run again.\n  Outside the existing harnesses, say which harness you built and why it\n  measures the claim.\n- Record the runtime, build configuration, workload, and the counts or\n  disassembly behind a performance claim, plus the `puck bench` result when the\n  owner asked for a timing.\n\n## First-call latency and tiering\n\nJudge a hot kernel under default tiering as well as in FullOpts disassembly. A\nmethod runs its tier-0 code until call counting promotes it, and promotion waits\nfor a spell with no new tier-0 compiles, about a second when the process sees\none processor; generic-math helpers stay calls at tier 0. So a kernel's first\ncalls in a fresh process can run several times slower than its steady state.\n\n- A compute kernel a request or count enters directly takes\n  `[MethodImpl(MethodImplOptions.AggressiveOptimization)]`; the cheap dispatcher\n  above several kernels stays tiered, so first use compiles only the path taken.\n- A published World is ReadyToRun-compiled, which moves first-use JIT work out\n  of startup; an ordinary build still produces IL that tiers. A rendering World\n  of either build prepares the engine's non-generic methods on a lowest-priority\n  background thread after boot (`WorldCodeWarmer`, `[world.warm]` on stderr),\n  so methods prepared before their first use avoid first-call JIT compilation on\n  the frame thread and can still tier up. Calls made before preparation finishes,\n  methods left unprepared, generic instantiations and static constructors can\n  still pay first-use costs. Addon mounting pre-initializes\n  `WorldAddonMutationDecoder`'s vocabulary and JSON contracts before its first\n  submitted write; this runs no guest and submits no mutation.\n- Check each hot method's tier with `DOTNET_JitDisasmSummary` in a scratch\n  process pinned to one CPU, and record first-call cost beside the steady state.\n  Pinning a harness to one CPU before it warms up starves the background tiering\n  thread, so warm up first.\n\n## Route adjacent work\n\n| Skill | Route to it when |\n|---|---|\n| [`maths-usage`](..\u002Fmaths-usage\u002FSKILL.md) | The code sits on a simulation value path. It owns the determinism contract this file defers to, the primitive that is correct, and which tier the change owes. |\n| [`maths-laws`](..\u002Fmaths-laws\u002FSKILL.md) | The optimization changes a public `Puck.Maths` member, or moves a value the law suite pins. |\n| [`rendering`](..\u002Frendering\u002FSKILL.md) | Shader, HLSL and GPU cost questions, which this skill's host-side C# guidance does not cover. |\n| [`gaming-bricks`](..\u002Fgaming-bricks\u002FSKILL.md) | The optimization changes emulator timing, snapshots, replay, allocation or Post-stage behavior. |\n| [`content-search`](..\u002Fcontent-search\u002FSKILL.md) | You need to locate a performance pattern, project property, analyzer opt-out or repeated workaround textually. |\n| [`symbol-analysis`](..\u002Fsymbol-analysis\u002FSKILL.md) | You are about to delete a hand-optimization the folklore sections retire and need to know what still references it. |\n","# .NET 11 performance\n\nJudge a change by code, disassembly and load-independent counts (allocations,\noperation counts, work counters). A wall-clock benchmark (`puck bench`) is\nevidence beside those counts, never alone, and runs as interleaved A\u002FB rounds\nin the lead's quiet window through `puck measure run` or `puck lease quiet`.\nThe heavy lease alone does not make a timing window quiet. Keep runtime improvements\napart from workload-specific evidence.\n\n`bench world` runs its collector against each frozen build's engine. Read a\nsource's `IWorkCounterSource.WorkKinds` rather than binding the CLI to individual\ncounter members: the measured source owns the kinds it exposes. Preserve the\nroot exception when a frozen build cannot run the harness; a type-initializer\nwrapper hides the member or input that needs fixing.\n\n## Route to the relevant evidence\n\n| Area | Read |\n|---|---|\n| Cross-domain mental model, pattern changes, API shortlist, folklore | [references\u002Fcore-guidance.md](references\u002Fcore-guidance.md) |\n| Landing a speed change: what keeps it, counters versus A\u002FB timing, proving the changed path ran, PGO in the World, techniques and the hazards review finds | [references\u002Fmeasured-changes.md](references\u002Fmeasured-changes.md) |\n| What the data costs: steady-state allocation, gen0 pauses and old-to-young references, LOH, layout and hot\u002Fcold splitting, struct copies, zero-fill and `stackalloc`, scans, bandwidth, false sharing, branches; measuring them here | [references\u002Fdata-and-memory.md](references\u002Fdata-and-memory.md) |\n| JIT, codegen, allocation, inlining, bounds checks, ISA | [references\u002Fjit-and-codegen.md](references\u002Fjit-and-codegen.md) |\n| Collections, LINQ, Frozen\u002FImmutable, `CollectionsMarshal` | [references\u002Fcollections-and-linq.md](references\u002Fcollections-and-linq.md) |\n| Strings, spans, search, regex, UTF-8, encoding | [references\u002Fstrings-text-search.md](references\u002Fstrings-text-search.md) |\n| Numerics, SIMD, tensor APIs, randomness, threading | [references\u002Fnumerics-simd-threading.md](references\u002Fnumerics-simd-threading.md) |\n| I\u002FO, compression, networking, JSON, crypto | [references\u002Fio-network-json-crypto.md](references\u002Fio-network-json-crypto.md) |\n| AOT, reflection, GC handles, diagnostics, DI, runtime | [references\u002Fruntime-aot-reflection-diagnostics.md](references\u002Fruntime-aot-reflection-diagnostics.md) |\n\nRead only the files relevant to the code under review. The references describe\n.NET 11 in general, with magnitudes measured on 10.0 that 11 keeps unless a\nsection says otherwise; resolve their advice through\n[`Directory.Build.props`](..\u002F..\u002F..\u002FDirectory.Build.props) and the affected\nproject file before changing code.\n\n## Apply repository constraints\n\n- **Bare-metal Puck intentionally has no GC.** Its own runtime and platform\n  host are the target. A port gives engine allocations explicit owners and\n  lifetimes and supplies reclamation or reuse; do not propose adding GC or\n  hosting stock .NET to preserve implicit managed lifetimes. The GC and JIT\n  advice below applies to the existing stock-runtime builds\n  ([owner ruling](..\u002F..\u002F..\u002Fdocs\u002Fdecisions\u002Fruntime-and-delivery.md#the-runtime)).\n- **`net11.0` is the repository default.** `Puck.Analyzers` deliberately\n  targets `netstandard2.0`; inspect the affected project rather than assuming\n  every project inherits the default.\n- **`InvariantGlobalization` is on.** Culture-sensitive comparison and\n  formatting guidance collapses to the invariant case.\n- **`PlatformTarget` is x64 and `OptimizationPreference` is Speed.** Arm-specific\n  and size-tuning material is background rather than a work item.\n- **`Puck.World` sets `TieredPGO=false`**\n  (the `TieredPGO` property in [`Puck.World.csproj`](..\u002F..\u002F..\u002Fsrc\u002FPuck.World\u002FPuck.World.csproj)). The\n  setting is process-wide, so every library a World loads runs without dynamic\n  PGO, while `puck bench` runs in the CLI with it. Advice that rests on dynamic\n  PGO (guarded devirtualization, stack-allocated `foreach` enumerators over\n  `IEnumerable\u003CT>`, hot and cold splitting) describes other hosts; for code the\n  World runs, read the disassembly of the actual build before relying on it.\n- **Test hosts shape allocation evidence.** Test projects run blocking server GC\n  (no background GC) so `GC.GetAllocatedBytesForCurrentThread` stays exact, and\n  several suites set `System.Runtime.TieredCompilation` to `false` so allocation\n  laws measure optimized code. Read the test project's own\n  `RuntimeHostConfigurationOption` entries before comparing numbers across\n  hosts. Counts are not comparable across different GC modes or tiering\n  configurations.\n- **`System.Numerics.Tensors` is a NuGet package outside the shared framework,**\n  and no Puck project references it directly (it arrives transitively through\n  `Microsoft.Extensions.AI`, which `Puck.World.Embeddings` uses). Adding a direct\n  reference is a dependency decision.\n- **AOT and trim compatibility analysis is the default; Native AOT publication\n  is not.** `Directory.Build.props` sets `IsAotCompatible=true`, enabling the AOT\n  and trimming analyzers under warnings-as-errors, and executables opt into\n  `PublishAot` deliberately when they ship that artifact. A project that cannot\n  satisfy the analyzers sets `IsAotCompatible=false` locally with a comment\n  naming the blocker (`src\u002FPuck.Launcher\u002FPuck.Launcher.csproj` is one). Discover\n  the current set with a search for that property and read each blocker comment\n  before adding one; do not copy a count into a skill or document.\n- **Fix a reflection-JSON analysis failure with source generation, not an\n  opt-out.** Declare a `[JsonSerializable]` partial class deriving from\n  `JsonSerializerContext` (`BindingProfileJsonContext` in `src\u002FPuck.Commands` is\n  the in-tree example) and call the `JsonTypeInfo` overloads\n  (`JsonSerializer.Serialize(value, Context.Default.Type)`) so the analyzer sees\n  the supported graph. Set `IsAotCompatible=false` only when the project file can\n  document a structural blocker, such as reflection-based document\n  serialization that a source-generated context cannot yet replace.\n- **Source generation removes reflection, not first-use JIT.** The world\n  document already rides one source-generated context (`WorldJsonSourceContext`\n  behind `WorldJsonContext`, `src\u002FPuck.World.Schema\u002FWorldDefinitionSerialization.cs`);\n  reach a graph type through its typed accessors or `WorldJsonContext.Default.For\u003CT>()`,\n  never a second options object or a cast of `Options.GetTypeInfo`. Its\n  generated metadata still instantiates `System.Text.Json`'s generics\n  (`JsonPropertyInfoValues\u003CT>`, `JsonPropertyInfo\u003CT>`, `JsonConverter\u003CT>`,\n  `EnumConverter\u003CT>`) once per value type in the graph, and neither an IL build\n  nor a ReadyToRun publish outside the framework's version bubble precompiles\n  them: they are most of a boot's `System.Text.Json` JIT. Count them with\n  `DOTNET_JitStdOutFile` and `DOTNET_JitDisasmSummary=1` grouped by generic\n  definition, and read the total with `host.memory` (`jit methods`, `compile`).\n  The World configures this metadata on a background thread from its first line\n  (`WorldJsonContext.StartPreparing`), so it overlaps composition and\n  compilation; a first parse that arrives sooner waits in the serializer's\n  `ConfigureSynchronized` lock rather than configuring a second time.\n- **World publication uses ReadyToRun.** `Puck.World` restores the `win-x64` and\n  `linux-x64` graphs and precompiles published assemblies; ordinary builds still\n  produce IL. Compare the exact published artifact with `puck bench startup\n  --world-artifact \u003Cpath>` and account for its larger assemblies. The World\n  README owns the publish recipe; CI retains its compile-once contract.\n\n## Determinism outranks throughput\n\n`AGENTS.md` rule 4 binds every value a simulation advances, compares, hashes,\nsnapshots or replays: the same document and input produce bit-identical state\non every run, machine and backend. Some of the references' strongest\nrecommendations are unsafe on that path, and they do not say so because they\nare not written about this repository.\n\n- Decide whether a value is simulation-significant before measuring. Route\n  simulation numerics to [maths-usage](..\u002Fmaths-usage\u002FSKILL.md): use the appropriate\n  fixed-point or integer operation. A stable float reduction is still forbidden\n  on a simulation or replayed-value path. Throughput alone does not justify a\n  changed simulation value; justify a deliberate correction and show repeatability\n  with `puck test --reproduce` before measuring it.\n- **Presentation-only float SIMD.** `Vector\u003CT>` is machine-width; a float\n  reduction can change its order and bits across machines. Fixed-width\n  `Vector128\u002F256\u002F512` with explicit lane-combine order and scalar tail gives\n  a controlled reduction order when the presentation needs one. Reordering is\n  a deliberate presentation choice, not a route for floats into simulation.\n  `TensorPrimitives` makes no reduction-order guarantee over float\u002Fdouble.\n- **Randomness and parallel completion order are not optimization knobs.**\n  `Random.Shared`, `RandomNumberGenerator` and `Parallel.*` never touch a value\n  path; [`maths-usage`](..\u002Fmaths-usage\u002FSKILL.md) names the reproducible\n  primitives that replace them. Neither is uninitialized memory: a rented,\n  native, `preserve: false` or `[SkipLocalsInit]` buffer read before it is\n  written makes the next run differ\n  ([data and memory](references\u002Fdata-and-memory.md#zero-only-what-you-read)).\n\nPresentation-only float (shaders, renderer and UI math, capture output) sits\noutside this contract and takes the references as written.\n\n## Review discipline\n\n- A capturing local function can allocate its display class at method entry,\n  before a cache check returns. Keep a hot cache-check method separate from its\n  closure-bearing slow rebuild. A test of it measures warmed calls on an active\n  path; an inactive-tick test cannot see the allocation.\n- Start with a profile, benchmark, allocation trace or demonstrated hot path. A\n  suspected hot path is not one; ask for the evidence. A change is kept when it\n  wins on a measured metric (time, bytes, work counters) or when it simplifies,\n  unifies or opens a design the next step builds on; never judge it by its\n  isolated delta alone (AGENTS.md, \"Changes pay dividends\"). A measurement\n  counts once it is shown to run the changed branch\n  ([measured changes](references\u002Fmeasured-changes.md#measure)).\n- Route measurements through the existing harnesses: `puck bench kernels` for\n  BenchmarkDotNet timing, allocation and disassembly; `puck bench world` for\n  server construction and tick workloads; `puck bench startup` for fresh-process\n  readiness. The [CLI reference](..\u002F..\u002F..\u002Fdocs\u002Freference\u002Fcli.md#puck-benchthe-puckmaths-microscope)\n  owns options, report fields and measurement hygiene.\n- Profile a running World's frame thread with `dotnet-trace collect -p \u003Cpid>\n  --profile dotnet-sampled-thread-time` (frame cost) or `--profile gc-verbose`\n  (allocation ticks with stacks, GC heap stats), then `dotnet-trace convert\n  --format speedscope` and aggregate the frame thread's stacks yourself; read\n  `host.frames` beside it for produce (split into `produce-work` and\n  `produce-fence`, the device back-pressure), simulate and the frame thread's\n  allocated bytes per iteration. Without a trace, `host.frames`' frame thread\n  allocation per iteration on a headless World is the first reading of\n  steady-state churn; `host.memory`'s `allocated-bytes` counts every thread.\n  A headless `--unpaced` World spends every iteration ticking, so a short\n  thread-time trace holds thousands of tick samples instead of hundreds, but\n  its ticks also wait on the machine queue (`QueuedMachineHost.Submit`), which\n  a paced World does not. The sampler\n  suspends threads at safe points, so samples pile onto `Thread.PollGC` under\n  `Buffer.BulkMoveWithWriteBarrier` and other poll sites: charge that time to\n  the caller's loop, not to the copy. `SpanHelpers.ZeroMemoryNative` under a\n  method returning a large struct with references (`WorldBody.CaptureIntegrationResidue`)\n  is the same skid: confirm such a share with an untraced reading before\n  cutting it. The debug world's scoped replay (the chess table's idle demo)\n  starts 60 s after boot, from tick 1800 at 30 Hz: a trace that ends before\n  then holds no scope hash. Per-frame costs that matter here come in\n  0.1-0.5 ms pieces; a scan of thousands of objects per call (a cache miss\n  each) and a closure a method allocates on entry because one of its lambdas\n  captures a parameter are the usual shapes.\n- Attribute a trace to the workload's outer frame or thread, including its tiered and inlined stacks. Filtering\n  only for an inner `WorldTick.Advance` frame drops steady samples after that method inlines; a short trace can\n  then make first-use workspace growth look like the dominant steady allocation. Separate warmup from the measured window.\n- Check the folklore section of the core guidance before preserving an old\n  hand-optimization, and confirm specialization and call boundaries in optimized\n  assembly. Prefer idiomatic code the .NET 11 JIT and libraries recognize.\n- Preserve determinism (AGENTS.md rule 4) and observable behaviour. Traversal\n  order matters where simulation state or deterministic output depends on it.\n  Deferred execution and exact exception types are not constraints: a loop\n  that replaces a LINQ pipeline may run eagerly and throw differently, and the\n  internal callers are updated in the same change.\n- Record first-use work separately from warm tables, and distinguish allocated\n  bytes from retained pools or peak workspace. Use idle, serial runs; sampled\n  timings alone never establish an algorithmic or full-domain claim.\n- Keep identities structural on hot read paths: formatting a principal or a parsed\n  channel just to check a public policy or compare a channel name creates garbage\n  even when the check has no work to do. Format only when the policy or output\n  needs text. A placement response-mask change preserves placement ids and order,\n  so resolved addresses carry across it; live permission checks refresh on every\n  use.\n- No law gates a timing: cost laws state deterministic counts. The managed\n  allocation meter is `Puck.Abstractions.Counting.AllocationWindow`: `Least`\n  takes the least of up to 16 windows of `GC.GetAllocatedBytesForCurrentThread`\n  and, when every window allocated, throws naming the window, the GC mode and\n  the types the runtime's `AllocationSampled` event sampled on that thread;\n  `Measure` returns the same least as a count for a ceiling, and `Total` counts\n  one run of a body that cannot repeat. Write allocation laws, stages and\n  diagnostics with it rather than reading the counter by hand. Warm the body\n  first: it runs more than once and must leave its subject able to run again.\n  Outside the existing harnesses, say which harness you built and why it\n  measures the claim.\n- Record the runtime, build configuration, workload, and the counts or\n  disassembly behind a performance claim, plus the `puck bench` result when the\n  owner asked for a timing.\n\n## First-call latency and tiering\n\nJudge a hot kernel under default tiering as well as in FullOpts disassembly. A\nmethod runs its tier-0 code until call counting promotes it, and promotion waits\nfor a spell with no new tier-0 compiles, about a second when the process sees\none processor; generic-math helpers stay calls at tier 0. So a kernel's first\ncalls in a fresh process can run several times slower than its steady state.\n\n- A compute kernel a request or count enters directly takes\n  `[MethodImpl(MethodImplOptions.AggressiveOptimization)]`; the cheap dispatcher\n  above several kernels stays tiered, so first use compiles only the path taken.\n- A published World is ReadyToRun-compiled, which moves first-use JIT work out\n  of startup; an ordinary build still produces IL that tiers. A rendering World\n  of either build prepares the engine's non-generic methods on a lowest-priority\n  background thread after boot (`WorldCodeWarmer`, `[world.warm]` on stderr),\n  so methods prepared before their first use avoid first-call JIT compilation on\n  the frame thread and can still tier up. Calls made before preparation finishes,\n  methods left unprepared, generic instantiations and static constructors can\n  still pay first-use costs. Addon mounting pre-initializes\n  `WorldAddonMutationDecoder`'s vocabulary and JSON contracts before its first\n  submitted write; this runs no guest and submits no mutation.\n- Check each hot method's tier with `DOTNET_JitDisasmSummary` in a scratch\n  process pinned to one CPU, and record first-call cost beside the steady state.\n  Pinning a harness to one CPU before it warms up starves the background tiering\n  thread, so warm up first.\n\n## Route adjacent work\n\n| Skill | Route to it when |\n|---|---|\n| [`maths-usage`](..\u002Fmaths-usage\u002FSKILL.md) | The code sits on a simulation value path. It owns the determinism contract this file defers to, the primitive that is correct, and which tier the change owes. |\n| [`maths-laws`](..\u002Fmaths-laws\u002FSKILL.md) | The optimization changes a public `Puck.Maths` member, or moves a value the law suite pins. |\n| [`rendering`](..\u002Frendering\u002FSKILL.md) | Shader, HLSL and GPU cost questions, which this skill's host-side C# guidance does not cover. |\n| [`gaming-bricks`](..\u002Fgaming-bricks\u002FSKILL.md) | The optimization changes emulator timing, snapshots, replay, allocation or Post-stage behavior. |\n| [`content-search`](..\u002Fcontent-search\u002FSKILL.md) | You need to locate a performance pattern, project property, analyzer opt-out or repeated workaround textually. |\n| [`symbol-analysis`](..\u002Fsymbol-analysis\u002FSKILL.md) | You are about to delete a hand-optimization the folklore sections retire and need to know what still references it. |\n",{"name":5,"description":7},"main","2ef814b84c9595144e052c6dcd300badb619ee2f",".claude\u002Fskills\u002Fdotnet-performance",0,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck","https:\u002F\u002Fgithub.com\u002FByteTerrace","https:\u002F\u002Fbyteterrace.com","2026-11-12 13:59:16",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ByteTerrace\u002FPuck --skill dotnet-performance",{"tool":37,"command":38},"bunx","bunx skills add ByteTerrace\u002FPuck --skill dotnet-performance",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ByteTerrace\u002FPuck --skill dotnet-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002FSKILL.md",true,[45,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,110,114,118,122,126,129,133,136,140,143,147,151,155,159,163,166,170,174,178,182,186,189,193,197,201,205,209,213,217,221,225,229],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"evals\u002Fn01-linq-to-loop\u002Fgraders\u002Fallocation-window-meter.md","REFERENCE","参考文档",667,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fgraders\u002Fallocation-window-meter.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"evals\u002Fn01-linq-to-loop\u002Fgraders\u002Fchecks-obsolete-folklore.md",832,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fgraders\u002Fchecks-obsolete-folklore.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"evals\u002Fn01-linq-to-loop\u002Fgraders\u002Fcounts-are-the-verdict.md",502,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fgraders\u002Fcounts-are-the-verdict.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"evals\u002Fn01-linq-to-loop\u002Fgraders\u002Fdemonstrated-hot-path.md",562,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fgraders\u002Fdemonstrated-hot-path.md",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"evals\u002Fn01-linq-to-loop\u002Fgraders\u002Fjudged-by-dividends.md",664,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fgraders\u002Fjudged-by-dividends.md",{"path":68,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002Fn01-linq-to-loop\u002Fgraders\u002Fpreserves-semantics.md",819,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fgraders\u002Fpreserves-semantics.md",{"path":72,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fn01-linq-to-loop\u002Fgraders\u002Fpuck-bench-harness.md",69,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fgraders\u002Fpuck-bench-harness.md",{"path":76,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fn01-linq-to-loop\u002Fgraders\u002Fskill-fired.md",36,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fgraders\u002Fskill-fired.md",{"path":80,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fn01-linq-to-loop\u002Fgraders\u002Ftiming-is-interleaved-ab.md",538,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fgraders\u002Ftiming-is-interleaved-ab.md",{"path":84,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fn01-linq-to-loop\u002Fgraders\u002Fworld-disables-tiered-pgo.md",210,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fgraders\u002Fworld-disables-tiered-pgo.md",{"path":88,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fn01-linq-to-loop\u002Fprompt.md",383,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn01-linq-to-loop\u002Fprompt.md",{"path":92,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fbit-identity-before-measuring.md",592,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fbit-identity-before-measuring.md",{"path":96,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Forder-not-promised.md",606,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Forder-not-promised.md",{"path":100,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fpresentation-gets-a-fixed-order.md",839,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fpresentation-gets-a-fixed-order.md",{"path":104,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Froutes-to-maths-usage.md",91,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Froutes-to-maths-usage.md",{"path":108,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":109},"evals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fskill-fired.md",{"path":111,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fthroughput-is-not-enough.md",764,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fthroughput-is-not-enough.md",{"path":115,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fvalue-moves-once.md",943,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fvalue-moves-once.md",{"path":119,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":120,"sourceHtmlUrl":121},"evals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fwidth-varies.md",669,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn02-vectorize-replayed-reduction\u002Fgraders\u002Fwidth-varies.md",{"path":123,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":124,"sourceHtmlUrl":125},"evals\u002Fn02-vectorize-replayed-reduction\u002Fprompt.md",439,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn02-vectorize-replayed-reduction\u002Fprompt.md",{"path":127,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":101,"sourceHtmlUrl":128},"evals\u002Fn03-aot-analysis-fails\u002Fgraders\u002Fanalysis-is-the-default.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn03-aot-analysis-fails\u002Fgraders\u002Fanalysis-is-the-default.md",{"path":130,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":131,"sourceHtmlUrl":132},"evals\u002Fn03-aot-analysis-fails\u002Fgraders\u002Fjson-serializer-context.md",78,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn03-aot-analysis-fails\u002Fgraders\u002Fjson-serializer-context.md",{"path":134,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":73,"sourceHtmlUrl":135},"evals\u002Fn03-aot-analysis-fails\u002Fgraders\u002Fjson-type-info-overloads.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn03-aot-analysis-fails\u002Fgraders\u002Fjson-type-info-overloads.md",{"path":137,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":138,"sourceHtmlUrl":139},"evals\u002Fn03-aot-analysis-fails\u002Fgraders\u002Fopt-out-only-for-a-structural-blocker.md",719,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn03-aot-analysis-fails\u002Fgraders\u002Fopt-out-only-for-a-structural-blocker.md",{"path":141,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":142},"evals\u002Fn03-aot-analysis-fails\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn03-aot-analysis-fails\u002Fgraders\u002Fskill-fired.md",{"path":144,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":145,"sourceHtmlUrl":146},"evals\u002Fn03-aot-analysis-fails\u002Fprompt.md",462,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn03-aot-analysis-fails\u002Fprompt.md",{"path":148,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":149,"sourceHtmlUrl":150},"evals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fallocation-window.md",73,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fallocation-window.md",{"path":152,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":153,"sourceHtmlUrl":154},"evals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fgc-mode-matters.md",712,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fgc-mode-matters.md",{"path":156,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":157,"sourceHtmlUrl":158},"evals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fleast-of-windows.md",739,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fleast-of-windows.md",{"path":160,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":161,"sourceHtmlUrl":162},"evals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fno-law-gates-timing.md",575,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fno-law-gates-timing.md",{"path":164,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":165},"evals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fskill-fired.md",{"path":167,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":168,"sourceHtmlUrl":169},"evals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fwarmed-body.md",453,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn04-prove-zero-allocation\u002Fgraders\u002Fwarmed-body.md",{"path":171,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":172,"sourceHtmlUrl":173},"evals\u002Fn04-prove-zero-allocation\u002Fprompt.md",268,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn04-prove-zero-allocation\u002Fprompt.md",{"path":175,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":176,"sourceHtmlUrl":177},"evals\u002Fn05-first-call-latency\u002Fgraders\u002Fchecks-the-tier.md",670,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn05-first-call-latency\u002Fgraders\u002Fchecks-the-tier.md",{"path":179,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":180,"sourceHtmlUrl":181},"evals\u002Fn05-first-call-latency\u002Fgraders\u002Fdispatcher-stays-tiered.md",728,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn05-first-call-latency\u002Fgraders\u002Fdispatcher-stays-tiered.md",{"path":183,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":184,"sourceHtmlUrl":185},"evals\u002Fn05-first-call-latency\u002Fgraders\u002Fpublished-versus-il-build.md",624,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn05-first-call-latency\u002Fgraders\u002Fpublished-versus-il-build.md",{"path":187,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":188},"evals\u002Fn05-first-call-latency\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn05-first-call-latency\u002Fgraders\u002Fskill-fired.md",{"path":190,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":191,"sourceHtmlUrl":192},"evals\u002Fn05-first-call-latency\u002Fgraders\u002Ftier-zero-until-promotion.md",753,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn05-first-call-latency\u002Fgraders\u002Ftier-zero-until-promotion.md",{"path":194,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":195,"sourceHtmlUrl":196},"evals\u002Fn05-first-call-latency\u002Fprompt.md",290,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Fevals\u002Fn05-first-call-latency\u002Fprompt.md",{"path":198,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":199,"sourceHtmlUrl":200},"references\u002Fcollections-and-linq.md",29892,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Freferences\u002Fcollections-and-linq.md",{"path":202,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":203,"sourceHtmlUrl":204},"references\u002Fcore-guidance.md",26264,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Freferences\u002Fcore-guidance.md",{"path":206,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":207,"sourceHtmlUrl":208},"references\u002Fdata-and-memory.md",25668,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Freferences\u002Fdata-and-memory.md",{"path":210,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":211,"sourceHtmlUrl":212},"references\u002Fio-network-json-crypto.md",21075,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Freferences\u002Fio-network-json-crypto.md",{"path":214,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":215,"sourceHtmlUrl":216},"references\u002Fjit-and-codegen.md",28091,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Freferences\u002Fjit-and-codegen.md",{"path":218,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":219,"sourceHtmlUrl":220},"references\u002Fmeasured-changes.md",9984,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Freferences\u002Fmeasured-changes.md",{"path":222,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":223,"sourceHtmlUrl":224},"references\u002Fnumerics-simd-threading.md",23045,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Freferences\u002Fnumerics-simd-threading.md",{"path":226,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":227,"sourceHtmlUrl":228},"references\u002Fruntime-aot-reflection-diagnostics.md",22590,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Freferences\u002Fruntime-aot-reflection-diagnostics.md",{"path":230,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":231,"sourceHtmlUrl":232},"references\u002Fstrings-text-search.md",24920,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdotnet-performance\u002Freferences\u002Fstrings-text-search.md",[234,241,248,255,262,269],{"skillNo":235,"name":236,"nameZh":6,"description":237,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":238,"categories":239,"keywords":240,"publishedAt":18},"01M75V6X1GBYDMSMJC8VXXPFAP","verification","Verifies Puck changes: landing bar, builds, stale DLLs, flaky tests, GPU\u002Fheavy leases, coverage, source-scan or regex laws versus type\u002Fcompiler enforcement, and writing tests.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverification\u002FSKILL.md",[],[],{"skillNo":242,"name":243,"nameZh":6,"description":244,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":245,"categories":246,"keywords":247,"publishedAt":18},"01M75V6TM3F9A7ZMA0Q43RVJSF","tooling","Maps shared build\u002FCLI architecture, compiler assembly identity, candidate installation, generated sections, and host admission.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftooling\u002FSKILL.md",[],[],{"skillNo":249,"name":250,"nameZh":6,"description":251,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":252,"categories":253,"keywords":254,"publishedAt":18},"01M75V6R4E6AY73X27MC6EE5X5","tooling-files","Maps shared repository tooling for files, paths, Git queries, project ownership and Markdown fences. Load before adding or changing a helper in these areas.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftooling-files\u002FSKILL.md",[],[],{"skillNo":256,"name":257,"nameZh":6,"description":258,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":259,"categories":260,"keywords":261,"publishedAt":18},"01M75V6N2P9XWWPH7EHRKMBTEC","symbol-analysis","Answers C# structure questions with puck references and declarations: which types derive from, implement or override a symbol, who references it, safe to delete or rename. Text: content-search.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsymbol-analysis\u002FSKILL.md",[],[],{"skillNo":263,"name":264,"nameZh":6,"description":265,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":266,"categories":267,"keywords":268,"publishedAt":18},"01M75V6HRKM57BD8Q7A4N8QN0C","state","Maps Puck's state and rule engine (Puck.State, .Rules, .Search, .Topology, .Vectors, .Generators): arena, journal scopes, undo, hashing, rule compiler, faults, transforms, search, draws.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fstate\u002FSKILL.md",[],[],{"skillNo":270,"name":271,"nameZh":6,"description":272,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":273,"categories":274,"keywords":275,"publishedAt":18},"01M75V6CE3X73KNZYFRT9A5W8F","sdf-authoring","Authors creations: shape rows, primitives, blends, folds, palettes, paints, render lanes, rigs, bake work and bytes, creation stats. Use to sculpt or fix a part. Grammar: puck-dsl; GPU: rendering.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsdf-authoring\u002FSKILL.md",[],[]]