AgentStack
SKILL verified MIT Self-run

Writing Csharp

skill-alexei-led-cc-thingz-writing-csharp · by alexei-led

Idiomatic C# /.NET development. Use when writing C# code, changing `.csproj`

No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-alexei-led-cc-thingz-writing-csharp

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Writing Csharp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

C# /.NET Development

Use only for C# and .NET code. Follow the project's SDK, target frameworks, nullable settings, analyzer config, test stack, and local conventions.

Read First

Read [principles.md](references/principles.md) before writing, changing, or reviewing C# code. Read conditional references only when the change touches that area.

Conditional References

  • [patterns.md](references/patterns.md) — solution layout, ASP.NET Core boundaries, DI, EF access, config, and worker patterns.
  • [testing.md](references/testing.md) — adding or reshaping xUnit, NUnit, or MSTest coverage; keep the local dotnet test loop fast.
  • [linting.md](references/linting.md) — changing dotnet format, analyzers, warning policy, or slow verification flow.
  • [cli.md](references/cli.md) — writing or changing .NET CLIs.

Project Baseline

  • Inspect the nearest *.csproj, Directory.Build.props, global.json, solution file, CI, and nearby code before using SDK- or framework-specific APIs.
  • Keep nullable reference types enabled. Fix the warning or model, not the warning level.
  • Prefer the BCL and existing NuGet packages before adding a dependency.
  • Use the existing app style: ASP.NET Core controllers vs minimal APIs, records vs classes, MediatR or no mediator, EF or raw SQL, and the configured test framework.

Comments and XML Docs

  • Use XML documentation comments for public APIs when the project emits API docs or enforces CS1591.
  • Summarize contracts, invariants, edge cases, and effects. Do not restate member names or signatures.
  • Use // for brief implementation notes; avoid long /* */ explanations.
  • Keep comments short. Move longer rationale to docs, issue links, or design notes.
  • Do not comment obvious code.
  • Keep tests readable without comments; add one only for unobvious fixtures, timing, concurrency, external services, or regression context.

Verification

Run focused dotnet checks while editing, then the project-configured build, tests, analyzers, and formatting checks before final output. Prefer the narrowest useful project or solution target for the hot loop, then the broader configured command before final output.

If a check is unavailable, state that and run the closest configured gate. If a check fails, quote the failure, diagnose the cause, fix one issue, and rerun the relevant check.

Failure Cases

  • No clear .NET root: locate the nearest *.csproj or containing *.sln before choosing files or commands.
  • Unknown SDK or language level: inspect TargetFramework, TargetFrameworks, LangVersion, global.json, CI, and lockfiles before using newer APIs or syntax.
  • New package requested: confirm the BCL or existing packages cannot meet the requirement.
  • Broad or risky edit: state the risk and ask before acting. Do not run destructive commands.

Final Response

Include:

  • changed files
  • checks run and results
  • checks skipped with reasons
  • remaining risks or follow-ups

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.