GitHub Copilot AI rules for .NET development best practices. Helps operations teams enforce coding standards and improve code quality. Integrates with GitHub Copilot in Visual Studio Code.
git clone https://github.com/NikiforovAll/github-copilot-rules.gitGitHub Copilot AI rules for .NET development best practices. Helps operations teams enforce coding standards and improve code quality. Integrates with GitHub Copilot in Visual Studio Code.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/NikiforovAll/github-copilot-rulesCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Generate a set of 5 GitHub Copilot AI rules for [COMPANY] to enforce .NET development best practices in [INDUSTRY]. Include rules for code structure, naming conventions, and performance optimization.
## GitHub Copilot AI Rules for .NET Development Best Practices ### Rule 1: Code Structure - **Enforce Layered Architecture**: Ensure all projects follow a clear separation of concerns with distinct layers (Presentation, Business Logic, Data Access). - **Use Dependency Injection**: All dependencies should be injected via constructor injection. ### Rule 2: Naming Conventions - **Class Names**: Use PascalCase for class names (e.g., `CustomerService`). - **Method Names**: Use PascalCase for method names (e.g., `GetCustomerDetails`). ### Rule 3: Performance Optimization - **Avoid N+1 Queries**: Use eager loading or include related data in a single query. - **Use Async/Await**: Ensure all I/O operations are asynchronous. ### Rule 4: Error Handling - **Use Custom Exceptions**: Create specific exceptions for business logic errors. - **Log Errors**: All exceptions should be logged with relevant context. ### Rule 5: Security - **Input Validation**: Validate all inputs at the controller level. - **Use Parameterized Queries**: Avoid SQL injection by using parameterized queries.
Hey, what’s on your mind today?
Code hosting and collaboration platform for developers
Curated AI prompts for all major models
Simple data integration for modern teams
Customer feedback management made simple
Enterprise workflow automation and service management platform