據 AlphaMoat 統計,截至 2026-09,C# 累計下載 2,966 次、獲 4 個星標,在全部 5,078 個 AI 技能中排名第 3,752 位,在「開發程式設計」分類(577 個)中排名第 476 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 72 | 2427 | 3 | - |
| SkillHub ↗ | 229 | 2966 | 4 | — |
各平台的計數口徑不同,統計時間不一致。
這份簡明參考總結 C# 中與空值、非同步死鎖、LINQ 延遲執行、閉包、集合修改和數值精度相關的常見問題,並給出規避建議。它適合作為提示和檢查清單,不能代替專案規範、安全要求或官方語言文件;生成的程式碼仍需按具體專案審查。
資料釋出於 2026-10-27
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 2966 | — | 4 |
| 2026-08 | 2457 | +10.4% | 4 |
| 2026-07 | 2225 | +16.1% | 4 |
| 2026-06 | 1917 | +10.8% | 4 |
| 2026-05 | 1730 | — | 4 |
| 2026-03 | 1262 | — | 3 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
name: C#
slug: csharp
version: 1.0.1
description: Write robust C# avoiding null traps, async deadlocks, and LINQ pitfalls.
metadata: {"clawdbot":{"emoji":"💜","requires":{"bins":["dotnet"]},"os":["linux","darwin","win32"]}}
---
## Quick Reference
| Topic | File | |-------|------| | Null reference, nullable types | `nulls.md` | | Async/await, deadlocks | `async.md` | | Deferred execution, closures | `linq.md` | | Value vs reference, boxing | `types.md` | | Iteration, equality | `collections.md` | | IDisposable, using, finalizers | `dispose.md` | ## Critical Rules - `?.` and `??` prevent NRE but `!` overrides warnings — still crashes if null - `.Result` or `.Wait()` on UI thread — deadlock, use `await` or `ConfigureAwait(false)` - LINQ is lazy — `query.Where(...)` doesn't execute until iteration - Multiple enumeration of IEnumerable — may re-query database, call `.ToList()` first - Closure captures variable, not value — loop variable in lambda captures last value - Struct in async method — copied, modifications lost after await - String comparison culture — `StringComparison.Ordinal` for code, `CurrentCulture` for UI - `GetHashCode()` must be stable — mutable fields break dictionary lookup - Modifying collection while iterating — throws, use `.ToList()` to iterate copy - `decimal` for money — `float`/`double` have precision loss - `readonly struct` prevents defensive copies — use for performance - `sealed` prevents inheritance — enables devirtualization optimization
用 gh 命令列工具檢視 GitHub 上的 PR 檢查、工作流執行與 API 查詢的技能。
聚合 16 個搜尋引擎、無需 API Key 的檢索技能。
用命令列直接列出、配置、授權並呼叫 MCP 服務與工具。
生成有效的 Mermaid 圖表,如流程圖、時序圖、思維導圖、ER 圖、使用者旅程等。
用受管 OAuth 訪問 YouTube Data API,檢索影片並管理頻道內容。
透過受管的 OAuth 連線訪問 GitHub REST API。
覆蓋規劃、實現、驗證與測試的編碼工作流技能。
整理 Docker 常用命令與容器工作流的技能。
將使用者明確糾正與自我檢視整理成分層記憶,並依使用情況升級或封存。
在保留公式、格式和活頁簿結構的前提下建立、檢查或編輯 Excel 檔案。
處理 Word 與 DOCX 文件的作業指南,著重維持樣式、編號與版面。
把資料庫、表格與匯出的原始資料變成可決策結論的資料分析技能。
協助編輯 PowerPoint 簡報,並在交付前檢查版面是否正常呈現。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。