ianphil-pi-lot-csharp-style-instructions.ocm.json json Copy{
"ocm": "1",
"id": "ianphil-pi-lot-csharp-style-instructions",
"kind": "skill",
"name": "csharp-style",
"description": "Apply repository C# style conventions.",
"publisher": "ianphil",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Apply repository C# style conventions."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/ianphil/pi-lot",
"path": ".github/instructions/csharp-style.instructions.md",
"ref": "077337c3d8fd0d7c92c6258dadb3c3ba741d16e7",
"url": "https://github.com/ianphil/pi-lot/blob/077337c3d8fd0d7c92c6258dadb3c3ba741d16e7/.github/instructions/csharp-style.instructions.md",
"key": "ianphil/pi-lot/.github/instructions/csharp-style.instructions.md"
},
"applies_to": "**/*.cs"
},
"instructions": "# C# Style\n\n- Target .NET 10 and C# latest with nullable enabled.\n- Prefer `record` types for simple DTOs.\n- Prefer `GeneratedRegex` over `new Regex()`.\n- Prefer `is null` and `is not null` over `== null` and `!= null`.\n- Prefer `nameof` over string literals for member references.\n- Add comments only when the code needs clarification; do not explain obvious\n mechanics.\n- Keep type safety. Avoid unnecessary casts, especially `as any`-style\n equivalents or broad object conversions.",
"cost": {
"context_tokens": 121
}
}