HVE Core - Coding Standards
Language-specific coding instructions and pre-PR code review agents for bash, Bicep, C#, PowerShell, Python, Rust, and Terraform projects
Enforce language-specific coding conventions and best practices across your projects, with pre-PR code review agents for catching functional defects early. This collection provides instructions for bash, Bicep, C#, PowerShell, Python, Rust, and Terraform that are automatically applied based on file patterns, plus agents that review branch diffs before opening pull requests.
This collection includes:
- Code Review Functional — Pre-PR branch diff reviewer for functional correctness, error handling, edge cases, and testing gaps
- Code Review Standards — Skills-based code reviewer that enforces project-defined coding standards via dynamic skill loading
- Code Review Full — Orchestrates both functional and standards reviews in a single pass
Instructions for:
- Bash — Shell scripting conventions and best practices
- Bicep — Infrastructure as code implementation standards
- C# — Code and test conventions including nullable reference types, async patterns, and xUnit testing
- PowerShell — Script and module conventions including comment-based help, CmdletBinding, PSScriptAnalyzer compliance, and copyright headers
- Python — Scripting implementation with type hints, docstrings, uv project management, and pytest testing
- Rust — Rust development conventions targeting the 2021 edition
- Terraform — Infrastructure as code with provider configuration and module structure
Included Artifacts
Chat Agents
| Name |
Description |
| code-review-full |
Orchestrator that runs functional and standards code reviews via subagents and produces a merged report |
| code-review-functional |
Pre-PR branch diff reviewer for functional correctness, error handling, edge cases, and testing gaps |
| code-review-standards |
Skills-based code reviewer for local changes and PRs - applies project-defined coding standards via dynamic skill loading |
Prompts
| Name |
Description |
| code-review-full |
Run both functional and standards code reviews on the current branch in a single pass |
| code-review-functional |
Pre-PR branch diff review for functional correctness, error handling, edge cases, and testing gaps |
Instructions
| Name |
Description |
| coding-standards/bash/bash |
Instructions for bash script implementation |
| coding-standards/bicep/bicep |
Instructions for Bicep infrastructure as code implementation |
| coding-standards/code-review/diff-computation |
Shared diff computation protocol for code review agents - branch detection, scope locking, large diff handling, and non-source artifact filtering |
| coding-standards/code-review/review-artifacts |
Shared review artifact persistence protocol for code review agents - folder structure, metadata schema, verdict normalization, and writing rules |
| coding-standards/csharp/csharp |
Required instructions for C# (CSharp) research, planning, implementation, editing, or creating |
| coding-standards/csharp/csharp-tests |
Required instructions for C# (CSharp) test code research, planning, implementation, editing, or creating |
| coding-standards/powershell/pester |
Instructions for Pester testing conventions |
| coding-standards/powershell/powershell |
Instructions for PowerShell scripting implementation |
| coding-standards/python-script |
Instructions for Python scripting implementation |
| coding-standards/python-tests |
Required instructions for Python test code research, planning, implementation, editing, or creating |
| coding-standards/rust/rust |
Required instructions for Rust research, planning, implementation, editing, or creating |
| coding-standards/rust/rust-tests |
Required instructions for Rust test code research, planning, implementation, editing, or creating |
| coding-standards/terraform/terraform |
Instructions for Terraform infrastructure as code implementation |
| coding-standards/uv-projects |
Create and manage Python virtual environments using uv commands |
| shared/hve-core-location |
Important: hve-core is the repository containing this instruction file; Guidance: if a referenced prompt, instructions, agent, or script is missing in the current directory, fall back to this hve-core location by walking up this file's directory tree. |
Skills
| Name |
Description |
| python-foundational |
Foundational Python best practices, idioms, and code quality fundamentals |
Getting Started
After installing this extension, the chat agents are available in GitHub Copilot Chat:
- Use custom agents by selecting the custom agent from the agent picker drop-down list in Copilot Chat
- Apply prompts through the Copilot Chat interface
- Reference instructions: they are automatically applied based on file patterns
Post-Installation Setup
Some chat agents create workflow artifacts in your project directory. See the installation guide for recommended .gitignore configuration and other setup details.
Pre-release Channel
HVE Core offers two installation channels:
| Channel |
Description |
Maturity Levels |
| Stable |
Production-ready artifacts only |
stable |
| Pre-release |
Early access to new features and experimental artifacts |
stable, preview, experimental |
To install the pre-release version, select Install Pre-Release Version from the extension page in VS Code.
Full Edition
Looking for more agents covering additional domains? Check out the full HVE Core extension.
Requirements
- VS Code version 1.106.1 or higher
- GitHub Copilot extension
License
MIT License - see LICENSE for details
Support
For issues, questions, or contributions, visit the GitHub repository.
Brought to you by Microsoft ISE HVE Essentials
| |