[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CVPR0QFZ1HMJ6GZRBQAQ7W":3,"skill-same:01M7CVPR0QFZ1HMJ6GZRBQAQ7W":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CVPR0QFZ1HMJ6GZRBQAQ7W","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.","deadmade\u002Fdead-agent-skills","deadmade","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130925709?v=4","01M7CTQ65AGYR4J9K9TX0YR9V3","01M7CTQ66B4VMJFEDZP4EKKE6K",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fvectorization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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":14,"description":23},"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","ccab8dffc0ecc173838f51e4c5f0d3b51a704f41","plugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fvectorization","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills","https:\u002F\u002Fgithub.com\u002Fdeadmade","https:\u002F\u002Fdeadmade.github.io\u002F","Blood, an Ocean of blood","2026-11-14 02:03:31",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add deadmade\u002Fdead-agent-skills --skill vectorization",{"tool":38,"command":39},"bunx","bunx skills add deadmade\u002Fdead-agent-skills --skill vectorization",{"tool":41,"command":42},"pnpm","pnpm dlx skills add deadmade\u002Fdead-agent-skills --skill vectorization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fvectorization\u002FSKILL.md",true,[],[47,54,63,71,78,85],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M7CVRBFTXSTTQ7F5P6PJEFYA","rust-best-practices","Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Frust-skills\u002Fskills\u002Frust-best-practices\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":58,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M7CVR0W7B8EGTNPSPA7FPC4Z","postgres-database-migration","Use this skill for planning, testing, and safely executing PostgreSQL schema migrations — especially when working with production data or shared databases.\n\n**Trigger when user asks to:**\n- Test a schema migration before applying it to production\n- Add, remove, or rename columns safely on a live table\n- Change a column's data type without downtime\n- Add or drop indexes, constraints, or foreign keys on large tables\n- Understand which ALTER TABLE operations lock the table\n- Roll back a failed migration\n- Plan a zero-downtime migration strategy\n- Fork a database to test a migration safely\n\nCovers: lock-level reference for every common DDL operation, safe migration patterns, fork-based testing, zero-downtime column changes, index creation, constraint addition, backfill strategies, pre\u002Fpost-migration validation, and rollback planning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-database-migration\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-database-migration\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":58,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7CVQWK20ASAZN5VETZC8J99","postgres-best-practices","Best practices and guidelines for working with Postgres. Covers schema design, indexing strategies, query optimization, migrations, and common pitfalls. Use when writing SQL, designing database schemas, optimizing queries, or setting up a Postgres database.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-best-practices\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-best-practices\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7CVQ5CY7AQHY7A2Y99RE6A7","writing-mstest-tests","ALWAYS USE when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7CVPWJZ63GB0810F0SCGZ1K","winforms-expert","Create, modify, debug, or review Windows Forms applications only when the request contains a concrete Windows Forms marker. USE FOR: WinForms, Windows Forms, System.Windows.Forms, WinForms Form or UserControl designer files (*.Designer.cs or *.Designer.vb), Visual Studio WinForms Designer, TableLayoutPanel, BindingSource, DataGridView, Control.InvokeAsync, component-tray ownership, or custom control serialization. DO NOT USE FOR: WPF or WPF XAML, including Window.InputBindings, KeyBinding, commands, or DataContext; .NET MAUI; Avalonia; or any request where none of the listed Windows Forms markers is present.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fwinforms-expert\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7CVPJ1FDTCANDZEVMV2TVJW","use-js-interop","Add, review, or fix JavaScript interop in Blazor components. USE FOR: calling JavaScript from Blazor, calling .NET from JavaScript, collocated .razor.js modules, IJSRuntime, IJSObjectReference lifecycle, DotNetObjectReference, ElementReference, timing rules for when JS is available, IAsyncDisposable disposal of JS references, server-side JS interop safety. DO NOT USE FOR: general Blazor component authoring without JS interop needs (use author-component), forms (use collect-user-input).","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fuse-js-interop\u002FSKILL.md",[],[]]