一键导入
xml-docs-write
Add comprehensive XML documentation comments to all public and protected members in the provided C# class(es).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add comprehensive XML documentation comments to all public and protected members in the provided C# class(es).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Reference for C# / .NET coding style, naming conventions, SOLID principles, TDD workflow, and XML documentation standards. Use when writing, refactoring, or reviewing C# code.
Introduces a stackalloc fallback to ArrayPool<T>.Shared for hot-path C# methods that need variable-size stack buffers. Use this skill whenever a method uses a naked stackalloc that should gracefully fall back to a pooled array for larger inputs, or when adding this pattern from scratch to a method that processes variable-length data. Triggers on: stackalloc, ArrayPool, Span<T> buffer allocation, avoiding stack overflow for variable buffers, or any request to make a stack allocation safe for large inputs.
Query and read XML documentation files shipped with .NET NuGet packages. Use when you want to look up API summaries, parameter descriptions, or remarks for third-party libraries without decompiling.
| name | xml-docs-write |
| description | Add comprehensive XML documentation comments to all public and protected members in the provided C# class(es). |
Add comprehensive XML documentation comments to all public and protected members in the provided C# class(es). Follow these guidelines:
///) for XML documentation/// <summary>Brief description of the class purpose and responsibility.</summary>
/// <remarks>Optional: Additional details, usage notes, or implementation details.</remarks>
/// <summary>Brief description of what the method does.</summary>
/// <param name="parameterName">Description of the parameter.</param>
/// <returns>Description of what the method returns.</returns>
/// <exception cref="ExceptionType">Conditions under which this exception is thrown.</exception>
/// <remarks>Optional: Additional usage notes, performance considerations, or examples.</remarks>
/// <summary>Brief description of what the property represents.</summary>
/// <value>Description of the property's value and any constraints.</value>
/// <remarks>Optional: Additional notes about the property behavior.</remarks>
Note on
<value>and<remarks>: Only include these tags if they add information not already covered by<summary>. Ask: does this tag say something the summary doesn't? If not, omit it.
/// <summary>Brief description of the field's purpose.</summary>
/// <summary>Brief description of when the event is raised.</summary>
/// <remarks>Optional: Details about event arguments or usage patterns.</remarks>
"Sends...", "Triggers...", "Registers...")
or in <remarks>. Pure reads and simple writes don't need special treatment.<param> tags for all parameters. Because params are all-or-nothing per method
(if one is present, all must be), omitting them to avoid padding trivial entries creates a perverse incentive
to skip the one genuinely useful description. Keep trivial params brief (noun phrases: "Cancellation token.",
"Stream name.") — the overhead is negligible.<typeparam> tags for generic type parameters<see cref=""/> for references to other types or members/// <summary>Asynchronously uploads data to the specified endpoint.</summary>
/// <param name="data">The data to upload.</param>
/// <param name="endpoint">Target endpoint URL.</param>
/// <param name="token">Cancellation token.</param>
/// <returns>A task representing the asynchronous upload operation.</returns>
/// <exception cref="ArgumentNullException">
/// Thrown when <paramref name="data"/> or <paramref name="endpoint"/> is null.
/// </exception>
/// <exception cref="HttpRequestException">Thrown when the upload request fails.</exception>
/// <summary>Initializes a new instance of the <see cref="ClassName"/> class.</summary>
/// <param name="parameter">Description of the constructor parameter.</param>
/// <exception cref="ArgumentException">Thrown when parameter validation fails.</exception>
/// <summary>Generic description of the class functionality.</summary>
/// <typeparam name="T">The type parameter constraint and usage description.</typeparam>
/// <inheritdoc/> for overrides and obvious members where the name says it allWhen something smells like it needs more — non-obvious behavior, a constraint, a side effect, a gotcha — write actual documentation instead. Use judgment on a case-by-case basis.
<remarks><see cref=""> tags exist and are accessible