skills/csharp-docs/SKILL.md
C# 文件與 XML 註解標準:強制使用標準標籤與用詞規範產生類別與方法的說明。
npx skillsauth add CloudyWing/ai-dotfiles csharp-docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
當要求幫 C# 程式碼產生或補充 XML 註解時,必須嚴格遵守以下準則。
<summary>:提供一句話的簡短描述。中文應直接描述動作(例如:取得或設定...、初始化...)。<remarks>:用於補充詳細資訊、實作細節或上下文。<see langword>:用於語言關鍵字(如 null, true, false, int, bool)。<c>:用於行內程式碼片段。<example>:提供如何使用該成員的範例。內部應搭配 <code language="csharp">。<see cref>:用於句子內參照其他型別或成員。<seealso>:用於獨立的參照區段。<inheritdoc/>:繼承介面或基礎類別的註解。<param>:描述參數用途(名詞片語,不要寫出資料型別)。
若要...則為 <see langword="true" />;否則為 <see langword="false" />。。<paramref>:在說明中需要參照參數名稱時使用。<returns>:描述回傳值(名詞片語)。若是布林值,描述格式與 <param> 類似。<typeparam> 與 <typeparamref>:用於泛型型別參數。<summary> 開頭應為:
<value> 標籤描述回傳值的涵義及預設值。<exception cref="ExceptionType"> 記錄所有直接拋出的例外情況。<summary> 統一使用多行格式,不以字數判斷:
/// <summary>
/// 取得指定使用者的訂單清單。
/// </summary>
/// <param name="userId">使用者識別碼。</param>
/// <returns>該使用者的訂單集合。</returns>
各標籤適用格式:
<summary> 固定使用多行,即使內容僅一句話。<param> 與 <returns> 原則上使用單行(內容通常簡短)。若單行含標籤後超過 120 字元,則展開為多行。<remarks>、<example> 固定使用多行。tools
產生或補齊 .gitattributes,統一行尾處理、二進位識別與 lock files 標記,保留既有自訂偏好。
development
產生或補齊前端 Lint 設定(Prettier + ESLint Flat Config),統一格式化與程式碼品質規則,保留既有自訂偏好。
testing
依據事實校閱報告修改技術文件:以事實層為不可違反的約束,由改檔者負責表達層的措辭與行文連貫。Use when the user asks to apply fact-check results to a document, or to edit a document based on a previously produced fact-check-report.md.
data-ai
多份資料檔整合流程。當需要將兩份以上的資料檔(如 JSON、CSV)合併、補齊闕漏欄位或去重成單一檔案時使用。以 dry-run、筆數核對與抽樣比對降低整合錯誤。