/dotnet:mapperlyfrom dotnet
Use when writing or reviewing a Mapperly mapper, covering mapping at the host boundary
Ships in dotnet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Covers mapping at the host boundary with Riok.Mapperly.
Mapperly generates member assignments at build time. New targets and converted collections allocate, generated assignments need no runtime reflection or expression compilation:
ImplicitCast and MapNestedProperties miss the operators generated for a value object in the mapper's compilationAdapters that reference both representations own the mapper, and no other code references Mapperly or an external contract:
Duplicate(), a copy constructor) are their own snapshot, a mapper maps a record a caller stores or comparesIsSelected()) enter one [MapPropertyFromSource] member each, a hand constructor call beside the mapper restates it| [INDEX] | [DIRECTION] | [MAPPERLY_ROLE] | [REQUIRED_FORM] |
|---|---|---|---|
| [01] | External contract to raw input model | Structural mapping | Validate the raw model before construction |
| [02] | External contract to constrained value | None | Cross through X.Validated, keep its error |
| [03] | Validated components to aggregate | Optional construction | Use one constructor total over the components |
| [04] | Value to transport or persistence | Structural projection | Map only after the result is successful |
| [05] | Snapshot to next snapshot | None | Call a named transition returning the next value |
| [06] | Closed union to external case | Structural mapping per case | Dispatch through the union's exhaustive Switch |
| [07] | Mutable boundary value to a caller-created target | Existing-target mapping | Mutate a target that never escapes its creating scope |
| [08] | Persistence query to read model | Expression projection | Materialize before construction or effects |
Mappings that can reject input are not plain TSource -> TTarget functions:
X.ValidatedIO<Option<A>>) at its innermost valueFin<ItemDto> dto = item.Map(ItemMapper.ToDto);
MSBuild properties in Directory.Build.props configure every mapper of a project and name only what differs from the defaults:
Riok.Mapperly.targets declares one compiler-visible property per option with the option name prefixed by Mapperlybuild_property.Mapperly<Option> key without an MSBuild property<PropertyGroup Label="Mapperly">
<MapperlyEnumMappingStrategy>ByName</MapperlyEnumMappingStrategy>
<MapperlyAutoUserMappings>false</MapperlyAutoUserMappings>
<MapperlyRequiredMappingStrategy>Target</MapperlyRequiredMappingStrategy>
<MapperlyThrowOnPropertyMappingNullMismatch>true</MapperlyThrowOnPropertyMappingNullMismatch>
<MapperlyEnabledConversions>Queryable, Enumerable, Dictionary, Span, Memory, EnumToEnum</MapperlyEnabledConversions>
</PropertyGroup>
ImplicitCast, without it a derived member maps as a new base instance and drops derived membersstring, enum, and primitive targets have no mappable members and report RMG007 as a member and RMG008 as a mapping methodRMG013, RMG066, or nothingMappingConversionType.None clears Enumerable and DictionaryNone, List and Dictionary members with a differing element type map to empty collections with no diagnosticMSBuild property, [assembly: MapperDefaults], [Mapper], and the per-method attributes (MapperRequiredMappingAttribute, MapperIgnoreObsoleteMembersAttribute, MapEnumAttribute) configure a mapper, each overriding the one before it:
MapperDefaultsAttribute derives from MapperAttribute with the same optionsEnabledConversions allowlistRequiredMappingStrategy.Source where every source member must reach an existing host objectTarget reports nothing for a source member the record lacks, a record holding every host member sets BothMapperlyAbstractionsScope stays at default compile, runtime keeps attributes in metadata so another assembly's mapper reads [UserMapping]ParseMethod, Constructor, StaticConvertMethods, and the casts out of their allowlist[UserMapping] (int Key(Quantity value) => value)CreateUse own every remaining conversionToStringMethod treat it as formatting and pass a fixed provider or an explicit culture inputExternal mappings stay local to the mapper that consumes them, and assembly-wide registrations expose only disjoint pairs:
Use methods by normalized name, pass culture and policy once at the root mappinginternal static class reached through [UseStaticMapper(typeof(T))]UseStaticMapperAttribute<T> over a static class fails with CS0718[UserMapping] methods stay for a mapper-local pairMapping form decides who owns the target while its members are written:
| [INDEX] | [FORM] | [TARGET_STATE] | [CONSTRAINT] |
|---|---|---|---|
| [01] | New instance | Mapper-owned until return | Constructor and init values precede writable assignments |
| [02] | Mapperly object factory | Factory result, then writable assignments | Constructor parameters and init-only members stay unmapped |
| [03] | Existing target | Caller-owned mutable value | Assignments and collection additions are observable mutation |
| [04] | Reference handling | Identity graph under one handler | Registration follows construction and precedes writable members |
| [05] | Runtime dispatch | Registered source and target pairs | Unregistered pair or subtype throws |
[MapperConstructor] chooses between equivalent external constructors and selects no transitionMapperly object factories allocate or select the target and expose no typed failure channel:
NullReferenceException[ObjectFactory<T>] declares a validating conversion to and from one other type, unrelated to Mapperly object factoriesMember and constructor visibility stays at AllAccessible:
Existing-target mappings mutate their target, and an existing collection adds without replacement:
default as the original valueReference handling materializes an external graph that requires cycles or shared identity, and one handler serves one mapping call:
Generated types cross the mapper only through their declared conversions:
X.Validated(raw)ToValue(), a declared [ObjectFactory<T>] includedToString() defines no outbound representationCreate, Parse, an accessible constructor, a static conversion method, and an explicit operator turn expected rejection into an exceptionClosed unions dispatch through their generated exhaustive Switch, and Mapperly maps one known case inside each arm, a host object target through one existing-target Update per case. Map takes one value per case and receives no mapper call:
internal static ChangeDto ToDto(Change value) =>
value.Switch(added: ChangeMapper.ToDto, removed: ChangeMapper.ToDto);
MapDerivedType, a duplicated case list, SwitchPartially, MapPartially, a @default arm, or StopAtLanguageExt owns absence, failure, validation, effects, traversal, and transformer stacks:
Map, BiMap, Apply, or a traversal, total over a validated sourceThrowOnPropertyMappingNullMismatch signals a defectRMG089 per member or RMG090 per type, a user mapping to Option crosses themSuppressNullMismatchDiagnostic = true on MapProperty fits only a source getter that never returns nullUse selection and preserve every caseLanguageExt collections keep their own construction policy:
MapQuery projections are expression trees that a query provider interprets:
query.ProjectToDto().ToListAsync()Mapperly must inline each user method, and the query provider must translate the resulting expression:
RMG068 and leaves the call in the expressionNullable analysis and the property-null options do not apply inside a projection:
default, or a conditional fallback, the read model matches storage nullabilityRMG029, unsupported enum configuration reports RMG032 and emits a value castValidated crossings, LanguageExt composition, and effects run after materializationdefault(TTarget), valid only when the target contract states that resultAsEnumerable leaves the boundary where it is, a narrow query materializes before the in-memory pipeline beginsAttributes on a [Mapper] partial class or [Mapper] static partial class and its partial methods hold the configuration:
AutoUserMappings = false, a hand-written mapping needs [UserMapping] for its type pair, and Mapperly uses it in place of an automatic conversionDefault marks the pair's one default non-generic mapping, Ignore excludes a discovered methodDefault, a lookup outside Use that finds no mapping registers their first matching instantiation as defaultUse names themToValue of a complex value object that declares [ObjectFactory<string>] outward, another formats with a text pattern[Mapper]
internal static partial class ItemMapper {
public static partial ItemDto ToDto(Item item);
public static partial IEnumerable<ItemDto> ToDtos(IEnumerable<Item> items);
[UserMapping]
private static string MapRange(Bounds range) => range.ToValue();
[UserMapping]
private static string MapListed(Instant listed) => InstantPattern.ExtendedIso.Format(listed);
}
internal sealed record Item(Guid Id, Bounds Range, decimal Amount, Instant ListedAt, Seq<Line> Lines);
internal sealed record ItemDto(Guid Id, string Range, decimal Amount, string ListedAt, IReadOnlyList<LineDto> Lines);
ItemDto.Lines is a BCL collection of the host's contract, and enabled Enumerable conversion maps each Seq<Line> element through the Line-to-LineDto mapping into IReadOnlyList<LineDto>.
Mapping method declarations, one row per capability:
| [INDEX] | [DECLARATION] | [CAPABILITY] |
|---|---|---|
| [01] | partial TTarget Map(TSource source) | New target instance |
| [02] | static partial TTarget ToDto(this TSource source) | Extension mapping |
| [03] | static partial TTarget? Map(TSource? source) | Nullable source and target |
| [04] | partial void Update(TSource source, TTarget target) | Existing target, second holds it |
| [05] | partial void Update([MappingTarget] TTarget t, TSource s) | Existing target, first holds it |
| [06] | static partial IQueryable<TTarget> ProjectTo(this IQueryable<TSource> q) | Queryable projection |
| [07] | partial TTarget Map<TTarget>(TSource source) | Target type resolved by caller |
| [08] | partial TTarget Map<TSource, TTarget>(TSource source) | Source and target both generic |
| [09] | partial object Map(object source, Type targetType) | Target type known at run time |
| [10] | partial TTarget Map(TSource s, [ReferenceHandler] IReferenceHandler h) | Caller supplies the handler |
| [11] | partial TTarget Map(TSource source, int extra) | Additional mapping parameter |
| [12] | [MapDerivedType<TA, TB>] partial TBase Map(TSourceBase source) | Derived type mapping |
| [13] | static partial Expression<Func<TSource, TTarget>> Project() | Projection expression |
static abstract interface member, and a [Mapper] partial class can implement a mapping interfacevoid, the second parameter is the target unless MappingTargetAttribute names anotherMappingTargetAttribute accepts the this parameter of an extension methodArgumentException for an unknown pairMapDerivedTypeAttribute on the method itselfEvery attribute Mapperly reads, with its declaration target and whether it repeats:
| [INDEX] | [SYMBOL] | [TARGET] | [ALLOW_MULTIPLE] | [CAPABILITY] |
|---|---|---|---|---|
| [01] | MapperAttribute | class | No | Mapper declaration and options |
| [02] | MapperDefaultsAttribute | assembly | No | Same options for every mapper |
| [03] | UseMapperAttribute | field, property | No | Use the member's mapping methods |
| [04] | UseStaticMapperAttribute | class, assembly | Yes | Use a type's static mapping methods |
| [05] | UseStaticMapperAttribute<T> | class, assembly | Yes | Same, generic form |
| [06] | MapperConstructorAttribute | constructor | No | Select the constructor to call |
| [07] | ObjectFactoryAttribute | method | No | Construct or resolve the target |
| [08] | MapperIgnoreAttribute | property, field, method | No | Exclude a member or a method |
| [09] | UserMappingAttribute | method | No | User-implemented mapping method |
| [10] | NamedMappingAttribute | method | No | Name a mapping for Use |
| [11] | IncludeMappingConfigurationAttribute | method | Yes | Reuse another method's configuration |
| [12] | MappingTargetAttribute | parameter | No | Mark the parameter as the target |
| [13] | MappingTargetOriginalValueAttribute | parameter | No | Pass the target member's prior value |
| [14] | FormatProviderAttribute | field, property | No | Expose an IFormatProvider |
| [15] | ReferenceHandlerAttribute | parameter | No | Mark the reference-handler parameter |
| [16] | MapPropertyAttribute | method | Yes | Rename, flatten, and unflatten |
| [17] | MapPropertyFromSourceAttribute | method | Yes | Map the source object to a member |
| [18] | MapNestedPropertiesAttribute | method | Yes | Flatten every member of a path |
| [19] | MapValueAttribute | method | Yes | Assign a constant or generated value |
| [20] | MapperIgnoreSourceAttribute | method | Yes | Exclude a source member |
| [21] | MapperIgnoreTargetAttribute | method | Yes | Exclude a target member |
| [22] | MapperRequiredMappingAttribute | method | No | Unmapped-member diagnostics |
| [23] | MapperIgnoreObsoleteMembersAttribute | method | No | Obsolete-member policy |
| [24] | MapDerivedTypeAttribute | method | Yes | One derived source and target pair |
| [25] | MapDerivedTypeAttribute<TSource,TTarget> | method | Yes | Same, generic form |
| [26] | MapEnumAttribute | method | No | Enum strategy for one mapping |
| [27] | MapEnumValueAttribute | method | Yes | Pair enum members |
| [28] | MapperIgnoreSourceValueAttribute | method | Yes | Exclude a source enum value |
| [29] | MapperIgnoreTargetValueAttribute | method | Yes | Exclude a target enum value |
Use values and IncludeMappingConfigurationAttribute names accept a reference outside the mapperMapperIgnoreObsoleteMembersAttribute exposes Justification as a string?, a blank one reports RMG096Settable properties of MapperAttribute and MapperDefaultsAttribute, RequiredEnumMappingStrategy takes RequiredMappingStrategy, EnabledConversions takes MappingConversionType, IncludedMembers and IncludedConstructors take MemberVisibility, and every other option takes bool or the type its name spells:
| [INDEX] | [PROPERTY] | [DEFAULT] | [EFFECT] |
|---|---|---|---|
| [01] | PropertyNameMappingStrategy | CaseSensitive | Member-name matching |
| [02] | EnumMappingStrategy | ByValue | Enum-member matching |
| [03] | EnumNamingStrategy | MemberName | Enum-to-string naming |
| [04] | EnumMappingIgnoreCase | false | Enum-match casing |
| [05] | ThrowOnMappingNullMismatch | true | Null return, non-null result |
| [06] | ThrowOnPropertyMappingNullMismatch | false | Null source, non-null member |
| [07] | AllowNullPropertyAssignment | true | Assign null to nullable member |
| [08] | UseDeepCloning | false | Copy instead of reuse |
| [09] | StackCloningStrategy | PreserveOrder | Element order of a built stack |
| [10] | EnabledConversions | Default | Enabled conversions |
| [11] | UseReferenceHandling | false | Circular-reference support |
| [12] | IgnoreObsoleteMembersStrategy | None | Obsolete-member policy |
| [13] | RequiredMappingStrategy | Both | Unmapped-member diagnostics |
| [14] | RequiredEnumMappingStrategy | Both | Unmapped-value diagnostics |
| [15] | IncludedMembers | AllAccessible | Mapped member accessibility |
| [16] | IncludedConstructors | AllAccessible | Constructor accessibility |
| [17] | PreferParameterlessConstructors | true | Constructor order |
| [18] | AutoUserMappings | true | Discovery by signature |
| [19] | QueryableProjectionNullHandling | NullSafe | Null checks in projections |
AllowNullPropertyAssignment at false turns an existing-target mapping into a merge, required init properties ignore the null optionsStackCloningStrategy decides the element order whenever a new-instance mapping builds a Stack<T> through Stack<T>(IEnumerable<T>)PreserveOrder emits a Reverse call, ReverseOrder keeps the reversing plain constructorMapperly resolves a flattening (Item.Owner.Id to ItemDto.OwnerId) from PascalCase names:
MapPropertyAttribute, and Mapperly ignores indexed membersMapNestedPropertiesAttribute brings every member under one path into scope as if the source declared themMapPropertyAttribute names the mappingGetItems) includedMapPropertyAttribute resolves a name mismatch while both types keep their member namesMapperIgnoreSourceAttribute and MapperIgnoreTargetAttribute silence the unmapped-member diagnostic for an omission their Justification states[Mapper]
internal static partial class ProfileMapper {
[MapProperty(nameof(Profile.FullName), nameof(ProfileDto.Name))]
[MapperIgnoreSource(nameof(Profile.Secret), Justification = "Never serialized")]
[MapperIgnoreTarget(nameof(ProfileDto.Badge), Justification = "Presentation computes it")]
public static partial ProfileDto ToDto(Profile profile);
}
string path splits on . into segments, the string[] overload takes the segments as written@ works in a path, nameof(@Some.Namespace.Item.Owner.Id) yields Owner.IdSource and Target are IReadOnlyCollection<string>, SourceFullName and TargetFullName rejoin the segments with .MapPropertyAttribute takes source and target, MapPropertyFromSourceAttribute takes a target, MapNestedPropertiesAttribute takes a sourceMapValueAttribute takes a target and an object? Value, MapperIgnoreSourceAttribute and MapperIgnoreTargetAttribute take one stringMapperRequiredMappingAttribute takes a RequiredMappingStrategyMapperIgnoreObsoleteMembersAttribute takes an IgnoreObsoleteMembersStrategy that defaults to BothStringFormat is the format string Mapperly passes to ToString on an IFormattable typeFormatProvider names a field or property marked FormatProviderAttribute, one member per mapper sets Default to true as the fallbackMapValueAttribute assigns a constant of the target type, or with Use the result of a method returning the target typeMapPropertyAttribute sets StringFormat, FormatProvider, Use, and SuppressNullMismatchDiagnostic past the constructorMapPropertyFromSourceAttribute sets StringFormat, FormatProvider, and Use past the constructorMapValueAttribute sets Use and FormatProviderAttribute sets Default past the constructorAttributes that configure one enum mapping:
| [INDEX] | [SYMBOL] | [MEMBERS] |
|---|---|---|
| [01] | MapEnumAttribute(EnumMappingStrategy strategy) | Strategy |
| [02] | MapEnumValueAttribute(object source, object target) | Source Target as object |
| [03] | MapperIgnoreSourceValueAttribute(object source) | SourceValue as Enum? |
| [04] | MapperIgnoreTargetValueAttribute(object target) | TargetValue as Enum? |
MapEnumAttribute applies to a mapping method that takes an enumMapEnumAttribute takes IgnoreCase (bool, default false) and FallbackValue (object?, default null)MapEnumAttribute takes NamingStrategy (EnumNamingStrategy, default MemberName)FallbackValue replaces the throw for an unmapped value under ByName and ByValueCheckDefined onlyFallbackValue nor MapEnumValueAttribute passes through the naming strategyMapEnumValueAttribute pairs an enum member with an enum member or a string literal in an enum-to-enum, enum-to-string, or string-to-enum mappingEnum and take an enum member onlyByName, members that match by name need no configuration, and explicit pairs cover the rest[Mapper]
internal static partial class StateMapper {
[MapEnumValue(StoredState.InProgress, ExternalState.Active)]
[MapEnumValue(StoredState.Done, ExternalState.Completed)]
public static partial ExternalState ToExternal(StoredState state);
}
internal enum StoredState { Draft, InProgress, Done, Cancelled }
internal enum ExternalState { Active, Completed, Cancelled, Draft }
RequiredMappingStrategy, IgnoreObsoleteMembersStrategy, and MemberVisibility declare [Flags], | adds a member and & ~ removes one. Strategy types that options and attributes name:
StackCloningStrategy: PreserveOrder ReverseOrderPropertyNameMappingStrategy: CaseSensitive CaseInsensitive SnakeCase UpperSnakeCaseRequiredMappingStrategy and IgnoreObsoleteMembersStrategy: None = 0 Both = ~None Source = 1 << 0 Target = 1 << 1EnumMappingStrategy: ByValue ByName ByValueCheckDefinedByValueCheckDefined maps by value and checks the value is definedEnumNamingStrategy: MemberName CamelCase PascalCase SnakeCase UpperSnakeCase KebabCase UpperKebabCase and the attribute readersComponentModelDescriptionAttribute reads DescriptionAttribute.Description, SerializationEnumMemberAttribute reads EnumMemberAttribute.ValueMemberVisibility: Accessible = 1 << 0 Public = 1 << 1 Internal = 1 << 2 Protected = 1 << 3 Private = 1 << 4MemberVisibility.All = Public | Internal | Protected | Private, AllAccessible = All | AccessibleSource and Target name the side where RequiredMappingStrategy warns about unmapped members and IgnoreObsoleteMembersStrategy skips obsolete ones. MapPropertyAttribute maps an obsolete member under every strategy.
MappingConversionType is the [Flags] set that EnabledConversions takes:
None = 0 disables every automatic conversion, All = ~None enables every one, the unset value is Default = All & ~ExplicitCastAll or adds the bitUse mappings, nullable-source constructors (Constructor), nullable sources, derived types, and object targets (ExplicitCast) precede step 1UseDeepCloning| [INDEX] | [MEMBER] | [BIT] | [STEP] | [CONDITION] |
|---|---|---|---|---|
| [01] | Constructor | 1 << 0 | 9 | Target has a constructor taking the source type |
| [02] | ImplicitCast | 1 << 1 | 7 | Implicit cast operator exists |
| [03] | ExplicitCast | 1 << 2 | 13 | Explicit cast operator exists |
| [04] | ParseMethod | 1 << 3 | 8 | Source is string, target has a static Parse overload |
| [05] | ToStringMethod | 1 << 4 | 14 | Target is string, calls ToString on the source |
| [06] | StringToEnum | 1 << 5 | 10 | Source is string, target is an enum |
| [07] | EnumToString | 1 << 6 | 11 | Source is an enum, target is string |
| [08] | EnumToEnum | 1 << 7 | 12 | Both are enums, follows EnumMappingStrategy |
| [09] | DateTimeToDateOnly | 1 << 8 | 16 | DateTime to DateOnly through FromDateTime |
| [10] | DateTimeToTimeOnly | 1 << 9 | 16 | DateTime to TimeOnly through FromDateTime |
| [11] | Queryable | 1 << 10 | 2 | Both are IQueryable<T>, expression-tree element mapping |
| [12] | Enumerable | 1 << 11 | 6 | Both are IEnumerable<T>, maps each element |
| [13] | Dictionary | 1 << 12 | 3 | Source of KeyValuePair, target a dictionary type |
| [14] | Span | 1 << 13 | 4 | Either is Span<T> or ReadOnlySpan<T> |
| [15] | Memory | 1 << 14 | 5 | Either is Memory<T> or ReadOnlyMemory<T> |
| [16] | Tuple | 1 << 15 | 17 | Target is a ValueTuple or a tuple expression |
| [17] | EnumUnderlyingType | 1 << 16 | 12 | Maps an enum from or to its underlying type |
| [18] | ToTargetMethod | 1 << 17 | 15 | Source has an instance TTarget ToTTarget(), not ToString |
| [19] | StaticConvertMethods | 1 << 18 | 16 | Static ToTTarget, Create, CreateFrom, FromTSource |
| [20] | Expression | 1 << 19 | - | Declared only, the generator never reads it |
StaticConvertMethods finds a static ToTTarget on the source typeStaticConvertMethods finds Create, CreateFrom, CreateFromTSource, and FromTSource in any casing on the target typeCreateFrom<TElement>Array and From<TElement>Arrayint[]) add CreateFrom<kw>Array, From<kw>Array, FromArray, CreateFromArray, CreateFrom, and CreateCreate(TKey) of a value object, the Validated extension member sits on no target type and matches no listed nameTuple emits a tuple expression outside a queryable projection and ValueTuple inside oneEnumerable and Dictionary bits cover arrays and every constructible collection targetEnumUnderlyingType casts inside the EnumToEnum stepDateTime bits gate the static-method step for their pairs, Tuple gates the tuple form of the member-mapping stepMapDerivedTypeAttribute(Type sourceType, Type targetType) and MapDerivedTypeAttribute<TSource, TTarget> register one pair for a base-type or interface mapping:
ArgumentException for an unregistered typeRiok.Mapperly.Abstractions.ReferenceHandling supports source graphs with circular references:
UseReferenceHandling = true enables reference handlingruntime stays out of ExcludeAssets on the package referenceIReferenceHandler stores and resolves target objectsPreserveReferenceHandler is the default handler and returns the same target instance for the same source instancebool TryGetReference<TSource, TTarget>(TSource source, [NotNullWhen(true)] out TTarget? target)
where TSource : notnull where TTarget : notnull;
void SetReference<TSource, TTarget>(TSource source, TTarget target)
where TSource : notnull where TTarget : notnull;
TryGetReference before creating a target and uses a found one, else creates the target and records it through SetReferenceIReferenceHandler marked ReferenceHandlerAttributeusing directive for the namespace| [INDEX] | [WRONG_FORM] | [CORRECT_FORM] |
|---|---|---|
| [01] | Mapper conversion that calls Create or Parse | X.Validated over the generated Validate |
| [02] | MapDerivedType or a partial Switch over a closed union | Generated exhaustive Switch, one mapper call per arm |
| [03] | EnabledConversions on a mapper naming the one added bit | Whole allowlist, an override replaces the value |
| [04] | Mapper method that builds or unwraps a LanguageExt result or effect | Mapper over the success value, Map keeps the context |
| [05] | ToString() as the wire contract of a value object | Key member, or ToValue of an [ObjectFactory<T>] |
| [06] | Validation or effects inside a query projection | Project, materialize, then validate and construct |
| [07] | Existing-target mapping over a value the caller published | New-instance mapping, or a target that never escapes |
| [08] | Private [UserMapping] repeated in every mapper that needs it | One internal static class behind [UseStaticMapper(typeof(T))] |
| [09] | Unsafe accessor over a private constructor or hidden member | Constrained type's declared factory, host's typed member |
| [10] | Object factory that resolves services | Pure factory over its parameters |
| [11] | Mapping method forwarding its source unchanged to another method | Use = nameof(@<owner>.<member>) or a [UseStaticMapper] owner |
| [12] | Assignments or an initializer copying source members one by one | partial mapping, or existing-target Update for a host value |
| [13] | User mapping returning a source member path | [MapProperty] naming source path and target member |
| [14] | Record restating a host property bag the host copies | Host copy as snapshot, mapper over the record a caller stores |
| [15] | Update into a host object with ignored members per union case | One closure per case folded in order, no mapper |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bsamiee/rasm --plugin dotnet8 skills in this plugin
/codelensUse when reading, diagnosing, or refactoring a file in a .NET solution, covering the roslyn-codelens MCP server/codingUse when writing or reviewing C#, covering functional design with result and effect types/debuggingUse when C# or another CoreCLR program misbehaves at runtime and its cause is unproven (wrong value, failing test, exception, hang, crash, breakpoint that never stops), covering DNCDbg launches and attaches, held starts, test runners, PDB documents, exception stops, expressions, live process reads, and dumpsOther plugins' skills for the same job