agentleFS
HMBSbigeHMBSbige/skills/skills/csharp-style/SKILL.md

csharp-style

Skill1 starsChanged 44 days agoMITView on GitHub

Use when writing, editing, reviewing, or refactoring C#/.NET code

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

C# Style

  • Span/Memory 代码中使用 .Slice() 而非 range 表达式
  • 语法尽量使用模式匹配和递归模式
  • 尽量不使用 nullable 抑制
  • 简单 null/空值校验优先使用直接 guard clause,避免为了模式匹配而让判断复杂化
  • 方法声明和调用的参数列表应保持单行,简短的泛型约束也与声明同行;仅在参数较多、表达式复杂或存在清晰语义分组,且单行明显影响可读性时才换行
  • 向量运算优先使用类型自带的运算符重载,而非 SIMD 专有方法

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.