dotnet-tunit
Use when creating or refactoring .NET tests with TUnit conventions (AAA pattern, naming, async assertions, and CancellationToken usage).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating or refactoring .NET tests with TUnit conventions (AAA pattern, naming, async assertions, and CancellationToken usage).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when converting an Aspire AppHost (typically Program.cs/AppHost.cs) into Purview.Aspire.ResourceKit patterns: generate a HostKit, split resources into ResourceKits with BuildResource/ConfigureResource, map existing config into generated options (IsEnabled/Name), replace direct wiring with AddAspireResourceKit, and update tests/fixtures/configuration to use OptionsHelper and ResourceKit semantics.
Use when creating, moving, or splitting projects in a repository that uses Purview.DotNetProjectSdk, especially for src/tests placement, test suffix naming, namespace alignment, and automatic project-reference behavior.
Create and apply a prerelease bump using Changesets CLI, with the new changeset markdown summarizing the actual changes since the last shipped release.
Git workflow and conventional commit guidance.
Lefthook Git hook integration.
Use for quick TUnit --treenode-filter patterns.
| name | dotnet-tunit |
| description | Use when creating or refactoring .NET tests with TUnit conventions (AAA pattern, naming, async assertions, and CancellationToken usage). |
| category | dotnet |
| roles | ["dotnet","dotnet-tunit","coding"] |
| tags | ["dotnet","csharp","tunit","tests"] |
Use this skill when creating or refactoring tests in a .NET codebase that uses TUnit.
TUnit.Core, TUnit.Assertions).[Test].await Assert.That(actual).IsEqualTo(expected);.// Arrange// Act// Assert{ModuleOrClassBeingTested}Tests.{SubjectUnderTest}_{Scenario}_{Expectation}.
SubjectUnderTest is usually the method name.ctor for constructor-focused tests when appropriate.CancellationToken cancellationToken as the last parameter when any called method in the test body supports a CancellationToken parameter.var result = await sut.ProcessAsync(cancellationToken);).../tunit-test-runner/SKILL.md.