<< All versions
Skill v1.0.0
currentTrusted Publisher100/100microsoft/datafactory.mcp/coder-datafactory-style
──Details
PublishedAugust 22, 2026 at 01:22 AM
Content Hashsha256:96b0970a71cd36aa...
Git SHA
──Files
Files (1 file, 2.2 KB)
SKILL.md2.2 KBactive
SKILL.md · 80 lines · 2.2 KB
version: "1.0.0" name: coder.datafactory-style description: "C# coding standards and conventions for DataFactory.MCP. Use when writing or reviewing C# code."
Coding Style — DataFactory.MCP
Project Settings
- Target: net10.0
- Nullable: enabled (project-wide)
- Implicit usings: enabled
- License: MIT
Conventions
Naming
| Element | Style | Example | |
|---|---|---|---|
| Classes | PascalCase | FabricGatewayService | |
| Interfaces | I prefix | IFabricGatewayService | |
| Methods | PascalCase | ListGatewaysAsync | |
| Parameters | camelCase | gatewayClusterId | |
| Private fields | _ prefix | _httpClient | |
| Constants | PascalCase | MaxRetryCount | |
| Async methods | Async suffix | GetGatewayAsync |
File Organization
- One primary class per file
- File name matches class name
- Tools in
Tools/, Services inServices/, Models inModels/ - Interfaces in
Abstractions/
Null Safety
- Nullable is ON — respect nullable annotations
- Use
?for nullable types,!only when provably non-null - Prefer pattern matching:
if (value is not null) - Never suppress
#pragma warning disablefor nullable without justification
Error Handling
- Catch specific exceptions, not
Exceptionbroadly - Translate API errors to meaningful MCP error responses
- Always check auth state before API calls
- Log errors with context (operation name, resource ID)
Async/Await
- All I/O operations must be async
- Use
ConfigureAwait(false)in library code (Core project) - Never use
.Resultor.Wait()— always await
Dependency Injection
- All services registered in DI container via extension methods in
Extensions/ - Constructor injection only
- Depend on interfaces (
Abstractions/), not concrete types
Key Patterns
Tool → Service → Model
Tool (MCP schema + validation) → Service (API call) → Model (data)
- Tools handle: parameter parsing, validation, MCP response formatting
- Services handle: HTTP calls, auth tokens, error translation
- Models handle: data shape (DTOs, no logic)
Configuration
- Feature flags control tool availability
- API versions managed in
Configuration/classes - Environment variables for auth settings