C#
Write robust C# avoiding null traps, async deadlocks, and LINQ pitfalls.
от clawic★ 23 звезды на GitHub
Установить C# в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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.Resultor.Wait()on UI thread — deadlock, useawaitorConfigureAwait(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.Ordinalfor code,CurrentCulturefor UI GetHashCode()must be stable — mutable fields break dictionary lookup- Modifying collection while iterating — throws, use
.ToList()to iterate copy decimalfor money —float/doublehave precision lossreadonly structprevents defensive copies — use for performancesealedprevents inheritance — enables devirtualization optimization
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- async.md
- collections.md
- dispose.md
- linq.md
- nulls.md
- types.md
FAQ
Что делает скилл C#?
Write robust C# avoiding null traps, async deadlocks, and LINQ pitfalls.
Как установить скилл C#?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл C# запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…