agentleFS
MicrosoftKnown publishermicrosoft/winget-pkgs/.github/copilot-instructions.md

winget-pkgs

Copilot instructions11k starsChanged 8 months agoMITView on GitHub

This is the Windows Package Manager (WinGet) community repository — a manifest-only repo containing ~415,000+ YAML files describing how to install Windows applications via winget. There is no application source code here. The tooling is PowerShell scripts in Tools/. Never recursively scan or search the manifests/ directory. It contains hundreds of thousands of files and will cause severe performance issues. Only search within the specific package folder being modified (e.g., manifests/m/Microsoft/WindowsTerminal/). Each package version lives in manifests/<first-letter>/<Publisher>/<Package>/<Version>/ and requires three…

Trending

Quiet this year.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/winget-pkgs repository that our weekly crawl found: only 12 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about microsoft/winget-pkgs

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

See all 12

Talked about on GitHub, Bluesky and Hacker News (12 times).

On GitHub · 8

3 more on GitHub

On Bluesky · 3

On Hacker News · 1

  • In this repositoryOne other file it gives its agents.

The file

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

8 rules. About 0 are common, 4 are distinctive, and 4 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.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before filing an issue, search existing open and closed issues for duplicates.

    line 40
  2. Very specific:

    Use the GitHub issue forms in .github/ISSUE_TEMPLATE/.

    line 41
  3. Very specific:

    Use package_issue.yml for package behavior problems, package_request.yml for new package requests, update_request.yml for version update …

    line 42
  4. Very specific:

    Do not file WinGet client issues here.

    line 43
  5. Distinctive:

    Keep issue bodies concise and evidence-based.

    line 44
  6. Very specific:

    Before opening a pull request, review CONTRIBUTING.md, follow the PR template, keep the change to exactly one package, and summarize …

    line 45
  7. Distinctive:

    Test in Windows Sandbox (preferred — isolated environment):

    line 60
  8. Distinctive:

    Run PSScriptAnalyzer locally on PowerShell scripts:

    line 85

≈ “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

Copilot Instructions for winget-pkgs

Repository Overview

This is the Windows Package Manager (WinGet) community repository — a manifest-only repo containing ~415,000+ YAML files describing how to install Windows applications via winget. There is no application source code here. The tooling is PowerShell scripts in Tools/.

⚠️ Critical Performance Rule

Never recursively scan or search the manifests/ directory. It contains hundreds of thousands of files and will cause severe performance issues. Only search within the specific package folder being modified (e.g., manifests/m/Microsoft/WindowsTerminal/).

Manifest Structure

Each package version lives in manifests/<first-letter>/<Publisher>/<Package>/<Version>/ and requires three files:

FileManifestTypePurpose
<Id>.yamlversionVersion metadata, links other files
<Id>.installer.yamlinstallerInstaller URLs, SHA256 hashes, architecture, installer type
<Id>.locale.en-US.yamldefaultLocalePackage name, publisher, description, license

Additional <Id>.locale.<tag>.yaml files provide optional translations.

Key rules:

  • File and folder names are case-sensitive and must match the PackageIdentifier exactly
  • The version folder name must match PackageVersion exactly
  • The first directory under manifests/ is the lowercase first letter of the publisher
  • Each YAML file includes a # yaml-language-server: $schema=... comment pointing to its JSON schema
  • Recommended schema version: 1.12.0 (1.10.0 also accepted)
  • Supported installer types: MSIX, MSI, APPX, EXE, and font files only — no scripts

PR Conventions

  • Each PR must modify exactly one package (one manifest set for one version)
  • PRs to manifests/ trigger an Azure DevOps validation pipeline that runs file validation, URL scanning, SmartScreen checks, manifest policy checks, installation verification, and installer metadata validation
  • PRs are auto-merged when the Validation-Completed label is applied (squash merge)
  • Contributors must sign the Microsoft CLA

Issues and Pull Requests

  • Before filing an issue, search existing open and closed issues for duplicates.
  • Use the GitHub issue forms in .github/ISSUE_TEMPLATE/; do not file a blank issue unless a maintainer explicitly asks for one.
  • Use package_issue.yml for package behavior problems, package_request.yml for new package requests, update_request.yml for version update requests, and feature_request.yml for repository or process improvements.
  • Do not file WinGet client issues here; use microsoft/winget-cli for client behavior.
  • Keep issue bodies concise and evidence-based. Do not paste large speculative patches into issue bodies; open a pull request or link a branch when manifest changes are available.
  • Before opening a pull request, review CONTRIBUTING.md, follow the PR template, keep the change to exactly one package, and summarize validation performed.

Validation and Testing Commands

Validate a manifest locally:

winget validate --manifest <path-to-version-folder>

Test installation locally:

winget settings --enable LocalManifestFiles
winget install --manifest <path-to-version-folder>

Test in Windows Sandbox (preferred — isolated environment):

.\Tools\SandboxTest.ps1 <path-to-version-folder>

Tooling

ToolPurpose
Tools/YamlCreate.ps1Interactive manifest creation/update helper
Tools/SandboxTest.ps1Test manifests in Windows Sandbox
Tools/PRTest.ps1PR testing utilities
Tools/Modules/YamlCreate/PowerShell module supporting YamlCreate

Manifest creation is best done with winget-create:

wingetcreate new <InstallerURL>       # New package
wingetcreate update <PackageId>       # Update existing package

CI/CD

  • GitHub Actions: PSScriptAnalyzer (lints *.ps1/*.psm1 on PR/push) and spell checking
  • Azure DevOps: Validation and publish pipelines for manifest PRs (defined in DevOpsPipelineDefinitions/)

Run PSScriptAnalyzer locally on PowerShell scripts:

Install-Module -Name PSScriptAnalyzer -Force -Scope CurrentUser
Get-ChildItem -Recurse -Filter *.ps1 | Invoke-ScriptAnalyzer

Code Style

  • YAML: 2-space indentation, CRLF line endings, UTF-8, trailing whitespace trimmed
  • YAML fields are PascalCased and must not be duplicated
  • PowerShell: follows PSScriptAnalyzer rules
  • See .editorconfig for full formatting rules

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.