Files
Daniel Marbach f4d0d393b4 AOT and trimming skill first version (#82)
* AOT and trimming skill first version

* Carry DAM through a container

* Collections

* Fix aot-trimming frontmatter YAML and add serialization routing note

- Quote the SKILL.md description so strict YAML parsers (Copilot, OpenCode,
  eval harnesses) can load the skill - the unquoted 'playbook: source'
  colon+space broke parsing.
- Add a routing disambiguation note pointing System.Text.Json AOT scenarios
  to the serialization skill, which overlaps on STJ source-generation tasks.

* Fix invalid attribute targets, FeatureSwitchDefinition version, and strict-mode comment

- [set:]/[get:] are not valid C# attribute targets: they produce a CS0658
  warning and the attribute is silently ignored. Recommend placing the
  attribute directly on the accessor (or [method:]/[return:]/[field:]).
  Verified empirically: [set: RequiresUnreferencedCode(...)] compiles but the
  annotation is dropped (reflection shows it absent from the setter).
- [FeatureSwitchDefinition] is available from .NET 9, not .NET 10 only.
- The strict-mode comment said the lenient path is removed when the switch is
  off, but the example sets Value="true" (strict on); corrected to 'on'.

* Describe accessor scoping by current behavior only

The accessor-scoping section now states the supported pattern (attribute
directly on the accessor, or [method:]/[return:]/[field:] targets) without
referencing the invalid [set:]/[get:] syntax.

* Expand AOT trimming guidance

---------

Co-authored-by: Daniel Marbach <danielmarbach@users.noreply.github.com>
2026-09-10 09:08:19 -05:00
..