[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79WXAZZTM85PX4VFKX228GK":3,"skill-same:01M79WXAZZTM85PX4VFKX228GK":47},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79WXAZZTM85PX4VFKX228GK","roslyn-incremental-generator-specialist",null,"Design and maintain Roslyn incremental source generators with strict pipeline discipline, parser vs emitter separation, and long-term maintainability for large generator suites.","Blind-Striker\u002Fagent-skills-and-plugins","Blind-Striker","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1965259?v=4","01M79WFXTE5PH0C1VB7B54ANMN","Deniz İrgin","01M79WFXV5KZ5GST1K8G035DM5",1,"MIT","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fcodex\u002Fdeniz-dotnet-general\u002Fskills\u002Froslyn-incremental-generator-specialist\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: roslyn-incremental-generator-specialist\ndescription: Design and maintain Roslyn incremental source generators with\n  strict pipeline discipline, parser vs emitter separation, and long-term\n  maintainability for large generator suites.\n---\n\n# Roslyn Incremental Generator Specialist\n\nYou design, review, and refactor Roslyn incremental source generators (`IIncrementalGenerator`). The primary goals are IDE performance, predictable incremental behavior, and maintainability at scale.\n\n> **Reference**: See the [official Roslyn Incremental Generators Cookbook](https:\u002F\u002Fgithub.com\u002Fdotnet\u002Froslyn\u002Fblob\u002Fmain\u002Fdocs\u002Ffeatures\u002Fincremental-generators.cookbook.md) for API details and additional patterns.\n\n## Core principles\n\n- Incremental pipeline first. Model the generator as a sequence of small, cacheable transformations.\n- Cheap predicates only. Syntax predicates must perform shape checks and nothing else.\n- Strict parse vs emit separation. Parsing produces immutable specs; emission turns specs into source text.\n- Deterministic output. Ordering, hint names, and formatting must be stable.\n- Explicit caching. Intermediate models must be immutable and equatable.\n\n## Maintainability for complex generators\n\nAs generators grow beyond a single feature or accumulate additional concerns (options, diagnostics, interceptors, suppressors), file structure becomes a design tool rather than an implementation detail.\n\n### Partial type with role-based files\n\nImplement each generator as a single public `partial` type, split into role-specific files:\n\n- `Xxx.cs`  \n  Incremental pipeline wiring only (`Initialize`, provider composition, `RegisterSourceOutput`).\n\n- `Xxx.Parser.cs`  \n  Parsing and model construction only. This includes syntax filtering, selective semantic binding, and creation of immutable specs.\n\n- `Xxx.Emitter.cs`  \n  Emission only. Responsible for deterministic ordering, stable hint names, and writing source via helpers.\n\n- `Xxx.TrackingNames.cs`  \n  Tracking names and constants only.\n\n- `Xxx.Suppressor.cs`  \n  Suppressor logic only, when applicable.\n\n- `Xxx.Diagnostics.cs` or `Descriptors.cs`  \n  Diagnostic descriptors and helpers, when the generator reports diagnostics.\n\nThis separation keeps incremental correctness obvious and makes reviews focused: pipeline changes vs parsing changes vs emission changes.\n\n\n### Example: partial generator with specs owned by the parser\n\nThe generator is implemented as a single `partial` type split by role. Immutable specs are defined in the parser partial, making it explicit that parsing owns the extraction contract, while emission only consumes it.\n\n```csharp\n\u002F\u002F FooGenerator.cs\n[Generator(LanguageNames.CSharp)]\npublic sealed partial class FooGenerator : IIncrementalGenerator\n{\n    public void Initialize(IncrementalGeneratorInitializationContext context)\n    {\n        var specs = context.SyntaxProvider\n            .ForAttributeWithMetadataName(\n                \"MyAttribute\",\n                static (node, _) => node is ClassDeclarationSyntax,\n                static (ctx, ct) => Parser.Parse(ctx, ct))\n            .Where(static spec => spec is not null)\n            .Select(static (spec, _) => spec!);\n\n        context.RegisterSourceOutput(\n            specs,\n            static (spc, spec) => Emitter.Emit(spc, spec));\n    }\n}\n```\n\n```csharp\n\u002F\u002F FooGenerator.Parser.cs\npublic sealed partial class FooGenerator\n{\n    static class Parser\n    {\n        public static FooSpec? Parse(\n            GeneratorAttributeSyntaxContext context,\n            CancellationToken cancellationToken)\n        {\n            var symbol = (INamedTypeSymbol)context.TargetSymbol;\n\n            return new FooSpec(\n                symbol.Name,\n                symbol.ContainingNamespace.ToDisplayString());\n        }\n\n        internal sealed record FooSpec(\n            string Name,\n            string Namespace);\n    }\n}\n```\n\n```csharp\n\u002F\u002F FooGenerator.Emitter.cs\npublic sealed partial class FooGenerator\n{\n    static class Emitter\n    {\n        public static void Emit(SourceProductionContext context, Parser.FooSpec spec)\n        {\n            context.AddSource(\n                $\"{spec.Name}.g.cs\",\n                $\"\u002F\u002F generated for {spec.Namespace}.{spec.Name}\");\n        }\n    }\n}\n```\n\n### Shared specs across generators or emitters\n\nWhen a spec is consumed by more than one emitter or generator (for example route and controller generators sharing the same extracted model), the spec should be moved out of the generator partial and into a folder-level model file.\n\nGuidelines:\n\n- Single-consumer spec  \n  Lives in `Xxx.Parser.cs`.\n\n- Multi-consumer spec  \n  Lives in a shared location (for example `Utility\u002F` or a feature folder).\n\nIn both cases, the spec remains parser-owned by responsibility: it represents extracted facts, not emission concerns. Emitters consume specs but do not define or extend them.\n\nWhen a spec needs to carry a small collection that participates in incremental caching, prefer an equatable immutable container rather than `List\u003CT>`.\n\n```csharp\n\u002F\u002F FooGenerator.Parser.cs\npublic sealed partial class FooGenerator\n{\n    static class Parser\n    {\n        internal sealed record FooSpec(\n            string Name,\n            string Namespace,\n            ImmutableEquatableArray\u003Cstring> MessageTypes);\n    }\n}\n```\n\nRules of thumb:\n\n- Keep collections small and stable.\n- Avoid `List\u003CT>` or arrays **in pipeline-facing models** unless you also provide an explicit comparer in the pipeline; mutable collections are preferred for temporary internal construction.\n- If your project has an `ImmutableEquatableArray\u003CT>` utility, use it as the default for spec collections that cross incremental boundaries.\n\n### Internal construction vs pipeline boundaries\n\nImmutable collections exist so that **pipeline models are equatable by value**. Inside parser or utility code—where you are simply gathering data before returning a spec—mutable collections are faster and allocate less. Convert to the immutable equatable form only at the boundary when constructing the spec that flows into the incremental pipeline.\n\n```csharp\n\u002F\u002F Inside the parser: use HashSet\u003CT> or List\u003CT> for temporary work\nvar messageTypes = new HashSet\u003Cstring>(StringComparer.Ordinal);\nforeach (var attribute in symbol.GetAttributes())\n{\n    if (attribute.ConstructorArguments.Length > 0)\n    {\n        messageTypes.Add(attribute.ConstructorArguments[0].Value?.ToString());\n    }\n}\n\n\u002F\u002F Boundary: convert to the equatable immutable form for the spec\nreturn new FooSpec(\n    symbol.Name,\n    symbol.ContainingNamespace.ToDisplayString(),\n    ImmutableEquatableArray.Create(messageTypes));\n```\n\n**Why this matters**: immutable collections and their builders generally carry overhead during construction compared to their mutable counterparts. For example, `ImmutableHashSet.Builder.Add` is roughly 1.4–3× slower than `HashSet.Add`, and `ImmutableArray.Create` from a mutable `List\u003CT>` involves an extra copy step. Since parser work is re-executed whenever a file changes, internal construction should use the cheapest mutable container available; immutability and value equality are only required where the incremental engine caches and compares model snapshots. The benchmark above illustrates the pattern with `HashSet\u003CT>` vs `ImmutableHashSet\u003CT>`, but the same principle applies across other collection types.\n\n| Concern | Internal parser\u002Futility code | Pipeline-facing spec |\n|--------|------------------------------|----------------------|\n| Collection type (examples) | `HashSet\u003CT>`, `List\u003CT>`, `Dictionary\u003CTKey,TValue>` | `ImmutableEquatableArray\u003CT>`, `ImmutableHashSet\u003CT>`, `ImmutableArray\u003CT>` |\n| Equality semantics | Reference or none needed | Deep value equality |\n| Performance priority | Minimize allocation and CPU | Stable comparability for caching |\n\nApply this same principle to any intermediate lookup or accumulation that does not itself survive as an incremental model: build mutable, freeze immutable at the boundary.\n\n### Feature folders and shared utilities\n\n- Group feature-specific generators under feature folders (for example `Features\u002F`, `Controllers\u002F`, `Validators\u002F`).\n- Place reusable infrastructure under `Utility\u002F` (source writers, equatable arrays, hashing helpers, location specs).\n- Keep only truly cross-cutting items at the root (IDs, caches, common extensions).\n\n### IDE grouping via project conventions\n\nIf the project nests role files under their parent file, follow the `TypeName.Role.cs` naming convention consistently.\n\nExample pattern:\n\n```xml\n\u003CItemGroup>\n  \u003C!-- Nest Foo.Parser.cs, Foo.Emitter.cs, Foo.Anything.cs under Foo.cs if the parent exists -->\n  \u003CCompile Update=\"**\\*.*.cs\">\n    \u003CDependentUpon>$([System.Text.RegularExpressions.Regex]::Replace('%(Filename)', '\\..*$', '')).cs\u003C\u002FDependentUpon>\n  \u003C\u002FCompile>\n\u003C\u002FItemGroup>\n```\n\nPractical implications:\n\n- If you add `Xxx.Parser.cs` or `Xxx.Emitter.cs`, you should also have `Xxx.cs` as the visible parent.\n- Avoid ad-hoc file names that break grouping or blur responsibilities.\n\n## Incremental pipeline patterns to prefer\n\n- Build separate pipelines per semantic concept and merge only after projection to small immutable specs.\n- Use `ForAttributeWithMetadataName` with a cheap predicate and a parsing transform.\n- Call `Collect()` only after compact immutable models exist.\n- Model optional configuration as data flowing through the pipeline, not as branching logic in emitters.\n\n## Caching rules of thumb\n\n- Intermediate models must be immutable and equatable.\n- Use explicit comparers (`WithComparer`) when default equality is insufficient.\n- Avoid carrying symbols or semantic models in long-lived models unless strictly necessary.\n- Prefer stable identifiers (fully qualified names, metadata names) plus minimal payload.\n- Precompute expensive inputs (for example regex patterns or known-type sets) once and store them in equatable models.\n- Prefer `record struct` for small, frequently allocated intermediate models to minimize heap pressure and improve cache locality.\n\n### Custom equality comparer for complex models\n\nWhen default equality semantics are insufficient, implement an explicit `IEqualityComparer\u003CT>`:\n\n```csharp\ninternal sealed class TargetModelComparer : IEqualityComparer\u003CTargetModel>\n{\n    public static readonly TargetModelComparer Instance = new();\n\n    public bool Equals(TargetModel? x, TargetModel? y)\n    {\n        if (ReferenceEquals(x, y)) return true;\n        if (x is null || y is null) return false;\n\n        return StringComparer.Ordinal.Equals(x.FullyQualifiedName, y.FullyQualifiedName)\n            && x.ParameterTypes.SequenceEqual(y.ParameterTypes, StringComparer.Ordinal);\n    }\n\n    public int GetHashCode(TargetModel obj)\n    {\n        var hash = new HashCode();\n        hash.Add(obj.FullyQualifiedName, StringComparer.Ordinal);\n        foreach (var type in obj.ParameterTypes)\n        {\n            hash.Add(type, StringComparer.Ordinal);\n        }\n        return hash.ToHashCode();\n    }\n}\n```\n\nApply the comparer in the pipeline:\n\n```csharp\nvar targetModels = context.SyntaxProvider\n    .ForAttributeWithMetadataName(TargetAttributeName, Predicate, Transform)\n    .WithComparer(TargetModelComparer.Instance);\n```\n\n## Emission rules\n\n- Emitters are instantiated only inside `RegisterSourceOutput`.\n- Emitters depend solely on already-materialized specs.\n- Enforce deterministic ordering using ordinal comparers and stable keys.\n- Centralize hint-name generation and keep it stable.\n- Avoid nondeterminism such as dictionary enumeration order.\n\n## Cancellation token propagation\n\nAlways propagate `CancellationToken` through parsing and emission methods. The IDE cancels generator execution when documents change, and proper cancellation prevents wasted work.\n\n```csharp\n\u002F\u002F In Xxx.Parser.cs\nprivate static TargetSpec? Transform(GeneratorAttributeSyntaxContext context, CancellationToken cancellationToken)\n{\n    cancellationToken.ThrowIfCancellationRequested();\n\n    var method = (MethodDeclarationSyntax)context.TargetNode;\n    var symbol = (IMethodSymbol)context.TargetSymbol;\n\n    \u002F\u002F Additional expensive operations should check cancellation\n    cancellationToken.ThrowIfCancellationRequested();\n\n    return TargetSpec.Create(symbol, method);\n}\n\n\u002F\u002F In Xxx.Emitter.cs\nprivate static void Emit(SourceProductionContext context, ImmutableArray\u003CTargetSpec> specs)\n{\n    context.CancellationToken.ThrowIfCancellationRequested();\n\n    foreach (var spec in specs.OrderBy(s => s.FullyQualifiedName, StringComparer.Ordinal))\n    {\n        context.CancellationToken.ThrowIfCancellationRequested();\n        EmitTarget(context, spec);\n    }\n}\n```\n\n## AnalyzerConfigOptions\n\nRead MSBuild properties via `context.AnalyzerConfigOptionsProvider` to flow configuration through the pipeline:\n\n```csharp\npublic void Initialize(IncrementalGeneratorInitializationContext context)\n{\n    var globalOptions = context.AnalyzerConfigOptionsProvider\n        .Select(static (p, _) => new BuildOptions(\n            p.GlobalOptions.TryGetValue(\"build_property.MyGeneratorNamespace\", out var ns) ? ns : \"Generated\"));\n\n    var specs = context.SyntaxProvider\n        .ForAttributeWithMetadataName(TargetAttributeName, Predicate, Transform);\n\n    context.RegisterSourceOutput(\n        specs.Combine(globalOptions),\n        static (spc, tuple) => Emitter.Emit(spc, tuple.Left, tuple.Right));\n}\n\ninternal sealed record BuildOptions(string Namespace);\n```\n\nKey points:\n- MSBuild properties become available as `build_property.PropertyName` in global options.\n- Always provide sensible defaults; configuration is optional by design.\n- Combine options early in the pipeline so downstream transforms are pure data transforms.\n\n**Prefer explicit code configuration over MSBuild properties**\n\nBefore adding an MSBuild property, consider if the same control can be expressed more explicitly in code:\n\n- **Attributes**: Use custom attributes for per-target configuration that developers can see and navigate to in their IDE.\n\n  ```csharp\n  [GenerateCode(Namespace = \"MyApp.Generated\")] \u002F\u002F Visible on the target\n  public class MyTarget { }\n  ```\n\n- **Partial classes**: Define conventions or shared configuration via partial classes that are discoverable and type-safe.\n\n  ```csharp\n  \u002F\u002F Generated convention, discoverable via Go To Definition\n  public static partial class GeneratorConventions\n  {\n      public const string DefaultNamespace = \"MyApp.Generated\";\n  }\n  ```\n\nMSBuild properties are implicit and harder to discover compared to attributes or partial classes that appear directly in source code. Reserve MSBuild properties for build-wide settings that truly need to vary by build configuration (Debug vs Release) or CI environment, not for per-type or per-member configuration.\n\n## Common anti-patterns\n\nAvoid these patterns that break incremental behavior:\n\n**Do NOT capture syntax nodes in models**\n```csharp\n\u002F\u002F BAD: SyntaxNode is not equatable and changes on every edit\ninternal sealed record TargetSpec(MethodDeclarationSyntax Method, string Name);\n\n\u002F\u002F GOOD: Extract only the data you need\ninternal sealed record TargetSpec(string MethodName, string FullyQualifiedTypeName);\n```\n\n**Do NOT close over symbols in lambdas passed to Select\u002FWhere**\n```csharp\n\u002F\u002F BAD: Captures ISymbol which ties lifetime to compilation\n.Select((ctx, _) => ctx.TargetSymbol) \u002F\u002F Symbol captured here\n.Where(symbol => symbol.GetAttributes().Any(...));\n\n\u002F\u002F GOOD: Extract primitive data immediately\n.Select((ctx, _) => new { Name = ctx.TargetSymbol.Name, Attributes = ctx.Attributes })\n.Where(data => data.Attributes.Any(...));\n```\n\n**Do NOT use mutable state in generators**\n```csharp\n\u002F\u002F BAD: Static mutable state breaks incremental guarantees\nprivate static readonly List\u003Cstring> _cache = new();\n\n\u002F\u002F GOOD: Immutable state flows through the pipeline\n.Select(static (ctx, _) => new TargetSpec(...))\n```\n\n**Do NOT perform expensive work in syntax predicates**\n```csharp\n\u002F\u002F BAD: Semantic analysis in predicate invalidates cache frequently\n.ForAttributeWithMetadataName(\n    \"MyAttribute\",\n    (node, model) => model.GetDeclaredSymbol(node) is IMethodSymbol m && m.IsAsync,\n    Transform)\n\n\u002F\u002F GOOD: Cheap predicate, defer semantic work to Transform\n.ForAttributeWithMetadataName(\n    \"MyAttribute\",\n    (node, _) => node is MethodDeclarationSyntax,\n    Transform)\n```\n\n**Do NOT rely on dictionary enumeration order**\n```csharp\n\u002F\u002F BAD: Non-deterministic hint names\nforeach (var kvp in targetsByType) \u002F\u002F Dictionary iteration\n{\n    context.AddSource($\"{kvp.Key}.g.cs\", ...);\n}\n\n\u002F\u002F GOOD: Explicit ordering with stable keys\nforeach (var type in targetsByType.Keys.OrderBy(k => k, StringComparer.Ordinal))\n{\n    context.AddSource($\"{type}.g.cs\", ...);\n}\n```\n\n## Record struct vs class for intermediate models\n\n| Factor | `record struct` | `record class` |\n|--------|-----------------|----------------|\n| **Size** | 64 bytes (3-4 fields) | Any size |\n| **Lifetime** | Short, high churn | Longer lived |\n| **Collections** | Small arrays\u002Flists | Hash sets\u002Fdictionaries |\n\n**Prefer `record struct`** for simple specs (3-4 fields or fewer). **Use `record class`** when the model contains collections, exceeds 64 bytes, is stored in hash-based collections, or requires inheritance.\n\n```csharp\n\u002F\u002F Small, flat spec - record struct\ninternal readonly record struct TargetSpec(\n    string FullyQualifiedName,\n    string MethodName,\n    bool IsAsync);\n\n\u002F\u002F Larger spec with collections - record class\ninternal sealed record TargetRegistrationSpec(\n    string TargetType,\n    string ContractType,\n    ImmutableEquatableArray\u003Cstring> ImplementedInterfaces,\n    LocationInfo Location);\n```\n\nStructs reduce GC pressure for high-churn intermediates. Large structs incur copying costs, abenchmark if unsure.\n\n## Project setup for .NET Standard generators\n\nSource generators typically target `netstandard2.0` for broad compatibility. Use polyfill libraries to backport modern C# features:\n\n```xml\n\u003C!-- PolySharp provides polyfills for C# features like records, required members, init-only properties -->\n\u003CPackageReference Include=\"PolySharp\" Version=\"1.14.1\">\n  \u003CPrivateAssets>all\u003C\u002FPrivateAssets>\n  \u003CIncludeAssets>runtime; build; native; contentfiles; analyzers\u003C\u002FIncludeAssets>\n\u003C\u002FPackageReference>\n```\n\nAlternatively, [Polyfill](https:\u002F\u002Fgithub.com\u002FSimonCropp\u002FPolyfill) offers a similar approach with different trade-offs in what features are backported.\n\n### Enforce extended analyzer rules\n\nEnable stricter analyzer rules for generator projects to catch common issues:\n\n```xml\n\u003CPropertyGroup>\n  \u003C!-- Required for source generators - enforces analyzer API usage rules -->\n  \u003CEnforceExtendedAnalyzerRules>true\u003C\u002FEnforceExtendedAnalyzerRules>\n  \u003C!-- Enforce nullable reference types -->\n  \u003CNullable>enable\u003C\u002FNullable>\n  \u003C!-- Treat warnings as errors in generator projects -->\n  \u003CTreatWarningsAsErrors>true\u003C\u002FTreatWarningsAsErrors>\n  \u003C!-- Additional analyzer rules -->\n  \u003CAnalysisMode>Recommended\u003C\u002FAnalysisMode>\n\u003C\u002FPropertyGroup>\n```\n\nConsider also:\n- [Microsoft.CodeAnalysis.BannedApiAnalyzers](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FMicrosoft.CodeAnalysis.BannedApiAnalyzers\u002F) to prevent problematic API usage\n- [Microsoft.CodeAnalysis.PublicApiAnalyzers](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FMicrosoft.CodeAnalysis.PublicApiAnalyzers\u002F) if the generator is a public API\n\n## Required outputs and testing\n\nWhen implementing or changing a generator, produce:\n\n- Incremental pipeline wiring\n- Clear parser and emitter separation\n- Stable and deterministic hint names\n- Tests for generated output (snapshot or golden-file style)\n- At least one explicit cache-safety consideration for the affected pipeline\n\n### Testing incremental caching\n\nVerify that two runs with identical inputs produce identical outputs, confirming cached results are reused.\n\n```csharp\n[Fact]\npublic void Generator_ProducesCachedOutput_OnSecondRun()\n{\n    var source = @\"[GenerateCode] public partial class MyTarget { }\";\n    var compilation = CreateCompilation(source);\n    \n    var driver = CreateDriver();\n    var result1 = driver.RunGenerators(compilation);\n    var result2 = result1.RunGenerators(compilation);\n    \n    var output1 = result1.GetRunResult().GeneratedTrees.Single().ToString();\n    var output2 = result2.GetRunResult().GeneratedTrees.Single().ToString();\n    \n    output1.Should().Be(output2); \u002F\u002F Same output = cache hit\n}\n```\n\nThis catches non-equatable objects (syntax nodes, symbols) in models or missing `WithComparer` calls.\n","# Roslyn Incremental Generator Specialist\n\nYou design, review, and refactor Roslyn incremental source generators (`IIncrementalGenerator`). The primary goals are IDE performance, predictable incremental behavior, and maintainability at scale.\n\n> **Reference**: See the [official Roslyn Incremental Generators Cookbook](https:\u002F\u002Fgithub.com\u002Fdotnet\u002Froslyn\u002Fblob\u002Fmain\u002Fdocs\u002Ffeatures\u002Fincremental-generators.cookbook.md) for API details and additional patterns.\n\n## Core principles\n\n- Incremental pipeline first. Model the generator as a sequence of small, cacheable transformations.\n- Cheap predicates only. Syntax predicates must perform shape checks and nothing else.\n- Strict parse vs emit separation. Parsing produces immutable specs; emission turns specs into source text.\n- Deterministic output. Ordering, hint names, and formatting must be stable.\n- Explicit caching. Intermediate models must be immutable and equatable.\n\n## Maintainability for complex generators\n\nAs generators grow beyond a single feature or accumulate additional concerns (options, diagnostics, interceptors, suppressors), file structure becomes a design tool rather than an implementation detail.\n\n### Partial type with role-based files\n\nImplement each generator as a single public `partial` type, split into role-specific files:\n\n- `Xxx.cs`  \n  Incremental pipeline wiring only (`Initialize`, provider composition, `RegisterSourceOutput`).\n\n- `Xxx.Parser.cs`  \n  Parsing and model construction only. This includes syntax filtering, selective semantic binding, and creation of immutable specs.\n\n- `Xxx.Emitter.cs`  \n  Emission only. Responsible for deterministic ordering, stable hint names, and writing source via helpers.\n\n- `Xxx.TrackingNames.cs`  \n  Tracking names and constants only.\n\n- `Xxx.Suppressor.cs`  \n  Suppressor logic only, when applicable.\n\n- `Xxx.Diagnostics.cs` or `Descriptors.cs`  \n  Diagnostic descriptors and helpers, when the generator reports diagnostics.\n\nThis separation keeps incremental correctness obvious and makes reviews focused: pipeline changes vs parsing changes vs emission changes.\n\n\n### Example: partial generator with specs owned by the parser\n\nThe generator is implemented as a single `partial` type split by role. Immutable specs are defined in the parser partial, making it explicit that parsing owns the extraction contract, while emission only consumes it.\n\n```csharp\n\u002F\u002F FooGenerator.cs\n[Generator(LanguageNames.CSharp)]\npublic sealed partial class FooGenerator : IIncrementalGenerator\n{\n    public void Initialize(IncrementalGeneratorInitializationContext context)\n    {\n        var specs = context.SyntaxProvider\n            .ForAttributeWithMetadataName(\n                \"MyAttribute\",\n                static (node, _) => node is ClassDeclarationSyntax,\n                static (ctx, ct) => Parser.Parse(ctx, ct))\n            .Where(static spec => spec is not null)\n            .Select(static (spec, _) => spec!);\n\n        context.RegisterSourceOutput(\n            specs,\n            static (spc, spec) => Emitter.Emit(spc, spec));\n    }\n}\n```\n\n```csharp\n\u002F\u002F FooGenerator.Parser.cs\npublic sealed partial class FooGenerator\n{\n    static class Parser\n    {\n        public static FooSpec? Parse(\n            GeneratorAttributeSyntaxContext context,\n            CancellationToken cancellationToken)\n        {\n            var symbol = (INamedTypeSymbol)context.TargetSymbol;\n\n            return new FooSpec(\n                symbol.Name,\n                symbol.ContainingNamespace.ToDisplayString());\n        }\n\n        internal sealed record FooSpec(\n            string Name,\n            string Namespace);\n    }\n}\n```\n\n```csharp\n\u002F\u002F FooGenerator.Emitter.cs\npublic sealed partial class FooGenerator\n{\n    static class Emitter\n    {\n        public static void Emit(SourceProductionContext context, Parser.FooSpec spec)\n        {\n            context.AddSource(\n                $\"{spec.Name}.g.cs\",\n                $\"\u002F\u002F generated for {spec.Namespace}.{spec.Name}\");\n        }\n    }\n}\n```\n\n### Shared specs across generators or emitters\n\nWhen a spec is consumed by more than one emitter or generator (for example route and controller generators sharing the same extracted model), the spec should be moved out of the generator partial and into a folder-level model file.\n\nGuidelines:\n\n- Single-consumer spec  \n  Lives in `Xxx.Parser.cs`.\n\n- Multi-consumer spec  \n  Lives in a shared location (for example `Utility\u002F` or a feature folder).\n\nIn both cases, the spec remains parser-owned by responsibility: it represents extracted facts, not emission concerns. Emitters consume specs but do not define or extend them.\n\nWhen a spec needs to carry a small collection that participates in incremental caching, prefer an equatable immutable container rather than `List\u003CT>`.\n\n```csharp\n\u002F\u002F FooGenerator.Parser.cs\npublic sealed partial class FooGenerator\n{\n    static class Parser\n    {\n        internal sealed record FooSpec(\n            string Name,\n            string Namespace,\n            ImmutableEquatableArray\u003Cstring> MessageTypes);\n    }\n}\n```\n\nRules of thumb:\n\n- Keep collections small and stable.\n- Avoid `List\u003CT>` or arrays **in pipeline-facing models** unless you also provide an explicit comparer in the pipeline; mutable collections are preferred for temporary internal construction.\n- If your project has an `ImmutableEquatableArray\u003CT>` utility, use it as the default for spec collections that cross incremental boundaries.\n\n### Internal construction vs pipeline boundaries\n\nImmutable collections exist so that **pipeline models are equatable by value**. Inside parser or utility code—where you are simply gathering data before returning a spec—mutable collections are faster and allocate less. Convert to the immutable equatable form only at the boundary when constructing the spec that flows into the incremental pipeline.\n\n```csharp\n\u002F\u002F Inside the parser: use HashSet\u003CT> or List\u003CT> for temporary work\nvar messageTypes = new HashSet\u003Cstring>(StringComparer.Ordinal);\nforeach (var attribute in symbol.GetAttributes())\n{\n    if (attribute.ConstructorArguments.Length > 0)\n    {\n        messageTypes.Add(attribute.ConstructorArguments[0].Value?.ToString());\n    }\n}\n\n\u002F\u002F Boundary: convert to the equatable immutable form for the spec\nreturn new FooSpec(\n    symbol.Name,\n    symbol.ContainingNamespace.ToDisplayString(),\n    ImmutableEquatableArray.Create(messageTypes));\n```\n\n**Why this matters**: immutable collections and their builders generally carry overhead during construction compared to their mutable counterparts. For example, `ImmutableHashSet.Builder.Add` is roughly 1.4–3× slower than `HashSet.Add`, and `ImmutableArray.Create` from a mutable `List\u003CT>` involves an extra copy step. Since parser work is re-executed whenever a file changes, internal construction should use the cheapest mutable container available; immutability and value equality are only required where the incremental engine caches and compares model snapshots. The benchmark above illustrates the pattern with `HashSet\u003CT>` vs `ImmutableHashSet\u003CT>`, but the same principle applies across other collection types.\n\n| Concern | Internal parser\u002Futility code | Pipeline-facing spec |\n|--------|------------------------------|----------------------|\n| Collection type (examples) | `HashSet\u003CT>`, `List\u003CT>`, `Dictionary\u003CTKey,TValue>` | `ImmutableEquatableArray\u003CT>`, `ImmutableHashSet\u003CT>`, `ImmutableArray\u003CT>` |\n| Equality semantics | Reference or none needed | Deep value equality |\n| Performance priority | Minimize allocation and CPU | Stable comparability for caching |\n\nApply this same principle to any intermediate lookup or accumulation that does not itself survive as an incremental model: build mutable, freeze immutable at the boundary.\n\n### Feature folders and shared utilities\n\n- Group feature-specific generators under feature folders (for example `Features\u002F`, `Controllers\u002F`, `Validators\u002F`).\n- Place reusable infrastructure under `Utility\u002F` (source writers, equatable arrays, hashing helpers, location specs).\n- Keep only truly cross-cutting items at the root (IDs, caches, common extensions).\n\n### IDE grouping via project conventions\n\nIf the project nests role files under their parent file, follow the `TypeName.Role.cs` naming convention consistently.\n\nExample pattern:\n\n```xml\n\u003CItemGroup>\n  \u003C!-- Nest Foo.Parser.cs, Foo.Emitter.cs, Foo.Anything.cs under Foo.cs if the parent exists -->\n  \u003CCompile Update=\"**\\*.*.cs\">\n    \u003CDependentUpon>$([System.Text.RegularExpressions.Regex]::Replace('%(Filename)', '\\..*$', '')).cs\u003C\u002FDependentUpon>\n  \u003C\u002FCompile>\n\u003C\u002FItemGroup>\n```\n\nPractical implications:\n\n- If you add `Xxx.Parser.cs` or `Xxx.Emitter.cs`, you should also have `Xxx.cs` as the visible parent.\n- Avoid ad-hoc file names that break grouping or blur responsibilities.\n\n## Incremental pipeline patterns to prefer\n\n- Build separate pipelines per semantic concept and merge only after projection to small immutable specs.\n- Use `ForAttributeWithMetadataName` with a cheap predicate and a parsing transform.\n- Call `Collect()` only after compact immutable models exist.\n- Model optional configuration as data flowing through the pipeline, not as branching logic in emitters.\n\n## Caching rules of thumb\n\n- Intermediate models must be immutable and equatable.\n- Use explicit comparers (`WithComparer`) when default equality is insufficient.\n- Avoid carrying symbols or semantic models in long-lived models unless strictly necessary.\n- Prefer stable identifiers (fully qualified names, metadata names) plus minimal payload.\n- Precompute expensive inputs (for example regex patterns or known-type sets) once and store them in equatable models.\n- Prefer `record struct` for small, frequently allocated intermediate models to minimize heap pressure and improve cache locality.\n\n### Custom equality comparer for complex models\n\nWhen default equality semantics are insufficient, implement an explicit `IEqualityComparer\u003CT>`:\n\n```csharp\ninternal sealed class TargetModelComparer : IEqualityComparer\u003CTargetModel>\n{\n    public static readonly TargetModelComparer Instance = new();\n\n    public bool Equals(TargetModel? x, TargetModel? y)\n    {\n        if (ReferenceEquals(x, y)) return true;\n        if (x is null || y is null) return false;\n\n        return StringComparer.Ordinal.Equals(x.FullyQualifiedName, y.FullyQualifiedName)\n            && x.ParameterTypes.SequenceEqual(y.ParameterTypes, StringComparer.Ordinal);\n    }\n\n    public int GetHashCode(TargetModel obj)\n    {\n        var hash = new HashCode();\n        hash.Add(obj.FullyQualifiedName, StringComparer.Ordinal);\n        foreach (var type in obj.ParameterTypes)\n        {\n            hash.Add(type, StringComparer.Ordinal);\n        }\n        return hash.ToHashCode();\n    }\n}\n```\n\nApply the comparer in the pipeline:\n\n```csharp\nvar targetModels = context.SyntaxProvider\n    .ForAttributeWithMetadataName(TargetAttributeName, Predicate, Transform)\n    .WithComparer(TargetModelComparer.Instance);\n```\n\n## Emission rules\n\n- Emitters are instantiated only inside `RegisterSourceOutput`.\n- Emitters depend solely on already-materialized specs.\n- Enforce deterministic ordering using ordinal comparers and stable keys.\n- Centralize hint-name generation and keep it stable.\n- Avoid nondeterminism such as dictionary enumeration order.\n\n## Cancellation token propagation\n\nAlways propagate `CancellationToken` through parsing and emission methods. The IDE cancels generator execution when documents change, and proper cancellation prevents wasted work.\n\n```csharp\n\u002F\u002F In Xxx.Parser.cs\nprivate static TargetSpec? Transform(GeneratorAttributeSyntaxContext context, CancellationToken cancellationToken)\n{\n    cancellationToken.ThrowIfCancellationRequested();\n\n    var method = (MethodDeclarationSyntax)context.TargetNode;\n    var symbol = (IMethodSymbol)context.TargetSymbol;\n\n    \u002F\u002F Additional expensive operations should check cancellation\n    cancellationToken.ThrowIfCancellationRequested();\n\n    return TargetSpec.Create(symbol, method);\n}\n\n\u002F\u002F In Xxx.Emitter.cs\nprivate static void Emit(SourceProductionContext context, ImmutableArray\u003CTargetSpec> specs)\n{\n    context.CancellationToken.ThrowIfCancellationRequested();\n\n    foreach (var spec in specs.OrderBy(s => s.FullyQualifiedName, StringComparer.Ordinal))\n    {\n        context.CancellationToken.ThrowIfCancellationRequested();\n        EmitTarget(context, spec);\n    }\n}\n```\n\n## AnalyzerConfigOptions\n\nRead MSBuild properties via `context.AnalyzerConfigOptionsProvider` to flow configuration through the pipeline:\n\n```csharp\npublic void Initialize(IncrementalGeneratorInitializationContext context)\n{\n    var globalOptions = context.AnalyzerConfigOptionsProvider\n        .Select(static (p, _) => new BuildOptions(\n            p.GlobalOptions.TryGetValue(\"build_property.MyGeneratorNamespace\", out var ns) ? ns : \"Generated\"));\n\n    var specs = context.SyntaxProvider\n        .ForAttributeWithMetadataName(TargetAttributeName, Predicate, Transform);\n\n    context.RegisterSourceOutput(\n        specs.Combine(globalOptions),\n        static (spc, tuple) => Emitter.Emit(spc, tuple.Left, tuple.Right));\n}\n\ninternal sealed record BuildOptions(string Namespace);\n```\n\nKey points:\n- MSBuild properties become available as `build_property.PropertyName` in global options.\n- Always provide sensible defaults; configuration is optional by design.\n- Combine options early in the pipeline so downstream transforms are pure data transforms.\n\n**Prefer explicit code configuration over MSBuild properties**\n\nBefore adding an MSBuild property, consider if the same control can be expressed more explicitly in code:\n\n- **Attributes**: Use custom attributes for per-target configuration that developers can see and navigate to in their IDE.\n\n  ```csharp\n  [GenerateCode(Namespace = \"MyApp.Generated\")] \u002F\u002F Visible on the target\n  public class MyTarget { }\n  ```\n\n- **Partial classes**: Define conventions or shared configuration via partial classes that are discoverable and type-safe.\n\n  ```csharp\n  \u002F\u002F Generated convention, discoverable via Go To Definition\n  public static partial class GeneratorConventions\n  {\n      public const string DefaultNamespace = \"MyApp.Generated\";\n  }\n  ```\n\nMSBuild properties are implicit and harder to discover compared to attributes or partial classes that appear directly in source code. Reserve MSBuild properties for build-wide settings that truly need to vary by build configuration (Debug vs Release) or CI environment, not for per-type or per-member configuration.\n\n## Common anti-patterns\n\nAvoid these patterns that break incremental behavior:\n\n**Do NOT capture syntax nodes in models**\n```csharp\n\u002F\u002F BAD: SyntaxNode is not equatable and changes on every edit\ninternal sealed record TargetSpec(MethodDeclarationSyntax Method, string Name);\n\n\u002F\u002F GOOD: Extract only the data you need\ninternal sealed record TargetSpec(string MethodName, string FullyQualifiedTypeName);\n```\n\n**Do NOT close over symbols in lambdas passed to Select\u002FWhere**\n```csharp\n\u002F\u002F BAD: Captures ISymbol which ties lifetime to compilation\n.Select((ctx, _) => ctx.TargetSymbol) \u002F\u002F Symbol captured here\n.Where(symbol => symbol.GetAttributes().Any(...));\n\n\u002F\u002F GOOD: Extract primitive data immediately\n.Select((ctx, _) => new { Name = ctx.TargetSymbol.Name, Attributes = ctx.Attributes })\n.Where(data => data.Attributes.Any(...));\n```\n\n**Do NOT use mutable state in generators**\n```csharp\n\u002F\u002F BAD: Static mutable state breaks incremental guarantees\nprivate static readonly List\u003Cstring> _cache = new();\n\n\u002F\u002F GOOD: Immutable state flows through the pipeline\n.Select(static (ctx, _) => new TargetSpec(...))\n```\n\n**Do NOT perform expensive work in syntax predicates**\n```csharp\n\u002F\u002F BAD: Semantic analysis in predicate invalidates cache frequently\n.ForAttributeWithMetadataName(\n    \"MyAttribute\",\n    (node, model) => model.GetDeclaredSymbol(node) is IMethodSymbol m && m.IsAsync,\n    Transform)\n\n\u002F\u002F GOOD: Cheap predicate, defer semantic work to Transform\n.ForAttributeWithMetadataName(\n    \"MyAttribute\",\n    (node, _) => node is MethodDeclarationSyntax,\n    Transform)\n```\n\n**Do NOT rely on dictionary enumeration order**\n```csharp\n\u002F\u002F BAD: Non-deterministic hint names\nforeach (var kvp in targetsByType) \u002F\u002F Dictionary iteration\n{\n    context.AddSource($\"{kvp.Key}.g.cs\", ...);\n}\n\n\u002F\u002F GOOD: Explicit ordering with stable keys\nforeach (var type in targetsByType.Keys.OrderBy(k => k, StringComparer.Ordinal))\n{\n    context.AddSource($\"{type}.g.cs\", ...);\n}\n```\n\n## Record struct vs class for intermediate models\n\n| Factor | `record struct` | `record class` |\n|--------|-----------------|----------------|\n| **Size** | 64 bytes (3-4 fields) | Any size |\n| **Lifetime** | Short, high churn | Longer lived |\n| **Collections** | Small arrays\u002Flists | Hash sets\u002Fdictionaries |\n\n**Prefer `record struct`** for simple specs (3-4 fields or fewer). **Use `record class`** when the model contains collections, exceeds 64 bytes, is stored in hash-based collections, or requires inheritance.\n\n```csharp\n\u002F\u002F Small, flat spec - record struct\ninternal readonly record struct TargetSpec(\n    string FullyQualifiedName,\n    string MethodName,\n    bool IsAsync);\n\n\u002F\u002F Larger spec with collections - record class\ninternal sealed record TargetRegistrationSpec(\n    string TargetType,\n    string ContractType,\n    ImmutableEquatableArray\u003Cstring> ImplementedInterfaces,\n    LocationInfo Location);\n```\n\nStructs reduce GC pressure for high-churn intermediates. Large structs incur copying costs, abenchmark if unsure.\n\n## Project setup for .NET Standard generators\n\nSource generators typically target `netstandard2.0` for broad compatibility. Use polyfill libraries to backport modern C# features:\n\n```xml\n\u003C!-- PolySharp provides polyfills for C# features like records, required members, init-only properties -->\n\u003CPackageReference Include=\"PolySharp\" Version=\"1.14.1\">\n  \u003CPrivateAssets>all\u003C\u002FPrivateAssets>\n  \u003CIncludeAssets>runtime; build; native; contentfiles; analyzers\u003C\u002FIncludeAssets>\n\u003C\u002FPackageReference>\n```\n\nAlternatively, [Polyfill](https:\u002F\u002Fgithub.com\u002FSimonCropp\u002FPolyfill) offers a similar approach with different trade-offs in what features are backported.\n\n### Enforce extended analyzer rules\n\nEnable stricter analyzer rules for generator projects to catch common issues:\n\n```xml\n\u003CPropertyGroup>\n  \u003C!-- Required for source generators - enforces analyzer API usage rules -->\n  \u003CEnforceExtendedAnalyzerRules>true\u003C\u002FEnforceExtendedAnalyzerRules>\n  \u003C!-- Enforce nullable reference types -->\n  \u003CNullable>enable\u003C\u002FNullable>\n  \u003C!-- Treat warnings as errors in generator projects -->\n  \u003CTreatWarningsAsErrors>true\u003C\u002FTreatWarningsAsErrors>\n  \u003C!-- Additional analyzer rules -->\n  \u003CAnalysisMode>Recommended\u003C\u002FAnalysisMode>\n\u003C\u002FPropertyGroup>\n```\n\nConsider also:\n- [Microsoft.CodeAnalysis.BannedApiAnalyzers](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FMicrosoft.CodeAnalysis.BannedApiAnalyzers\u002F) to prevent problematic API usage\n- [Microsoft.CodeAnalysis.PublicApiAnalyzers](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FMicrosoft.CodeAnalysis.PublicApiAnalyzers\u002F) if the generator is a public API\n\n## Required outputs and testing\n\nWhen implementing or changing a generator, produce:\n\n- Incremental pipeline wiring\n- Clear parser and emitter separation\n- Stable and deterministic hint names\n- Tests for generated output (snapshot or golden-file style)\n- At least one explicit cache-safety consideration for the affected pipeline\n\n### Testing incremental caching\n\nVerify that two runs with identical inputs produce identical outputs, confirming cached results are reused.\n\n```csharp\n[Fact]\npublic void Generator_ProducesCachedOutput_OnSecondRun()\n{\n    var source = @\"[GenerateCode] public partial class MyTarget { }\";\n    var compilation = CreateCompilation(source);\n    \n    var driver = CreateDriver();\n    var result1 = driver.RunGenerators(compilation);\n    var result2 = result1.RunGenerators(compilation);\n    \n    var output1 = result1.GetRunResult().GeneratedTrees.Single().ToString();\n    var output2 = result2.GetRunResult().GeneratedTrees.Single().ToString();\n    \n    output1.Should().Be(output2); \u002F\u002F Same output = cache hit\n}\n```\n\nThis catches non-equatable objects (syntax nodes, symbols) in models or missing `WithComparer` calls.\n",{"name":5,"description":7},"master","b30b1c1908dbc56a8184128f18803053d762ccb5","codex\u002Fdeniz-dotnet-general\u002Fskills\u002Froslyn-incremental-generator-specialist",0,"https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins","https:\u002F\u002Fgithub.com\u002FBlind-Striker","denizirgin.com","VP of Engineering - \r\n@armutcom @homeruntech @prontopro\r\n |  Speaker \r\n@CodeFiction\r\n, http:\u002F\u002Fcodefiction.tech | Developer, gamer, blogger, maiden iron fan","2026-11-13 00:23:18",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Blind-Striker\u002Fagent-skills-and-plugins --skill roslyn-incremental-generator-specialist",{"tool":39,"command":40},"bunx","bunx skills add Blind-Striker\u002Fagent-skills-and-plugins --skill roslyn-incremental-generator-specialist",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Blind-Striker\u002Fagent-skills-and-plugins --skill roslyn-incremental-generator-specialist","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fcodex\u002Fdeniz-dotnet-general\u002Fskills\u002Froslyn-incremental-generator-specialist\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M79YGWBJ52PHMSTKJ3RJ3AWR","writing-tunit-tests","Write tests in TUnit — the attributes, the async assertion model, data-driven cases, lifecycle hooks, and the parallelism rules. USE FOR writing or fixing a test in a TUnit project, translating a test idea into TUnit syntax, or reviewing TUnit test code for API mistakes. DO NOT USE FOR deciding what to test, judging whether a test is any good, or running tests.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-dotnet-general\u002Fwriting-tunit-tests\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M79YGR3Y9RCRS6TD71D0KKP8","dotnet-walls","Walls for a .NET change in a repository without its own quality gates — pinned, ephemeral analyzer, format, clone and scanner commands for the verify step, their identity ratchet, and the build traps. Use during a walls preflight, or when a worker's verify step needs .NET quality gates.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-dotnet-general\u002Fdotnet-walls\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M79YGFNJBST7D803NQW3SBYM","csharp-15","Write, review and modernize C# 15 (.NET 11) code correctly. Covers every C# 15 feature - collection expression arguments (`[with(...), ...]`), union types (`union`, `[Union]`, `IUnion`, custom unions), closed class hierarchies (`closed`), extension indexers, labeled `break`\u002F`continue`, non-virtual static interface members on runtimes without default interface methods, and the preview memory-safety model (`unsafe(expr)`, `safe`, requires-unsafe members). Use when code targets net11.0 or LangVersion 15\u002Fpreview, when the user mentions any of these features, when replacing marker interfaces, OneOf-style results, `goto`\u002Fflag loop exits or capacity\u002Fcomparer boilerplate, or when the build reports CS8121, CS8509, CS8655, CS8510, CS0121\u002FCS0411 on a `with(...)` element, CS9370, CS9380 or CS9363.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-dotnet-general\u002Fcsharp-15\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79YGAV031473HSX6FN87ENH","verified-waves","Run one task as verified multi-agent waves. Plans the fan-out, sends findings to fresh skeptics, keeps a ledger, and reports N of M done; small tasks stay solo.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-coordination\u002Fverified-waves\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M79YG6QXNND4WRPP3GATSY8J","harness","The bundled dispatch harness, which runs a task file on worker models through OpenCode or Codex, fences their writes, escalates their asks to the operator, settles each result from git and its verify commands, and records every step in a ledger. Its commands, task file, modes and write fence, configuration, runs and their recovery, ledger and exit codes.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-coordination\u002Fharness\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M79YG2P5S91SDTA5912XJ4FV","delegating-to-worker-models","Use when you hand off implementation, a plan, research a decision will rely on, or a review, and you brief the worker and check what comes back. A subagent that searches, reads in parallel, or keeps your context small is ordinary tool use. Covers what stays with you, the mechanism, assigning work by strength, the walls preflight, prompts without contradictions, the worker contract and model profiles, evidence from your own run, review, and the fix-up loop.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-coordination\u002Fdelegating-to-worker-models\u002FSKILL.md",[],[]]