mgmt-review-comment-resolution
Installation
SKILL.md
Skill: mgmt-review-comment-resolution
Resolve review comments on Azure management-plane SDK PRs by making changes in the TypeSpec spec repo (client.tsp) and regenerating the SDK.
When Invoked
Trigger phrases: "resolve review comments", "fix review comments", "resolve PR comments", "rename types", "fix naming", "resolve naming comments", "fix API surface".
Overview
Management-plane SDK code is generated from TypeSpec definitions in azure-rest-api-specs. Review comments on SDK PRs often request changes to the generated API surface — renaming types, renaming properties, or changing property types to be more user-friendly. These changes are made in the spec repo's client.tsp using TypeSpec decorators (primarily @@clientName), then the SDK is regenerated.
Key Concepts
@@clientName(TypeSpecName, "CSharpName", "csharp")— renames a TypeSpec model/union/enum/property to a different name in the generated C# SDK. This is the primary tool for resolving naming comments.@@clientNameonly works on named types — models, unions, enums, and interfaces. If a type is defined as analias,@@clientNamecannot target it. See "Handling Unsupported Cases" below.- Only
client.tspmay be changed — do not modify any other.tspfiles or config files. If resolving a comment would require changes to other files, skip that change and inform the user with the reason after processing all other comments. Since onlyclient.tspis modified, swagger regeneration is never needed.