csharp Cursor ruleA

csharp from jnpiyush/agentx is a Cursor rule: instructions the Cursor agent follows in that repo.

Install it, pinned
mdr add jnpiyush/agentx/.cursor/rules/csharp.mdc@git:20261010.87e53aa

Pins git:20261010.87e53aa in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
Cursor rule
Repository
jnpiyush/agentx
Path
.cursor/rules/csharp.mdc
Versions recorded
3
Latest version
git:20261010.87e53aa, committed Oct 10, 2026
First version recorded
Jun 26, 2026
Size
596 bytes
Repository stars
18
License
Apache-2.0

C# / .NET coding standards (Frontier).

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# C# / .NET (Frontier)

Canonical: `.github/instructions/csharp.instructions.md` and
`.github/skills/languages/csharp/SKILL.md` -- read through
`pwsh -NoProfile -File .frontier/runtime/frontier.ps1 cursor read <canonical-path>`.

- Nullable reference types enabled; async/await end to end (no `.Result`).
- Dependency injection; EF Core with parameterized queries only.
- XML docs on public APIs; xUnit tests; catch specific exceptions.
- Secrets via configuration/Key Vault, never hardcoded.

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add jnpiyush/agentx/.cursor/rules/csharp.mdc@sha256:fbbe3b486b855989

The line at the top of this page pins the label git:20261010.87e53aa, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_rfvzy6lyxzitctix.svg)](https://markdownregistry.com/a/art_rfvzy6lyxzitctix)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Jun 26, 2026 and Oct 10, 2026, about one every 53 days.

versioncommittedcommitsizeaudit
git:20261010.87e53aa latest2026-10-10 87e53aa 596 BA view · diff
git:20260915.f17c5052026-09-15 f17c505 523 BA view · diff
git:20260626.03a70632026-06-26 03a7063 519 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (596 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

jnpiyush/agentx · 18 stars · license Apache-2.0 · pushed 2026-11-01 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_rfvzy6lyxzitctix
GET https://markdownregistry.com/api/v1/resolve?ref=jnpiyush/agentx/.cursor/rules/csharp.mdc
GET https://markdownregistry.com/api/v1/blob/fbbe3b486b85598956e73a737dda4a3e6223f019bb1edbb365d2c50cde6dcae4

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: Cursor rules vs AGENTS.md · which agent file does what.

More from jnpiyush/agentx

000-frontier-core Cursor rule
jnpiyush/agentx · .cursor/rules/000-frontier-core.mdc · Frontier canonical contracts and workspace context for Cursor.
git:20261012.38fb931 · audit A · 18 stars
ai Cursor rule
jnpiyush/agentx · .cursor/rules/ai.mdc · AI / agent / LLM workflow standards (Frontier)
git:20261010.87e53aa · audit A · 18 stars
python Cursor rule
jnpiyush/agentx · .cursor/rules/python.mdc · Python coding standards (Frontier)
git:20261010.87e53aa · audit A · 18 stars
react Cursor rule
jnpiyush/agentx · .cursor/rules/react.mdc · React / TSX frontend standards (Frontier)
git:20261010.87e53aa · audit A · 18 stars
typescript Cursor rule
jnpiyush/agentx · .cursor/rules/typescript.mdc · TypeScript / Node backend standards (Frontier)
git:20261010.87e53aa · audit A · 18 stars
agent-memory-systems SKILL.md skill
jnpiyush/agentx · .github/skills/ai-systems/agent-memory-systems/SKILL.md · Design agent memory beyond a single context window: short-term (working / scratchpad), long-term (episodic, semantic…
v1.0.0 · audit A · 18 stars
agent-observability SKILL.md skill
jnpiyush/agentx · .github/skills/ai-systems/agent-observability/SKILL.md · Instrument LLM agents with tracing, metrics, and evaluation telemetry. Use when adding OpenTelemetry GenAI semantic…
v1.0.0 · audit A · 18 stars
ai-agent-development SKILL.md skill
jnpiyush/agentx · .github/skills/ai-systems/ai-agent-development/SKILL.md · Build production-ready AI agents with Microsoft Foundry and Agent Framework. Use when creating AI agents, selecting LLM…
git:20261010.87e53aa · audit A · 18 stars
ai-evaluation SKILL.md skill
jnpiyush/agentx · .github/skills/ai-systems/ai-evaluation/SKILL.md · Use when evaluating AI quality, safety, completeness and cost with held-out tasks, executable graders, calibrated…
v1.1.0 · audit A · 18 stars
ai-safety-and-red-teaming SKILL.md skill
jnpiyush/agentx · .github/skills/ai-systems/ai-safety-and-red-teaming/SKILL.md · Defend LLM systems against prompt injection, jailbreaks, data exfiltration, and unsafe output. Covers input/output…
v1.0.0 · audit B · 18 stars
anthropic-claude SKILL.md skill
jnpiyush/agentx · .github/skills/ai-systems/anthropic-claude/SKILL.md · Implement production applications with Anthropic Claude models -- Messages API, tool use, prompt caching, adaptive…
v1.0.0 · audit A · 18 stars
azure-foundry SKILL.md skill
jnpiyush/agentx · .github/skills/ai-systems/azure-foundry/SKILL.md · Design and architect AI agents on Azure AI Foundry -- lifecycle planning, model selection strategy, evaluation…
git:20260915.f17c505 · audit A · 18 stars

Every file in jnpiyush/agentx

Other files named csharp

csharp SKILL.md skill
jnpiyush/agentx · .github/skills/languages/csharp/SKILL.md · Write production-ready C# and .NET code following modern best practices. Use when building .NET applications, writing…
v1.0.0 · audit A · 18 stars
csharp SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/engineering/cortex-dotnet/skills/csharp/SKILL.md · Apply these opinionated C# conventions whenever writing or reviewing C# 12 / .NET 8+ code: nullable enabled with…
git:20261013.ecfffa1 · audit A · 18 stars
csharp SKILL.md skill
alexander-danilenko/cortex-ai-skills · plugins/engineering/cortex-dotnet/skills/csharp/SKILL.md · Apply these opinionated C# conventions whenever writing or reviewing C# 12 / .NET 8+ code: nullable enabled with…
git:20261013.ecfffa1 · audit A · 17 stars

Browse by kind, by grade A, or by owner.