microsoft/hve-core
Publicmirrored fromhttps://github.com/microsoft/hve-coreAvailable
collections/coding-standards.collection.md
47lines · modecode
| 1 | 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. |
| 2 | |
| 3 | <!-- BEGIN AUTO-GENERATED ARTIFACTS --> |
| 4 | |
| 5 | ### Chat Agents |
| 6 | |
| 7 | | Name | Description | |
| 8 | |----------------------------|---------------------------------------------------------------------------------------------------------------------------| |
| 9 | | **code-review-full** | Orchestrator that runs functional and standards code reviews via subagents and produces a merged report | |
| 10 | | **code-review-functional** | Pre-PR branch diff reviewer for functional correctness, error handling, edge cases, and testing gaps | |
| 11 | | **code-review-standards** | Skills-based code reviewer for local changes and PRs - applies project-defined coding standards via dynamic skill loading | |
| 12 | |
| 13 | ### Prompts |
| 14 | |
| 15 | | Name | Description | |
| 16 | |----------------------------|----------------------------------------------------------------------------------------------------| |
| 17 | | **code-review-full** | Run both functional and standards code reviews on the current branch in a single pass | |
| 18 | | **code-review-functional** | Pre-PR branch diff review for functional correctness, error handling, edge cases, and testing gaps | |
| 19 | |
| 20 | ### Instructions |
| 21 | |
| 22 | | Name | Description | |
| 23 | |---------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 24 | | **coding-standards/bash/bash** | Instructions for bash script implementation | |
| 25 | | **coding-standards/bicep/bicep** | Instructions for Bicep infrastructure as code implementation | |
| 26 | | **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 | |
| 27 | | **coding-standards/code-review/review-artifacts** | Shared review artifact persistence protocol for code review agents - folder structure, metadata schema, verdict normalization, and writing rules | |
| 28 | | **coding-standards/csharp/csharp** | Required instructions for C# (CSharp) research, planning, implementation, editing, or creating | |
| 29 | | **coding-standards/csharp/csharp-tests** | Required instructions for C# (CSharp) test code research, planning, implementation, editing, or creating | |
| 30 | | **coding-standards/powershell/pester** | Instructions for Pester testing conventions | |
| 31 | | **coding-standards/powershell/powershell** | Instructions for PowerShell scripting implementation | |
| 32 | | **coding-standards/python-script** | Instructions for Python scripting implementation | |
| 33 | | **coding-standards/python-tests** | Required instructions for Python test code research, planning, implementation, editing, or creating | |
| 34 | | **coding-standards/rust/rust** | Required instructions for Rust research, planning, implementation, editing, or creating | |
| 35 | | **coding-standards/rust/rust-tests** | Required instructions for Rust test code research, planning, implementation, editing, or creating | |
| 36 | | **coding-standards/terraform/terraform** | Instructions for Terraform infrastructure as code implementation | |
| 37 | | **coding-standards/uv-projects** | Create and manage Python virtual environments using uv commands | |
| 38 | | **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. | |
| 39 | |
| 40 | ### Skills |
| 41 | |
| 42 | | Name | Description | |
| 43 | |-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 44 | | **pr-reference** | Generates PR reference XML containing commit history and unified diffs between branches with extension and path filtering. Includes utilities to list changed files by type and read diff chunks. Use when creating pull request descriptions, preparing code reviews, analyzing branch changes, discovering work items from diffs, or generating structured diff summaries. | |
| 45 | | **python-foundational** | Foundational Python best practices, idioms, and code quality fundamentals | |
| 46 | |
| 47 | <!-- END AUTO-GENERATED ARTIFACTS --> |