← 开源

A set of coding guidelines for C# up to v14, design principles, layout rules and Agent Skills for improving the overall quality of your code development.

TutorialsCoding with AIJavaScript
增长势头
+024 小时新增 Star0.0%
784
Star
266
Fork
+1
本周
25
贡献者
创建于 2014-08-10 · 更新于 2026-12-02 · 今日第 17601 名
主要开发者
README

Coding Guidelines for C# (up to v14)

See the landing page at https://www.csharpcodingguidelines.com

Use the guidelines as an agent skill

The csharp-guidelines skill makes AI coding agents apply these guidelines when they write, review or refactor C# code. This repository is a plugin marketplace for Claude Code and GitHub Copilot CLI.

Claude Code:

claude plugin install csharp-guidelines --marketplace dennisdoomen/CSharpGuidelines

GitHub Copilot CLI:

copilot plugin marketplace add dennisdoomen/CSharpGuidelines
copilot plugin install csharp-guidelines@csharp-guidelines

How to create the PDFs

From the root of the repo, run:

.\build.ps1        # Windows
./build.sh         # macOS / Linux

This compiles all guideline rules into two PDF files in the Artifacts folder:

  • CSharpCodingGuidelines.pdf — the full guidelines document
  • CSharpCodingGuidelinesCheatsheet.pdf — the two-page cheat sheet

Pandoc is downloaded automatically on first run. Google Chrome must be installed for PDF rendering.

How to preview the site locally

Run the following script from the root of the repo:

.\launch-website.ps1        # Windows
./build.sh LaunchWebsite    # macOS / Linux

This installs Ruby 3.3 (if not already present), runs bundle install, and starts the Jekyll development server at http://localhost:4000. The server monitors for changes when using the --incremental flag.

Prerequisites

Troubleshooting

排名相邻
同类项目

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载