Skip to content
Back to skills

Csharp Dotnet Professional Usage

ASecurity

`analysis-agent`/`task-agent`/`review-agent`: use for C# async, resource, type, DI, trimming/AOT, loading, interop, UI, or deployment decisions.

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
devopsc#

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add machenjie/rd-skills --skill csharp-dotnet-professional-usage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Csharp Dotnet Professional Usage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Csharp Dotnet Professional Usage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/machenjie-csharp-dotnet-professional-usage/badge)](https://www.skillsdirectory.com/skills/machenjie-csharp-dotnet-professional-usage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: csharp-dotnet-professional-usage
description: "`analysis-agent`/`task-agent`/`review-agent`: use for C# async, resource, type, DI, trimming/AOT, loading, interop, UI, or deployment decisions."
---

# csharp-dotnet-professional-usage

## Registry Trigger

**Use when**

- C# or .NET source changes async, resource, type, DI, runtime, interop, UI, publish, or deployment behavior.

**Do not use when**

- C# is incidental, or only Windows identity, signing, manifest, capability, or packaging metadata changes.

## Skill Role

Own C#/.NET language and runtime semantics; exclude Windows policy and generic concerns.

## High-Value Rules

- Select `async-resource-and-iterator-contracts` for active async, cancellation, resource, iterator/LINQ, null/type, or DI decisions.
- Select `runtime-deployment-and-interop-contracts` for active trim/AOT, loading, native/COM, UI, RID, publish, or deployment decisions.
- Bind decisions to current compiler, runtime, target, host, caller, and owner evidence.

## Anti-Patterns

- Compilation substituted for runtime, ownership, ABI, or deployment evidence.

## Stop Conditions

- Stop on unknown controlling version or boundary.
- Route Windows policy and generic risks to their owners.

## Output Contract

- C#/.NET decision: caller/owner paths; async, cancellation, and resource behavior; type, enumeration, and DI contracts; runtime, publish, interop, and UI behavior; invalid and teardown outcomes; evidence limits and residual risk.

## Targeted References

| Path | Type | Load when | Do not load when | Required by | Required output |
|---|---|---|---|---|---|
| [async resource and iterator contracts](references/async-resource-and-iterator-contracts.md) | targeted | Async/cancellation disposal iterator/LINQ nullable value/reference or DI lifetime changes | These language execution and ownership boundaries remain unchanged | task-agent, review-agent, analysis-agent | decision-record, residual-risk |
| [runtime deployment and interop contracts](references/runtime-deployment-and-interop-contracts.md) | targeted | Trimming/AOT assembly loading native/COM interop UI dispatch target RID or publish mode changes | Runtime reachability loading ABI affinity and deployment remain unchanged | task-agent, review-agent, analysis-agent | selected-approach, proof-limit, residual-risk |

Files in this skill

  • SKILL.md4.1 KB
  • references/async-resource-and-iterator-contracts.md3.7 KB
  • references/runtime-deployment-and-interop-contracts.md3.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…