dotnet-agent-gotchas

Identify and correct common AI agent mistakes in .NET code.

1|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/rudironsoni/SharpClaw --skill dotnet-agent-gotchas-rudironsoni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-agent-gotchas
Source: https://github.com/rudironsoni/SharpClaw/tree/main/.github/skills/dotnet-agent-gotchas
Command: npx skills add https://github.com/rudironsoni/SharpClaw --skill dotnet-agent-gotchas-rudironsoni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps identify and correct frequent mistakes AI agents make when generating or modifying .NET code, preventing common bugs and improving code quality.

Core Features & Use Cases

  • Error Identification: Detects anti-patterns in async/await usage, NuGet package management, deprecated API calls, project structure, and more.
  • Corrective Examples: Provides side-by-side comparisons of anti-patterns and their corrected versions.
  • Use Case: An AI agent generates C# code that uses .Result to call an async method. This Skill flags the potential deadlock and shows the correct async/await pattern.

Quick Start

Use the dotnet-agent-gotchas skill to identify and correct common async/await misuse in C# code.

Frequently Asked Questions about dotnet-agent-gotchas

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to prevent AI agents from writing bad .NET code patterns?

The best way to prevent bad .NET code patterns is using this skill to identify and correct frequent mistakes AI agents make. It provides anti-pattern and corrected code examples for various .NET development scenarios to improve code quality.

What are common .NET async/await mistakes in AI generated C# code?

Common .NET async/await mistakes include using `.Result` or `.Wait()` which cause deadlocks. The skill identifies these anti-patterns and provides corrected `async`/`await` code examples to prevent common bugs in C#.

How do I fix deprecated API usage and DI registration issues in .NET?

To fix deprecated API usage and DI registration issues in .NET, this skill identifies incorrect patterns and provides side-by-side comparisons of anti-patterns alongside their corrected versions to ensure proper dependency injection setup.

Can this skill detect NuGet package management errors in C# projects?

Yes, it detects NuGet package management errors alongside project structure anti-patterns. It identifies frequent mistakes AI agents make when generating or modifying .NET code to improve overall code quality.

Does this skill handle nullable reference type annotations for AI generated C# code?

Yes, it handles nullable reference type annotations. It identifies and corrects frequent mistakes AI agents make when generating or modifying .NET code, including fixing nullable reference types, async misuse, and deprecated API calls.

What is the best way to prevent AI agents from writing bad .NET code patterns?

The best way to prevent bad .NET code patterns is using this skill to identify and correct frequent mistakes AI agents make. It provides anti-pattern and corrected code examples for various .NET development scenarios to improve code quality.