agentleFS
MicrosoftKnown publishermicrosoft/WindowsAppSDK-Samples/.github/copilot-instructions.md

WindowsAppSDK-Samples

Copilot instructions1k starsChanged 13 months agoMITView on GitHub

Read scripts first; improve their headers instead of duplicating detail here.

Trending

Quiet since September.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 2 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/WindowsAppSDK-Samples repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/WindowsAppSDK-Samples

The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 24

Talked about on GitHub (24 times).

On GitHub · 24

19 more on GitHub

The file

We split this copilot-instructions.md into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read scripts first; improve their headers instead of duplicating detail here.

    line 3
  2. Very specific:

    Use only build.ps1 / build.cmd.

    line 6
  3. Very specific:

    Run UpdateVersions.ps1 only after reading it.

    line 9
  4. Distinctive:

    Never log secrets or absolute external paths.

    line 17
  5. Very specific:

    Always enforce repo analyzers: root .editorconfig plus any stylecop.json.

    line 20
  6. Very specific:

    Run a targeted build (e.g.

    line 30
  7. Distinctive:

    No new warnings/errors or large cosmetic churn.

    line 32
  8. Very specific:

    Before broad edits create DESIGN-<topic>.md:

    line 35
  9. Distinctive:

    Keep this file lean; source-of-truth for behavior lives in script headers.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

GitHub Copilot Instructions (WindowsAppSDK-Samples)

Read scripts first; improve their headers instead of duplicating detail here.

Build

Use only build.ps1 / build.cmd. Read build.ps1 before invoking. It auto: detects platform, picks solutions (current dir > selected sample > all), initializes VS DevShell, restores via local nuget, emits .binlog per solution. Do NOT hand-roll msbuild/nuget restore logic.

Versions

Run UpdateVersions.ps1 only after reading it. Get the WinAppSDK version string from: https://www.nuget.org/packages/Microsoft.WindowsAppSdk/ (stable/preview/servicing) and pass as -WinAppSDKVersion.

Coding Guidelines

  • Small, focused diffs; no mass reformatting; ensure SOLID principles.
  • Preserve APIs, encoding, line endings, relative paths.
  • PowerShell: approved verbs; each new script has Synopsis/Description/Parameters/Examples header.
  • C#/C++: follow existing style; lean headers; forward declare where practical; keep samples illustrative.
  • Minimal necessary comments; avoid noise. Centralize user strings for localization.
  • Never log secrets or absolute external paths.

Language style rules

  • Always enforce repo analyzers: root .editorconfig plus any stylecop.json.
  • C# code follows StyleCop.Analyzers and Microsoft.CodeAnalysis.NetAnalyzers.
  • C++ code honors .clang-format plus .clang-tidy (modernize/cppcoreguidelines/readability).
  • Markdown files wrap at 80 characters and use ATX headers with fenced code blocks that include language tags.
  • YAML files indent two spaces and add comments for complex settings while keeping keys clear.
  • PowerShell scripts use Verb-Noun names and prefer single-quoted literals while documenting parameters and satisfying PSScriptAnalyzer.

PR Guidance

  • One intent per PR. Update script README/header if behavior changes.
  • Provide summary: what / why / validation.
  • Run a targeted build (e.g. pwsh -File build.ps1 -Sample AppLifecycle).
  • For version bumps: inspect at least one changed project file.
  • No new warnings/errors or large cosmetic churn.

Design Docs (Large / Cross-Sample)

Before broad edits create DESIGN-<topic>.md:

  • Single sample: Samples/<Sample>/DESIGN-<topic>.md
  • Multi-sample/shared: repo root. Include: Problem, Goals/Non-Goals, Affected Areas, Approach, Risks, Validation Plan. Reference doc in PR.

When Unsure

Draft a design doc or WIP PR summarizing assumptions—don't guess.


Keep this file lean; source-of-truth for behavior lives in script headers.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.