Csharp Type Design Performance

🌐Community
by foxminchan · vlatest · Repository

Helps with design, performance optimization as part of developing backend services and APIs workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add csharp-type-design-performance npx -- -y @trustedskills/csharp-type-design-performance
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "csharp-type-design-performance": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/csharp-type-design-performance"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables AI agents to design and implement robust, performant C# code through effective type design. It focuses on leveraging generics, records, discriminated unions, and other advanced features to create maintainable and efficient solutions. The skill allows for the creation of specialized data structures and algorithms optimized for specific use cases while adhering to best practices in C# development.

When to use it

  • Building high-performance APIs: Optimize API endpoints by designing efficient data transfer objects (DTOs) and internal representations using advanced type features.
  • Creating domain models: Develop complex domain models with clear boundaries and relationships, leveraging discriminated unions for representing different states or behaviors.
  • Implementing custom collection types: Design specialized collections tailored to specific performance requirements, utilizing generics for type safety and flexibility.
  • Refactoring legacy code: Improve the structure and maintainability of existing C# codebases by applying modern type design principles.

Key capabilities

  • Generics implementation
  • Record creation and usage
  • Discriminated union design
  • Performance optimization through type selection
  • C# best practices adherence

Example prompts

  • "Design a record to represent an order with fields for customer ID, items, and total amount."
  • "Create a discriminated union representing different payment methods (credit card, PayPal, bank transfer)."
  • "Optimize this C# code snippet by using generics to avoid boxing/unboxing."

Tips & gotchas

This skill requires familiarity with advanced C# concepts. Incorrect usage of these features can lead to increased complexity and reduced performance if not applied thoughtfully.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
foxminchan
Installs
7

🌐 Community

Passed automated security scans.