

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
123456# Instruction File Format Guide78This document describes the format and guidelines for creating custom instruction files for GitHub Copilot in the PowerShell repository.910## File Naming Convention1112All instruction files must use the `.instructions.md` suffix:13- ✅ Correct: `build-checkout-prerequisites.instructions.md`14- ✅ Correct: `start-psbuild-basics.instructions.md`15- ❌ Incorrect: `build-guide.md`16- ❌ Incorrect: `instructions.md`1718## Required Frontmatter1920Every instruction file must start with YAML frontmatter containing an `applyTo` section:2122```yaml23---24applyTo:25 - "path/to/files/**/*.ext"26 - "specific-file.ext"27---28```2930### applyTo Patterns3132Specify which files or directories these instructions apply to:3334**For workflow files:**35```yaml36applyTo:37 - ".github/**/*.yml"38 - ".github/**/*.yaml"39```4041**For build scripts:**42```yaml43applyTo:44 - "build.psm1"45 - "tools/ci.psm1"46```4748**For multiple contexts:**49```yaml50applyTo:51 - "build.psm1"52 - "tools/**/*.psm1"53 - ".github/**/*.yml"54```5556## Content Structure5758### 1. Clear Title5960Use a descriptive H1 heading after the frontmatter:6162```markdown63# Build Configuration Guide64```6566### 2. Purpose or Overview6768Start with a brief explanation of what the instructions cover:6970```markdown71## Purpose7273This guide explains how to configure PowerShell builds for different scenarios.74```7576### 3. Actionable Content7778Provide clear, actionable guidance:7980**✅ Good - Specific and actionable:**81```markdown82## Default Usage8384Use `Start-PSBuild` with no parameters for testing:8586```powershell87Import-Module ./tools/ci.psm188Start-PSBuild89```90```9192**❌ Bad - Vague and unclear:**93```markdown94## Usage9596You can use Start-PSBuild to build stuff.97```9899### 4. Code Examples100101Include working code examples with proper syntax highlighting:102103```markdown104```yaml105- name: Build PowerShell106 shell: pwsh107 run: |108 Import-Module ./tools/ci.psm1109 Start-PSBuild110```111```112113### 5. Context and Rationale114115Explain why things are done a certain way:116117```markdown118**Why fetch-depth: 1000?**119- The build system needs Git history for version calculation120- Shallow clones would break versioning logic121```122123## Best Practices124125### Be Concise126127- Focus on essential information128- Remove redundant explanations129- Use bullet points for lists130131### Be Specific132133- Provide exact commands and parameters134- Include file paths and line numbers when relevant135- Show concrete examples, not abstract concepts136137### Avoid Duplication138139- Don't repeat information from other instruction files140- Reference other files when appropriate141- Keep each file focused on one topic142143### Use Proper Formatting144145**Headers:**146- Use H1 (`#`) for the main title147- Use H2 (`##`) for major sections148- Use H3 (`###`) for subsections149150**Code blocks:**151- Always specify the language: ` ```yaml `, ` ```powershell `, ` ```bash `152- Keep examples short and focused153- Test examples before including them154155**Lists:**156- Use `-` for unordered lists157- Use `1.` for ordered lists158- Keep list items concise159160## Example Structure161162```markdown163---164applyTo:165 - "relevant/files/**/*.ext"166---167168# Title of Instructions169170Brief description of what these instructions cover.171172## Section 1173174Content with examples.175176```language177code example178```179180## Section 2181182More specific guidance.183184### Subsection185186Detailed information when needed.187188## Best Practices189190- Actionable tip 1191- Actionable tip 2192```193194## Maintaining Instructions195196### When to Create a New File197198Create a new instruction file when:199- Covering a distinct topic not addressed elsewhere200- The content is substantial enough to warrant its own file201- The `applyTo` scope is different from existing files202203### When to Update an Existing File204205Update an existing file when:206- Information is outdated207- New best practices emerge208- Examples need correction209210### When to Merge or Delete211212Merge or delete files when:213- Content is duplicated across multiple files214- A file is too small to be useful standalone215- Information is no longer relevant216217## Reference218219For more details, see:220- [GitHub Copilot Custom Instructions Documentation](https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions)221222```
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| PowerShell/PowerShell.github/instructions/build-and-packaging-steps.instructions.md · 55k | Copilot instructions | buildagent-behaviour | 58/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/build-checkout-prerequisites.instructions.md · 55k | Copilot instructions | setupbuildstylearch+1 | 81/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/code-review-branch-strategy.instructions.md · 55k | Copilot instructions | lint-formatstyletypesgit+1 | 62/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/log-grouping-guidelines.instructions.md · 55k | Copilot instructions | buildtestdo-not | 77/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/onebranch-condition-syntax.instructions.md · 55k | Copilot instructions | buildstylearchdeployment+1 | 73/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/onebranch-restore-phase-pattern.instructions.md · 55k | Copilot instructions | arch | 54/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/onebranch-signing-configuration.instructions.md · 55k | Copilot instructions | buildstyledeployment | 62/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/powershell-module-organization.instructions.md · 55k | Copilot instructions | buildteststylearch+2 | 69/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/powershell-parameter-naming.instructions.md · 55k | Copilot instructions | styledo-not | 65/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/publishing-pester-result.instructions.md · 55k | Copilot instructions | testlint-formatstylearch+3 | 69/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/script-module-file-format.instructions.md · 55k | Copilot instructions | lint-format | 54/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/start-native-execution.instructions.md · 55k | Copilot instructions | buildstylearchgit+1 | 86/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/start-psbuild-basics.instructions.md · 55k | Copilot instructions | buildtesting-strategydeploymentagent-behaviour | 54/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/troubleshooting-builds.instructions.md · 55k | Copilot instructions | buildgitdeployment | 54/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/build-configuration-guide.instructions.md · 55k | Copilot instructions | buildteststyletesting-strategy+2 | 74/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/pester-set-itresult-pattern.instructions.md · 55k | Copilot instructions | setupstylearch | 62/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/powershell-automatic-variables.instructions.md · 55k | Copilot instructions | stylearchgitdeployment+1 | 69/100 | 14 days ago | |
| PowerShell/PowerShell.github/instructions/pester-test-status-and-working-meaning.instructions.md · 55k | Copilot instructions | teststyle | 54/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| pytorch/pytorch.github/copilot-instructions.md · 102k | Copilot instructions | setupbuildteststyle+5 | 100/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 14 days ago | |
| dotnet/roslyn.github/instructions/Compiler.instructions.md · 21k | Copilot instructions | buildteststylearch+3 | 99/100 | 7 days ago | |
| hiyouga/LlamaFactory.github/copilot-instructions.md · 74k | Copilot instructions | setupbuildtestlint-format+5 | 97/100 | 13 days ago | |
| rtk-ai/rtk.github/copilot-instructions.md · 75k | Copilot instructions | buildtestlint-formatstyle+2 | 97/100 | 14 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 14 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 7 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/powershell-powershell-github-instructions-instruction-file-format-instructions)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.