build-csharp-project

build-csharp-project is a skill for Claude Code from gaelic-ghost/socket. It costs 37 tokens per session (969 once invoked), scanned A, original, Apache-2.0.

A guide for building or changing C# projects on .NET with nullable-aware code, clear types, asynchronous operations, analyzer rules, and focused tests.

In plain words
What is it for?
Use it to modify C# libraries, applications, APIs, hosts, tests, or code shared with other .NET projects.
Why use it?
It helps new code fit the existing C# project and avoids common problems around null values, async behavior, style checks, and untested changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Codex.

Part of the dotnet-skills plugin — 12 skills shipped together

Good fit Use it to modify C# libraries, applications, APIs, hosts, tests, or code shared with other .NET projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gaelic-ghost/socket/build-csharp-project
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gaelic-ghost/socket --skill build-csharp-project
Clone the repo
git clone --depth 1 https://github.com/gaelic-ghost/socket

Made for: Claude Code.

Or install dotnet-skills, the plugin that ships this one along with the rest of its 12 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-csharp-project

README.md
[![agentmods](https://agentmods.dev/badge/skills/gaelic-ghost/socket/build-csharp-project/github.svg)](https://agentmods.dev/skills/gaelic-ghost/socket/build-csharp-project)
Your own site
<a href="https://agentmods.dev/skills/gaelic-ghost/socket/build-csharp-project"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/build-csharp-project/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-csharp-project

Your own site · 80×15
<a href="https://agentmods.dev/skills/gaelic-ghost/socket/build-csharp-project"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/build-csharp-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 969 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00969
Opus 5.5 $0.00015 $0.00388
Sonnet 5.5 $0.00007 $0.00194
Haiku 4.5 $0.00004 $0.00097

Measured 1mo ago against content hash abad2529ad71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-csharp-project scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dotnet-skills/skills/build-csharp-project/SKILL.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build C# Project

Purpose

Implement or modify a C# .NET project in C#'s own shape while keeping F# as an equal peer elsewhere in the plugin.

The practical goal is clear nullable-aware APIs, focused types, useful async boundaries, tests that cover changed behavior, and validation through the repository's .NET commands.

When To Use

  • Use this skill when the chosen language is C#.
  • Use this skill when an existing .csproj needs new source, tests, or package-facing API.
  • Use this skill when a mixed solution has a C# host, app, API, or interop surface.
  • Use this skill when the user asks for C# implementation specifically.

Source Check

Use repo-local .NET files, checked-out dependency sources, Dash MCP or Dash HTTP for installed .NET docsets, and then official Microsoft documentation when Dash/local coverage is missing or stale:

Inspect the repository before editing:

rg --files -g '*.cs' -g '*.csproj' -g '*.sln' -g '*.slnx' -g 'global.json' -g '.editorconfig'

Implementation Workflow

  1. Read the existing project file and analyzer/style settings.
  2. Check nullable reference type behavior.
  3. Identify the public API or app behavior being changed.
  4. Use records for value-like data when that matches the domain.
  5. Use classes for identity, behavior, mutable state, or framework integration.
  6. Use interfaces only when there is a real alternate implementation, test boundary, or public contract.
  7. Keep async APIs async only when they perform asynchronous work or match an existing contract.
  8. Add or update tests around the behavior changed.
  9. Run the narrowest useful validation command.

Nullable And Analyzer Behavior

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 108 lines · 37 tokens per session scan A abad2529ad71

Subscribe to this mod's changes

build-csharp-project is a skill published in the GitHub repository gaelic-ghost/socket (7 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 37 tokens to every session and 969 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

completion-verification

Verifies that work is actually complete before it is claimed to be — running the checks, reading the output, and confirming the original request was satisfied rather than approximated. Use this before saying something is done, fixed, or passing; before committing or opening a pull request; and whenever a claim of…

cbrock84/headcount · 73 tokens

r-testthat

Best practices for writing R package tests with testthat version 3+. Use this skill when writing or organizing tests for an R package or when improving existing tests that use testthat. It covers test structure and expectations, self-sufficient test design, proper cleanup with withr, fixtures, mocking external…

posit-dev/skills · 77 tokens

craft-pest

Testing Craft CMS 5 plugins and modules with Pest — test isolation, database safety, and the markhuot/craft-pest-core harness. ALWAYS load when writing, running, fixing, or reviewing tests for a Craft plugin or module, and whenever a suite touches a real Craft install. Covers why rollback is opt-in, tests/Pest.php +…

michtio/craftcms-claude-skills · 175 tokens

dotnet-test

This skill should be used when running .NET tests selectively with a build-first, test-targeted workflow. Use it for running tests with xUnit focus.

NikiforovAll/claude-code-rules · 35 tokens

tia-csharp-common

Internal reference skill — do NOT load directly from user queries.

Czarnak/totally-integrated-claude · 17 tokens

addin-operations

TIA Portal Add-In development in Visual Studio Code: creating Add-In C# projects, adding Add-In templates, compiling and debugging Add-Ins, converting Add-Ins from older TIA Portal versions and configuring Add-In project parameters.

Czarnak/totally-integrated-claude · 50 tokens