Skip to main content
在 Manus 中运行任何 Skill
一键导入

thinktecture-runtime-extensions

星标90
分支5
更新时间2026年6月25日 06:43

Design and implement domain types with Thinktecture.Runtime.Extensions — Smart Enums ([SmartEnum<TKey>] / [SmartEnum]), Value Objects ([ValueObject<TKey>] / [ComplexValueObject]), Discriminated Unions ([Union<T1,T2,…>] / [AdHocUnion] / [Union]), and Object Factories ([ObjectFactory<T>]). Use both to pick the right building block AND to implement it: validation via ValidateFactoryArguments / CreateCore / ValidateCore, Switch/Map, factory methods (FactoryMethodGeneration), equality comparers (KeyMemberEqualityComparer), generic types via TypeParamRef1-5, backing-field merging (UseSingleBackingField), serialization/EF/ASP.NET integration, setting cascades, and TTRESG diagnostics. Trigger on any of these attributes, primitive-obsession refactors (Email, Amount, ISBN), fixed enum-like sets, one-of / Success|Failure modeling, IsT1/AsT1, or TTRESG codes (047/057-062/068-076). Type-specific detail is loaded on demand from this skill's references/.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
12 个文件
SKILL.md
readonly