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

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.

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
  1. Distinctive:

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

    line 54
  2. Very specific:

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

    line 55
  3. Distinctive:

    Keep issue bodies concise and evidence-based.

    line 58
  4. Very specific:

    Before opening a pull request, review CONTRIBUTING.md, follow the PR template, keep the change focused, and summarize validation performed.

    line 59

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

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 client
  • src/WingetCreatePackage - MSIX packaging project for distribution
  • src/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 (WingetCreateTests project).
  • Requires a fork of winget-pkgs-submission-test and a configured WingetCreateTests/Test.runsettings file (WingetPkgsTestRepoOwner, WingetPkgsTestRepo).
  • A GitHub token is required for submission tests — prefer wingetcreate token -s over a raw PAT env var.

Architecture & Key Patterns

  • Command pattern: Each CLI verb (New, Update, Submit, etc.) is its own command class in WingetCreateCLI/Commands.
  • Manifest model: Manifests are strongly-typed models generated from the winget-pkgs manifest schemas, parsed/serialized as YAML.
  • Installer detection: Core logic in WingetCreateCore downloads installers, computes hashes, and infers installer metadata (type, architecture, scope) automatically where possible.
  • GitHub submission flow: Submit/New/Update commands can open PRs directly against winget-pkgs using a cached or provided GitHub PAT.
  • DSC v3 support: The Dsc command surface implements DSC v3 resource commands for use with WinGet Configuration.

Naming Conventions

  • C# code follows StyleCop rules defined in stylecop.json at the repo root.
  • Namespaces follow Microsoft.WingetCreate.<Area> (e.g., Microsoft.WingetCreate.Core, Microsoft.WingetCreate.CLI.Commands).

Contributing

  • Review CONTRIBUTING.md for the workflow and CLA requirements.
  • Manifest schema compatibility with winget-pkgs is critical — verify against the current schema version (see microsoft/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.

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.