csharp-pro — скилл для Claude Code: что делает и как установить
Скилл csharp-pro для Claude Code, Codex и Cursor. Направляет агента при написании кода на современном C#, рефакторинге и профилировании приложений на .NET.
MIT 136 установок ★ 2 070 обновлён 2026-11-07
npx skills add rmyndharis/antigravity-skills --skill csharp-pro -a claude-codeЧто делает csharp-pro
Инструкция задаёт стандарты разработки под экосистему .NET: применение records, pattern matching, nullable-ссылок, оптимизацию через Span и работу с асинхронным кодом через TPL без блокирующих вызовов.
В стек входят ASP.NET Core, Entity Framework, Blazor, а для проверки качества используются xUnit, NUnit, Moq и FluentAssertions. При замерах быстродействия агент опирается на BenchmarkDotNet.
Скилл требует документирования кода через XML и настройки правил стиля через EditorConfig.
Какие задачи решает
- переписать устаревший код под современные фичи C# вроде records и pattern matching
- оптимизировать потребление памяти с помощью Span, Memory и типов значений
- настроить бенчмарки на базе BenchmarkDotNet для критичных участков
- составить модульные тесты на xUnit или NUnit с моками через Moq
Примеры запросов агенту
- Перепиши этот сервис на C# с использованием records и сопоставления шаблонов
- Оптимизируй обработку массива байтов через Span<T> и избавься от лишних аллокаций
- Напиши тесты на xUnit с использованием FluentAssertions и Moq для обработчика заказов
Как установить csharp-pro
1Через Skills CLI (Vercel)
npx skills add rmyndharis/antigravity-skills --skill csharp-pro -a claude-code2Вручную: положить файлы
~/.claude/skills/csharp-pro/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/csharp-pro/
1Через Skills CLI (Vercel)
npx skills add rmyndharis/antigravity-skills --skill csharp-pro -a codex2Вручную: положить файлы
.agents/skills/csharp-pro/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add rmyndharis/antigravity-skills --skill csharp-pro -a cursor2Вручную: положить файлы
.cursor/skills/csharp-pro/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install rmyndharis/antigravity-skills skills/csharp-pro2Вручную: положить файлы
.github/skills/csharp-pro/SKILL.md1Через Skills CLI (Vercel)
npx skills add rmyndharis/antigravity-skills --skill csharp-pro -a gemini-cli2Командой платформы
gemini skills install https://github.com/rmyndharis/antigravity-skills --path skills/csharp-proВручную: положить файлы
.devin/skills/csharp-pro/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add rmyndharis/antigravity-skills --skill csharp-pro -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о csharp-pro
Как установить csharp-pro в Claude Code?
Выполните в терминале команду npx skills add rmyndharis/antigravity-skills --skill csharp-pro -a claude-code. Файл инструкции сохранится по пути ~/.claude/skills/csharp-pro/SKILL.md.
Что делает скилл csharp-pro?
Задаёт строгие правила проектирования на C#: следование принципам SOLID, безопасную асинхронность, бенчмаркинг и генерацию XML-документации.
Какие тестовые фреймворки поддерживает скилл?
В инструкции прописаны xUnit и NUnit вместе с библиотеками Moq и FluentAssertions.
Исходный текст
SKILL.md · MIT
--- name: csharp-pro description: Write modern C# code with advanced features like records, pattern matching, and async/await. Optimizes .NET applications, implements enterprise patterns, and ensures comprehensive testing. Use for C# refactoring, performance optimization, or complex .NET solutions. metadata: model: inherit --- ## Use this skill when - Working on csharp pro tasks or workflows - Needing guidance, best practices, or checklists for csharp pro ## Do not use this skill when - The task is unrelated to csharp pro - You need a different domain or tool outside this scope ## Instructions - Clarify goals, constraints, and required inputs. - Apply relevant best practices and validate outcomes. - Provide actionable steps and verification. You are a C# expert specializing in modern .NET development and enterprise-grade applications. ## Focus Areas - Modern C# features (records, pattern matching, nullable reference types) - .NET ecosystem and frameworks (ASP.NET Core, Entity Framework, Blazor) - SOLID principles and design patterns in C# - Performance optimization and memory management - Async/await and concurrent programming with TPL - Comprehensive testing (xUnit, NUnit, Moq, FluentAssertions) - Enterprise patterns and microservices architecture ## Approach 1. Leverage modern C# features for clean, expressive code 2. Follow SOLID principles and favor composition over inheritance 3. Use nullable reference types and comprehensive error handling 4. Optimize for performance with span, memory, and value types 5. Implement proper async patterns without blocking 6. Maintain high test coverage with meaningful unit tests ## Output - Clean C# code with modern language features - Comprehensive unit tests with proper mocking - Performance benchmarks using BenchmarkDotNet - Async/await implementations with proper exception handling - NuGet package configuration and dependency management - Code analysis and style configuration (EditorConfig, analyzers) - Enterprise architecture patterns when applicable Follow .NET coding standards and include comprehensive XML documentation.
© rmyndharis · MIT · rmyndharis/antigravity-skills