

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# Copilot Instructions23This repository contains PowerShell scripts that sync Copilot resources from [github/awesome-copilot](https://github.com/github/awesome-copilot) to a local machine and distribute them to the right VS Code/Copilot locations.45## Script Workflow67Scripts are designed to be run in this order:89```text10configure.ps1 # Main entry point (chains all steps)11scripts/sync-awesome-copilot.ps1 # 1. Clone/pull github/awesome-copilot → ~/.awesome-copilot/12scripts/init-user.ps1 # 2. User-level resources → prompts\ and ~/.copilot/skills/13scripts/init-repo.ps1 # 3. Interactive per-repo setup → .github/14```1516**Resource scopes:**1718- **User-level** (all VS Code sessions, no .github/ needed): Agents + Instructions → `%APPDATA%\Code\User\prompts\`; Skills → `~/.copilot/skills/`19- **Per-repo** (committed to `.github/`): Agents, Instructions, Hooks, Workflows, Skills2021## Key Conventions2223### Error Handling2425All scripts use `$ErrorActionPreference = 'Stop'` so errors terminate rather than prompt. Use `try/catch` blocks for recoverable errors — do not rely on error preference for expected failure paths.2627### Logging2829Use the `Log` / `Write-Log` function (not `Write-Host` directly):3031```powershell32Log "Message here" # INFO (Cyan)33Log "Something wrong" 'WARN' # Yellow34Log "Done!" 'SUCCESS' # Green35Log "Failed" 'ERROR' # Red36```3738### Dry-Run Pattern3940Every destructive operation must be guarded by `$DryRun`:4142```powershell43if ($DryRun) { Log "[DryRun] Would do X"; return 'would-copy' }44# actual operation here45```4647### Change Detection4849Always use SHA256 hash comparison before copying — never overwrite blindly:5051```powershell52$srcHash = (Get-FileHash $Src -Algorithm SHA256).Hash53$dstHash = if (Test-Path $dest) { (Get-FileHash $dest -Algorithm SHA256).Hash } else { $null }54if ($srcHash -eq $dstHash) { return 'unchanged' }55```5657### Portable Paths5859Always use `$HOME`, `$env:APPDATA`, and `Join-Path` — never hardcode user paths:6061```powershell62# ✅63$cacheDir = Join-Path $HOME '.awesome-copilot'64# ❌65$cacheDir = 'C:\Users\Someone\.awesome-copilot'66```6768### Parameter Patterns6970- `-DryRun` / `-Plan` — preview without writing71- `-Skip*` switches (e.g. `-SkipAgents`, `-SkipHooks`) — granular opt-out72- Comma-separated strings for lists: `[string]$Categories = 'agents,hooks,instructions,skills,workflows'`73- Default paths always use `$HOME` or `$env:APPDATA`7475## External Dependencies7677- **`gh` (GitHub CLI)**: preferred tool for cloning/pulling `github/awesome-copilot`; handles authentication automatically via `gh auth login`. Falls back to `git` if `gh` is not available.78- **`Out-GridView`**: used in `init-repo.ps1` and `init-user.ps1` for interactive picking; automatically falls back to a numbered console menu if unavailable.7980## Local Cache Structure8182`sync-awesome-copilot.ps1` writes to `~/.awesome-copilot/` (a sparse git clone):8384```text85~/.awesome-copilot/86 .git/ git metadata (managed automatically)87 agents/ *.agent.md88 instructions/ *.instructions.md89 workflows/ *.md90 hooks/ <hook-name>/ (directories)91 skills/ <skill-name>/ (directories)92 manifest.json file inventory with hashes (written after each sync)93 status.txt human-readable summary of last sync run94```9596Sync logs are written to `scripts/logs/sync-YYYYMMDD-HHMMSS.log` (always relative to the script's own directory via `$PSScriptRoot`).9798## Contributing99100- Update `CHANGELOG.md` with every change under the appropriate version101- Test with `-DryRun` / `-Plan` before running live102- Run `sync-awesome-copilot.ps1 -Plan` to verify without writing files103- New parameters must follow the existing `[switch]$Skip*` / `[string]$Target` naming conventions104- See `CONTRIBUTING.md` for the full PR checklist105
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 14 days ago | |
| 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 | |
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 14 days ago | |
| dotnet/roslyn.github/instructions/Compiler.instructions.md · 21k | Copilot instructions | buildteststylearch+3 | 99/100 | 7 days ago | |
| rtk-ai/rtk.github/copilot-instructions.md · 75k | Copilot instructions | buildtestlint-formatstyle+2 | 97/100 | 14 days ago | |
| hiyouga/LlamaFactory.github/copilot-instructions.md · 74k | Copilot instructions | setupbuildtestlint-format+5 | 97/100 | 13 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 14 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/ctout-vscode-copilot-sync-github-copilot-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.