winget-create
Copilot instructions655 starsChanged 4 months agoMITView on GitHub
This repository contains the source for the Windows Package Manager Manifest Creator (wingetcreate), a .NET CLI tool that helps developers create, update, and submit package manifests to the winget-pkgs community repository. The codebase is organized as: Configure your system using .config/configuration.winget (winget configure .config/configuration.winget), or manually install: - Windows 10 1709 (16299) or later - Visual Studio 2022 with .NET Desktop Development and Universal Windows Platform Development workloads - Windows 11 SDK (10.0.26100.0) - Git LFS Open src\WingetCreateCLI.sln in Visual…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this copilot-instructions.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 54
Before filing an issue, search existing open and closed issues for duplicates.
- Very specific: line 55
Use the GitHub issue forms in .github/ISSUE_TEMPLATE/.
- Distinctive: line 58
Keep issue bodies concise and evidence-based.
- Very specific: line 59
Before opening a pull request, review CONTRIBUTING.md, follow the PR template, keep the change focused, and summarize validation performed.
≈ “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.
Files
WinGet Create (WingetCreate) Development Guide
Project Overview
This repository contains the source for the Windows Package Manager Manifest Creator (wingetcreate), a .NET CLI tool that helps developers create, update, and submit package manifests to the winget-pkgs community repository. The codebase is organized as:
src/WingetCreateCLI- Command-line interface, argument parsing, and command implementations (New, Update, Submit, Show, Token, Settings, Cache, Info, Dsc)src/WingetCreateCore- Core manifest generation/parsing logic, installer detection, GitHub submission clientsrc/WingetCreatePackage- MSIX packaging project for distributionsrc/WingetCreateTests- Unit and E2E tests
Building, Testing, and Running
Initial Setup
Configure your system using .config/configuration.winget (winget configure .config/configuration.winget), or manually install:
- Windows 10 1709 (16299) or later
- Visual Studio 2022 with .NET Desktop Development and Universal Windows Platform Development workloads
- Windows 11 SDK (10.0.26100.0)
- Git LFS
Building
Open src\WingetCreateCLI.sln in Visual Studio and build. Command-line msbuild/dotnet build also work.
Testing
- Unit and E2E tests run via Visual Studio Test Explorer (
WingetCreateTestsproject). - Requires a fork of winget-pkgs-submission-test and a configured
WingetCreateTests/Test.runsettingsfile (WingetPkgsTestRepoOwner,WingetPkgsTestRepo). - A GitHub token is required for submission tests — prefer
wingetcreate token -sover a raw PAT env var.
Architecture & Key Patterns
- Command pattern: Each CLI verb (
New,Update,Submit, etc.) is its own command class inWingetCreateCLI/Commands. - Manifest model: Manifests are strongly-typed models generated from the winget-pkgs manifest schemas, parsed/serialized as YAML.
- Installer detection: Core logic in
WingetCreateCoredownloads installers, computes hashes, and infers installer metadata (type, architecture, scope) automatically where possible. - GitHub submission flow:
Submit/New/Updatecommands can open PRs directly againstwinget-pkgsusing a cached or provided GitHub PAT. - DSC v3 support: The
Dsccommand surface implements DSC v3 resource commands for use with WinGet Configuration.
Naming Conventions
- C# code follows StyleCop rules defined in
stylecop.jsonat the repo root. - Namespaces follow
Microsoft.WingetCreate.<Area>(e.g.,Microsoft.WingetCreate.Core,Microsoft.WingetCreate.CLI.Commands).
Contributing
- Review
CONTRIBUTING.mdfor the workflow and CLA requirements. - Manifest schema compatibility with
winget-pkgsis critical — verify against the current schema version (seemicrosoft/winget-pkgs/schemas/JSON/manifests) when changing manifest generation/parsing logic. - CI runs on Azure Pipelines (
pipelines/). - Documentation for each command lives under
doc/(e.g.,doc/new.md,doc/update.md) — update alongside CLI changes.
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. - Bug reports should include the form fields for brief description, steps to reproduce, expected behavior, actual behavior, and environment.
- Feature requests should include the form fields for feature or enhancement description and proposed technical implementation details when known.
- 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 code is available.
- Before opening a pull request, review
CONTRIBUTING.md, follow the PR template, keep the change focused, and summarize validation performed.
Telemetry & Privacy
The built/released wingetcreate.exe collects usage/diagnostic telemetry (respecting machine-wide privacy settings and settings.json's telemetry.disabled). Locally-built binaries do not have telemetry enabled. See PRIVACY.md for details.
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
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.

