[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DYRQ4J0ZPAFZ7QXA0Z5D3C":3,"skill-same:01M6DYRQ4J0ZPAFZ7QXA0Z5D3C":84},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6DYRQ4J0ZPAFZ7QXA0Z5D3C","vectorization",null,"Design, implement, optimize, and review SIMD code in .NET. USE FOR: vectorizing scalar loops with TensorPrimitives, Vector64\u002F128\u002F256\u002F512, or platform hardware intrinsics; reviewing existing SIMD code, including the generic Vector type, for contract equivalence, tail handling, memory safety, portability, fallbacks, and measured performance. DO NOT USE FOR: performance work unrelated to SIMD or vectorization.","managedcode\u002Fdotnet-skills","managedcode","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78253589?v=4","01M6DYDJR3EG8KB5G4PC65XCTT","Managed Code","01M6DYDJX0ZT432N04NYJW89DN",515,"MIT","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FPlatform\u002FOfficial-DotNet-Advanced\u002Fskills\u002Fvectorization\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000037","律师与法务","PROFESSION","适用职业",[5,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"use","generic","Existing","for","portability","with","type","contract","platform","optimize","do","hardware","unrelated","design","work","Safety","simd","vector","code","implement","performance","memory safety","memory","review","2026-11-10 10:12:30",false,"---\nname: vectorization\ndescription: >\n  Design, implement, optimize, and review SIMD code in .NET.\n  USE FOR: vectorizing scalar loops with TensorPrimitives,\n  Vector64\u002F128\u002F256\u002F512, or platform hardware intrinsics; reviewing existing SIMD\n  code, including the generic Vector type, for contract equivalence, tail handling, memory\n  safety, portability, fallbacks, and measured performance. DO NOT USE FOR:\n  performance work unrelated to SIMD or vectorization.\nlicense: MIT\n---\n\n# .NET SIMD vectorization\n\nProduce a portable optimization that preserves the scalar contract, remains memory-safe at every\nlength, and earns its complexity with measured results. **Read the official\n[SIMD and hardware-intrinsics guidance](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fstandard\u002Fsimd) first**\nand follow its comprehensive implementation templates. In particular, use its self-contained\nper-width dispatch, dedicated small-input handling, loop, and remainder shapes rather than reducing\nthem to a chain of width checks. This skill supplies the decision rules and validation checks to\napply while changing real code.\n\n## Inputs and prerequisites\n\nDiscover these from the repository before asking the user:\n\n| Input | Required | What to establish |\n| --- | --- | --- |\n| Scalar implementation and tests | Yes | Existing contract, representative call sites, and supported overlap |\n| Target frameworks and platforms | Yes | Available SIMD APIs and architectures that must behave consistently |\n| Build and test workflow | Yes | The repository's normal commands and how to launch separate test processes |\n| Representative workload or benchmark | For optimization | Typical input sizes and the baseline to beat |\n\nDo not add a package merely because an API exists there. First check the target framework and the\nproject's existing dependency\u002Fversioning policy.\n\n## Core rules\n\n1. **Use the highest-level API that matches the contract, then stop.** `Span\u003CT>` and `string`\n   operations, `TensorPrimitives`, and tensor types already accelerate many operations. LINQ\n   reductions such as `Sum`, `Min`, `Max`, and `Average` can also accelerate when the source exposes\n   its underlying span. Verify empty-input and floating-point behavior rather than assuming similarly\n   named operations are interchangeable. Once an existing API preserves the contract, use it instead\n   of continuing into handwritten SIMD. Before writing an explicit loop, name the framework APIs\n   considered and why none applies. Fixed-shape `System.Numerics` types remain appropriate for\n   graphics and similar domains.\n2. **Start new explicit SIMD loops with `Vector128\u003CT>`.** It is accelerated across the broadest\n   hardware set. Add wider fixed-width paths only when measurements justify them.\n3. **Keep platforms consistent.** Prefer cross-platform operations on the fixed-width vector types;\n   they lower to the appropriate target instructions. For example,\n   `(vector & mask) == Vector128\u003Cbyte>.Zero` becomes `ptest` on x86\u002Fx64. Use\n   architecture-specific intrinsics only for a measured gap, guard them with `IsSupported`, and\n   retain equivalent portable or scalar behavior.\n4. **Read `IsHardwareAccelerated`, `IsSupported`, and `Count` directly.** The JIT treats them as\n   constants, so caching them adds no value and obscures which branches disappear.\n5. **Prefer operators where they are clear.** Parenthesize expressions that mix bitwise and\n   comparison operators so precedence is explicit.\n\nIf the task is review-only, do not rewrite the code. Report correctness and memory-safety defects\nbefore performance opportunities.\n\n## Authoring checklist\n\n- **Contract:** identify behavior for empty and short inputs, overlap, overflow, NaN, signed zero,\n  ordering, and exceptions before changing the implementation.\n- **Framework gate:** inspect the target framework and existing package references, then compile or\n  probe the highest-level candidate API with the required edge cases. A small contract adapter, such\n  as preserving special empty-input behavior, does not justify reimplementing the operation. If the\n  API preserves the contract, use it and stop; do not claim it is unavailable without checking.\n- **Structure:** for new explicit SIMD, implement `Vector128\u003CT>` and scalar first. Only after\n  measurements justify wider paths, check `Vector512\u003CT>`, then `Vector256\u003CT>`, optional `Vector\u003CT>`,\n  `Vector128\u003CT>`, and finally scalar. Omit paths the implementation does not need. Each outer\n  fixed-width guard checks only its `IsHardwareAccelerated` property and, for generic element types,\n  `IsSupported`. Inside that block, run the width-specific helper when the input has at least\n  `Count` elements; otherwise run a dedicated small-input helper, then return. Do not put the length\n  check in the outer guard and fall through to repeat dispatch at narrower widths. Keeping each\n  supported-width block self-contained lets the JIT remove unsupported blocks and avoids redundant\n  work on common small inputs.\n- **Loads and stores:** prefer span-based `Vector128.Create(span)` and `CopyTo`; the JIT keeps them\n  efficient and they require no pinning or reference arithmetic. Unsafe loads and stores are largely\n  unnecessary. When a path genuinely must walk a buffer by managed reference, use the element-offset\n  `LoadUnsafe(ref T, nuint)` and `StoreUnsafe` overloads rather than pointers or manually advanced\n  references.\n- **Empty inputs:** in a reference-based path, obtain the starting reference with\n  `MemoryMarshal.GetReference(span)` or `MemoryMarshal.GetArrayDataReference(array)`, not by indexing\n  element `0`.\n- **Unsupported element types:** the fixed-width vectors support primitive numeric element types,\n  not `char` or `bool`. Reinterpret with `MemoryMarshal.Cast` or `As\u003CTFrom, TTo>`; reinterpretation\n  changes only the type, not the bits. Keep Boolean data as `0` or `1` and characters as valid\n  UTF-16, normalizing results before storing when necessary.\n- **Offsets:** prove the input contains a full vector before subtracting `Count` or converting an\n  index to `nuint`; otherwise a negative value becomes a huge unsigned offset.\n- **Managed references:** do not form references before the start or past the end of a span,\n  including a one-past-end reference. The runtime permits a non-dereferenced managed pointer exactly\n  one past an object or array, but this guidance intentionally prohibits the pattern because it is\n  fragile and easy to misuse. Keep the base reference in range and express traversal with an element\n  offset.\n- **Remainders:** cover every length, including `0`, `Count - 1`, `Count`, `Count + 1`, and\n  nonmultiples of each width. Once the input contains a full vector, keep the tail vectorized by\n  reprocessing the last full vector. An idempotent operation can fold that overlap in directly. A\n  non-idempotent operation must use `ConditionalSelect` to replace repeated lanes with the\n  operation's identity before folding them in. This is the JIT-recognized general pattern; it can\n  reduce a zero-identity selection to a bitwise mask while retaining broader optimization\n  opportunities. For in-place transforms, preserve the original tail values before overlapping\n  stores and write only valid results.\n- **Buffer overlap:** choose a traversal direction or staging strategy that prevents stores from\n  corrupting values not yet loaded.\n- **Numeric behavior:** account for floating-point reassociation, NaN and signed-zero semantics,\n  checked or unchecked integer overflow, and endianness where the algorithm depends on byte order.\n  `Native` and `Estimate` operations can intentionally relax precision or IEEE edge-case behavior;\n  use them only when the contract permits it and measurements justify them.\n\nThe official guidance contains the complete dispatch, small-input, unrolling, and remainder\ntemplates; use those for the full implementation. The following excerpt illustrates only the inner\nsafe `Vector128\u003CT>` loop for an in-place elementwise transform, after its self-contained dispatch\nblock has established at least one full vector. `Transform` represents the operation being\nimplemented:\n\n```csharp\nSpan\u003Cint> tail = data.Slice(data.Length - Vector128\u003Cint>.Count);\nVector128\u003Cint> end = Vector128.Create\u003Cint>(tail);\nSpan\u003Cint> remaining = data;\n\nwhile (remaining.Length >= Vector128\u003Cint>.Count)\n{\n    Vector128\u003Cint> values = Vector128.Create\u003Cint>(remaining);\n    Transform(values).CopyTo(remaining);\n    remaining = remaining.Slice(Vector128\u003Cint>.Count);\n}\n\nif (!remaining.IsEmpty)\n{\n    Transform(end).CopyTo(tail);\n}\n```\n\nThe early `end` load preserves original values before overlapping stores. For a read-only reduction,\nload the same final span after the main loop and use `ConditionalSelect` to replace already-processed\nlanes with the operation's identity. Do not substitute `LoadUnsafe`\u002F`StoreUnsafe` or a scalar\nepilogue merely to avoid span bounds checks.\n\n## Testing checklist\n\n- Compare the optimized implementation with the scalar contract across boundary lengths,\n  randomized values, empty inputs, supported overlap, and numeric edge cases. Cover every\n  implemented width and the scalar path with inputs both large enough and too small to benefit.\n- Exercise every implemented width and the scalar fallback in separate processes. On x86\u002Fx64\n  CoreCLR, `DOTNET_EnableAVX2=0` disables AVX2 and `DOTNET_EnableHWIntrinsic=0` disables hardware\n  intrinsics. Use the repository's normal test command and do not change these process-wide\n  settings inside a unit test. These settings do not change code already compiled as ReadyToRun or\n  ahead of time, so confirm the target code is JIT-compiled when using them to force a path.\n- For unsafe loads and stores, use guard-page or equivalent boundary tests when available. Put the\n  inaccessible page after the buffer for forward iteration and before it for backwards iteration,\n  and include nonmultiple lengths. An ordinary array allocation does not reliably expose an\n  out-of-bounds read.\n\n## Benchmarking\n\nUse BenchmarkDotNet to measure representative small and large inputs before keeping the added\ncomplexity. Compare scalar, `Vector128\u003CT>`, and each wider implemented path in the same run. Small\ninputs can be slower because setup dominates, and speedups are rarely the theoretical vector-width\nmultiple because memory throughput, alignment, and latency still apply. Report throughput or time\nwith noise context and, when relevant, generated code size or instruction counts. Control allocation\nalignment for stable measurements or randomize it to observe the distribution. A wider vector is\nnot automatically faster.\n\nIf the project cannot target the required framework, run the relevant architecture, or execute the\nfallback configuration, state exactly which path remains unverified. Do not claim success from a\ndefault-hardware test alone.\n\n## Completion contract\n\n- **Authoring:** leave the scalar contract covered by tests; identify the framework or SIMD layer\n  selected; report measurements for the representative workload; name any architecture or fallback\n  path that could not be exercised.\n- **Review:** report only concrete findings, ordered by correctness, memory safety, portability,\n  tests, then performance evidence. If none remain, say so directly.\n- Do not call an optimization complete when it only builds, only passes on the current machine, or\n  has no comparison against the scalar baseline.\n\n## Review checklist\n\nReview in this order:\n\n1. Scalar-contract equivalence, including signed zero, NaN, overflow, and relevant endianness\n2. Reuse of an existing accelerated framework API\n3. Tail correctness for idempotent versus non-idempotent work\n4. Memory safety, unsigned offset arithmetic, empty inputs, and overlapping buffers\n5. Portable dispatch and behaviorally equivalent fallbacks\n6. Tests that force each width and the scalar path\n7. Benchmarks that justify explicit SIMD and additional widths\n","# .NET SIMD vectorization\n\nProduce a portable optimization that preserves the scalar contract, remains memory-safe at every\nlength, and earns its complexity with measured results. **Read the official\n[SIMD and hardware-intrinsics guidance](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fstandard\u002Fsimd) first**\nand follow its comprehensive implementation templates. In particular, use its self-contained\nper-width dispatch, dedicated small-input handling, loop, and remainder shapes rather than reducing\nthem to a chain of width checks. This skill supplies the decision rules and validation checks to\napply while changing real code.\n\n## Inputs and prerequisites\n\nDiscover these from the repository before asking the user:\n\n| Input | Required | What to establish |\n| --- | --- | --- |\n| Scalar implementation and tests | Yes | Existing contract, representative call sites, and supported overlap |\n| Target frameworks and platforms | Yes | Available SIMD APIs and architectures that must behave consistently |\n| Build and test workflow | Yes | The repository's normal commands and how to launch separate test processes |\n| Representative workload or benchmark | For optimization | Typical input sizes and the baseline to beat |\n\nDo not add a package merely because an API exists there. First check the target framework and the\nproject's existing dependency\u002Fversioning policy.\n\n## Core rules\n\n1. **Use the highest-level API that matches the contract, then stop.** `Span\u003CT>` and `string`\n   operations, `TensorPrimitives`, and tensor types already accelerate many operations. LINQ\n   reductions such as `Sum`, `Min`, `Max`, and `Average` can also accelerate when the source exposes\n   its underlying span. Verify empty-input and floating-point behavior rather than assuming similarly\n   named operations are interchangeable. Once an existing API preserves the contract, use it instead\n   of continuing into handwritten SIMD. Before writing an explicit loop, name the framework APIs\n   considered and why none applies. Fixed-shape `System.Numerics` types remain appropriate for\n   graphics and similar domains.\n2. **Start new explicit SIMD loops with `Vector128\u003CT>`.** It is accelerated across the broadest\n   hardware set. Add wider fixed-width paths only when measurements justify them.\n3. **Keep platforms consistent.** Prefer cross-platform operations on the fixed-width vector types;\n   they lower to the appropriate target instructions. For example,\n   `(vector & mask) == Vector128\u003Cbyte>.Zero` becomes `ptest` on x86\u002Fx64. Use\n   architecture-specific intrinsics only for a measured gap, guard them with `IsSupported`, and\n   retain equivalent portable or scalar behavior.\n4. **Read `IsHardwareAccelerated`, `IsSupported`, and `Count` directly.** The JIT treats them as\n   constants, so caching them adds no value and obscures which branches disappear.\n5. **Prefer operators where they are clear.** Parenthesize expressions that mix bitwise and\n   comparison operators so precedence is explicit.\n\nIf the task is review-only, do not rewrite the code. Report correctness and memory-safety defects\nbefore performance opportunities.\n\n## Authoring checklist\n\n- **Contract:** identify behavior for empty and short inputs, overlap, overflow, NaN, signed zero,\n  ordering, and exceptions before changing the implementation.\n- **Framework gate:** inspect the target framework and existing package references, then compile or\n  probe the highest-level candidate API with the required edge cases. A small contract adapter, such\n  as preserving special empty-input behavior, does not justify reimplementing the operation. If the\n  API preserves the contract, use it and stop; do not claim it is unavailable without checking.\n- **Structure:** for new explicit SIMD, implement `Vector128\u003CT>` and scalar first. Only after\n  measurements justify wider paths, check `Vector512\u003CT>`, then `Vector256\u003CT>`, optional `Vector\u003CT>`,\n  `Vector128\u003CT>`, and finally scalar. Omit paths the implementation does not need. Each outer\n  fixed-width guard checks only its `IsHardwareAccelerated` property and, for generic element types,\n  `IsSupported`. Inside that block, run the width-specific helper when the input has at least\n  `Count` elements; otherwise run a dedicated small-input helper, then return. Do not put the length\n  check in the outer guard and fall through to repeat dispatch at narrower widths. Keeping each\n  supported-width block self-contained lets the JIT remove unsupported blocks and avoids redundant\n  work on common small inputs.\n- **Loads and stores:** prefer span-based `Vector128.Create(span)` and `CopyTo`; the JIT keeps them\n  efficient and they require no pinning or reference arithmetic. Unsafe loads and stores are largely\n  unnecessary. When a path genuinely must walk a buffer by managed reference, use the element-offset\n  `LoadUnsafe(ref T, nuint)` and `StoreUnsafe` overloads rather than pointers or manually advanced\n  references.\n- **Empty inputs:** in a reference-based path, obtain the starting reference with\n  `MemoryMarshal.GetReference(span)` or `MemoryMarshal.GetArrayDataReference(array)`, not by indexing\n  element `0`.\n- **Unsupported element types:** the fixed-width vectors support primitive numeric element types,\n  not `char` or `bool`. Reinterpret with `MemoryMarshal.Cast` or `As\u003CTFrom, TTo>`; reinterpretation\n  changes only the type, not the bits. Keep Boolean data as `0` or `1` and characters as valid\n  UTF-16, normalizing results before storing when necessary.\n- **Offsets:** prove the input contains a full vector before subtracting `Count` or converting an\n  index to `nuint`; otherwise a negative value becomes a huge unsigned offset.\n- **Managed references:** do not form references before the start or past the end of a span,\n  including a one-past-end reference. The runtime permits a non-dereferenced managed pointer exactly\n  one past an object or array, but this guidance intentionally prohibits the pattern because it is\n  fragile and easy to misuse. Keep the base reference in range and express traversal with an element\n  offset.\n- **Remainders:** cover every length, including `0`, `Count - 1`, `Count`, `Count + 1`, and\n  nonmultiples of each width. Once the input contains a full vector, keep the tail vectorized by\n  reprocessing the last full vector. An idempotent operation can fold that overlap in directly. A\n  non-idempotent operation must use `ConditionalSelect` to replace repeated lanes with the\n  operation's identity before folding them in. This is the JIT-recognized general pattern; it can\n  reduce a zero-identity selection to a bitwise mask while retaining broader optimization\n  opportunities. For in-place transforms, preserve the original tail values before overlapping\n  stores and write only valid results.\n- **Buffer overlap:** choose a traversal direction or staging strategy that prevents stores from\n  corrupting values not yet loaded.\n- **Numeric behavior:** account for floating-point reassociation, NaN and signed-zero semantics,\n  checked or unchecked integer overflow, and endianness where the algorithm depends on byte order.\n  `Native` and `Estimate` operations can intentionally relax precision or IEEE edge-case behavior;\n  use them only when the contract permits it and measurements justify them.\n\nThe official guidance contains the complete dispatch, small-input, unrolling, and remainder\ntemplates; use those for the full implementation. The following excerpt illustrates only the inner\nsafe `Vector128\u003CT>` loop for an in-place elementwise transform, after its self-contained dispatch\nblock has established at least one full vector. `Transform` represents the operation being\nimplemented:\n\n```csharp\nSpan\u003Cint> tail = data.Slice(data.Length - Vector128\u003Cint>.Count);\nVector128\u003Cint> end = Vector128.Create\u003Cint>(tail);\nSpan\u003Cint> remaining = data;\n\nwhile (remaining.Length >= Vector128\u003Cint>.Count)\n{\n    Vector128\u003Cint> values = Vector128.Create\u003Cint>(remaining);\n    Transform(values).CopyTo(remaining);\n    remaining = remaining.Slice(Vector128\u003Cint>.Count);\n}\n\nif (!remaining.IsEmpty)\n{\n    Transform(end).CopyTo(tail);\n}\n```\n\nThe early `end` load preserves original values before overlapping stores. For a read-only reduction,\nload the same final span after the main loop and use `ConditionalSelect` to replace already-processed\nlanes with the operation's identity. Do not substitute `LoadUnsafe`\u002F`StoreUnsafe` or a scalar\nepilogue merely to avoid span bounds checks.\n\n## Testing checklist\n\n- Compare the optimized implementation with the scalar contract across boundary lengths,\n  randomized values, empty inputs, supported overlap, and numeric edge cases. Cover every\n  implemented width and the scalar path with inputs both large enough and too small to benefit.\n- Exercise every implemented width and the scalar fallback in separate processes. On x86\u002Fx64\n  CoreCLR, `DOTNET_EnableAVX2=0` disables AVX2 and `DOTNET_EnableHWIntrinsic=0` disables hardware\n  intrinsics. Use the repository's normal test command and do not change these process-wide\n  settings inside a unit test. These settings do not change code already compiled as ReadyToRun or\n  ahead of time, so confirm the target code is JIT-compiled when using them to force a path.\n- For unsafe loads and stores, use guard-page or equivalent boundary tests when available. Put the\n  inaccessible page after the buffer for forward iteration and before it for backwards iteration,\n  and include nonmultiple lengths. An ordinary array allocation does not reliably expose an\n  out-of-bounds read.\n\n## Benchmarking\n\nUse BenchmarkDotNet to measure representative small and large inputs before keeping the added\ncomplexity. Compare scalar, `Vector128\u003CT>`, and each wider implemented path in the same run. Small\ninputs can be slower because setup dominates, and speedups are rarely the theoretical vector-width\nmultiple because memory throughput, alignment, and latency still apply. Report throughput or time\nwith noise context and, when relevant, generated code size or instruction counts. Control allocation\nalignment for stable measurements or randomize it to observe the distribution. A wider vector is\nnot automatically faster.\n\nIf the project cannot target the required framework, run the relevant architecture, or execute the\nfallback configuration, state exactly which path remains unverified. Do not claim success from a\ndefault-hardware test alone.\n\n## Completion contract\n\n- **Authoring:** leave the scalar contract covered by tests; identify the framework or SIMD layer\n  selected; report measurements for the representative workload; name any architecture or fallback\n  path that could not be exercised.\n- **Review:** report only concrete findings, ordered by correctness, memory safety, portability,\n  tests, then performance evidence. If none remain, say so directly.\n- Do not call an optimization complete when it only builds, only passes on the current machine, or\n  has no comparison against the scalar baseline.\n\n## Review checklist\n\nReview in this order:\n\n1. Scalar-contract equivalence, including signed zero, NaN, overflow, and relevant endianness\n2. Reuse of an existing accelerated framework API\n3. Tail correctness for idempotent versus non-idempotent work\n4. Memory safety, unsigned offset arithmetic, empty inputs, and overlapping buffers\n5. Portable dispatch and behaviorally equivalent fallbacks\n6. Tests that force each width and the scalar path\n7. Benchmarks that justify explicit SIMD and additional widths\n",{"name":5,"license":15,"description":53},"Design, implement, optimize, and review SIMD code in .NET. USE FOR: vectorizing scalar loops with TensorPrimitives, Vector64\u002F128\u002F256\u002F512, or platform hardware intrinsics; reviewing existing SIMD code, including the generic Vector type, for contract equivalence, tail handling, memory safety, portability, fallbacks, and measured performance. DO NOT USE FOR: performance work unrelated to SIMD or vectorization.\n","main","497cc9aba79a931ac6fb8d36a48cc22fe3d6d74b","catalog\u002FPlatform\u002FOfficial-DotNet-Advanced\u002Fskills\u002Fvectorization",41,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills","https:\u002F\u002Fskills.managed-code.com","https:\u002F\u002Fgithub.com\u002Fmanagedcode","https:\u002F\u002Fwww.managed-code.com","Open Source Community for .NET Developers: Reliable, Actively Maintained, and Community-Driven. Made in Ukraine 🇺🇦 with ❤️","2026-11-14 19:05:44",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add managedcode\u002Fdotnet-skills --skill vectorization",{"tool":70,"command":71},"bunx","bunx skills add managedcode\u002Fdotnet-skills --skill vectorization",{"tool":73,"command":74},"pnpm","pnpm dlx skills add managedcode\u002Fdotnet-skills --skill vectorization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FPlatform\u002FOfficial-DotNet-Advanced\u002Fskills\u002Fvectorization\u002FSKILL.md",true,[78],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"manifest.json","REFERENCE","参考文档",112,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FPlatform\u002FOfficial-DotNet-Advanced\u002Fskills\u002Fvectorization\u002Fmanifest.json",[85,118,141,170,180,205],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":99,"publishedAt":48},"01M6DYQE1Y9FHAQHEDTVFQ3447","xtwitter-scraper","Use XTwitterScraper when a .NET application needs typed access to Xquik's X automation REST API for tweet search, user lookup, posting workflows, extraction jobs, monitors, webhooks, or giveaway draws. USE FOR: integrating the XTwitterScraper NuGet package; reviewing Xquik API client usage; modeling API-key configuration, pagination, binary exports, raw responses, retries, and webhook\u002Fevent flows in .NET. DO NOT USE FOR: unrelated stacks; direct browser automation; generic social-media strategy; or code that does not call Xquik. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FXTwitterScraper\u002Fskills\u002Fxtwitter-scraper\u002FSKILL.md",[91,96],{"categoryNo":92,"categoryName":93,"taxonomyType":94,"taxonomyTypeDesc":95},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":97,"categoryName":98,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师",[100,101,102,103,42,104,105,106,107,108,109,110,111,36,112,113,114,115,116,117],"xtwitter scraper","browser automation","workflows","run","browser","search","repository","api","Media","api client","access","edit","webhooks","files","social","commands","modeling","webhook",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":130,"publishedAt":48},"01M6DYQ9S4PE1H6G8MCH9T21HR","sep","Use Sep for high-performance separated-value parsing and writing in .NET, including delimiter inference, explicit parser\u002Fwriter options, and low-allocation row\u002Fcolumn workflows. USE FOR: delimited data needs are performance-sensitive and allocation-aware; project needs explicit control over separator inference, escaping, trimming, and header behavior;. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FSep\u002Fskills\u002Fsep\u002FSKILL.md",[124,127],{"categoryNo":125,"categoryName":126,"taxonomyType":94,"taxonomyTypeDesc":95},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":128,"categoryName":129,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000036","内容创作者",[120,131,44,102,132,103,106,133,134,135,111,136,36,113,34,137,138,139,115,140],"writing","tasks","data","parsing","parser","context","writer","options","project","high-performance",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":48},"01M6DZS2DNEPXCGGF6SSCW6G5V","webgpu-threejs-tsl","Comprehensive guide for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language). Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing effects, and WGSL integration. Use this skill when working with Three.js WebGPU, TSL shaders, node materials, or GPU compute in Three.js.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fwebgpu-claude-skill\u002Fskills\u002Fwebgpu-threejs-tsl\u002FSKILL.md",[],[148,149,150,151,152,153,154,155,156,157,158,159,24,160,161,162,163,164,29,165,27,166,167,168,169],"webgpu","threejs","webgpu threejs tsl","setup","shaders","gpu","integration","applications","js","node","syntax","guide","language","three","compute","post","processing","renderer","materials","wgsl","effects","when",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":48},"01M6DZS0BQXW2B56A289XF1X76","roslynk","Use Roslynk for semantic inspection and edits of *.cs, *.razor and *.cshtml solution files.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Froslynk\u002Fskills\u002Froslynk\u002FSKILL.md",[],[172,24,113,177,178,27,179],"semantic","razor","inspection",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":48},"01M6DZRW6MEJCVW80K3S4XV60K","system-text-json-net11","Imperative guidance for the System.Text.Json APIs added in .NET 11: the built-in `JsonNamingPolicy.PascalCase` naming policy, and the strongly-typed generic `JsonSerializerOptions.GetTypeInfo` and `JsonSerializerOptions.TryGetTypeInfo` metadata accessors (generic overloads that return a typed `JsonTypeInfo`). USE ONLY when the user is targeting net11.0 or later and needs PascalCase JSON property or dictionary-key names without writing a custom naming policy, a strongly-typed generic `JsonTypeInfo` instead of the non-generic `JsonTypeInfo`, or a no-throw way to probe whether a type's serialization metadata is resolved. DO NOT USE when the target is earlier than net11.0, the requested behavior uses an established pre-net11 naming policy, or the user explicitly selected another JSON library.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fsystem-text-json-net11\u002FSKILL.md",[],[187,188,189,190,131,191,192,193,194,195,196,24,197,198,199,200,34,30,201,202,203,27,204,25,169],"system","json","text","system text json net11","policy","metadata","library","serialization","behavior","user","only","probe","guidance","later","dictionary","naming","targeting","custom",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":213,"publishedAt":48},"01M6DZRRJP3S662NFSG1RSPQQ7","process-api-net11","Provides guidance on the new System.Diagnostics.Process APIs introduced in .NET 11: Process.Run, Process.RunAndCaptureText, Process.StartAndForget, Process.ReadAllText\u002FBytes\u002FLines, KillOnParentExit, InheritedHandles, and StartDetached. USE FOR: starting, orchestrating, or capturing output from external processes in applications targeting net11.0 or later. DO NOT USE FOR: applications targeting .NET 10 or earlier, or basic pre-.NET 11 Process.Start usage without new APIs.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fprocess-api-net11\u002FSKILL.md",[211,212],{"categoryNo":92,"categoryName":93,"taxonomyType":94,"taxonomyTypeDesc":95},{"categoryNo":97,"categoryName":98,"taxonomyType":21,"taxonomyTypeDesc":22},[107,214,215,216,103,217,155,187,24,199,200,34,218,219,220,221,203,27,222],"process","process api net11","diagnostics","start","basic","processes","output","usage","new"]