Skip to content

Instantly share code, notes, and snippets.

@danmoseley
Last active February 23, 2026 21:02
Show Gist options
  • Select an option

  • Save danmoseley/a58146697d566e6124abfa651499f538 to your computer and use it in GitHub Desktop.

Select an option

Save danmoseley/a58146697d566e6124abfa651499f538 to your computer and use it in GitHub Desktop.
dotnet/runtime copilot-instructions.md

NEVER post comments to GitHub PRs or issues (via gh, API, or any other mechanism) without first showing the exact text to the user and getting explicit approval.

NEVER push to a remote without explicit approval. Prefer new commits over amending (exceptions: asked to amend, or minor fix to an unpushed broken commit). Never squash or force-push unless explicitly told.

When creating PR/issue comments or descriptions containing non-ASCII characters (em-dashes, μ, etc.), write the content to a temp file with the create tool and use --body-file to avoid UTF-8/codepage corruption on Windows. Use | entity for literal | inside markdown table cells. Avoid PowerShell expandable strings (@"..."@) for markdown with backticks; use literal here-strings (@'...'@).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment