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

winget-dsc

Copilot instructions158 starsChanged 4 months agoMITView on GitHub

This repository contains Desired State Configuration (DSC) v3 resources used with WinGet Configuration. Resources here are largely class-based PowerShell modules, each targeting a specific tool or Windows setting area: Each resource module typically ships: - A .psd1 module manifest and .psm1/class-based implementation - A DSC v3 resource manifest (*.dsc.resource.json) so dsc resource list can discover it without invoking the PowerShell adapter for metadata - Pester tests under a tests/ folder alongside the resource Some resources here are exploratory and may…

The file

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

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

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run resource tests with Pester: Invoke-Pester from the resource's test directory.

    line 31
  2. Very specific:

    Test end-to-end with winget configure and a sample from samples/, or directly with dsc resource test/get/set -r <ResourceName>.

    line 32
  3. Very specific:

    Follow the naming pattern <Vendor>.<Tool>.Dsc (e.g., NpmDsc, GitDsc) or Microsoft.<Area>.<Subarea> for Microsoft/Windows-owned settings …

    line 36
  4. Very specific:

    Prefer adapted resource manifests (*.dsc.adaptedResource.json) for new/updated resources so DSC v3 can discover them without spawning …

    line 37
  5. Very specific:

    Keep resource Help/ content (synopsis + examples) in sync with schema/parameter changes.

    line 38
  6. Distinctive:

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

    line 48
  7. Very specific:

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

    line 49
  8. Distinctive:

    Keep issue bodies concise and evidence-based.

    line 52
  9. Very specific:

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

    line 53

≈ “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 DSC Development Guide

Project Overview

This repository contains Desired State Configuration (DSC) v3 resources used with WinGet Configuration. Resources here are largely class-based PowerShell modules, each targeting a specific tool or Windows setting area:

  • resources/GitDsc - Git configuration/clone resource
  • resources/Microsoft.DotNet.Dsc - .NET SDK/tooling resources
  • resources/Microsoft.VSCode.Dsc - VS Code extension/settings resources
  • resources/Microsoft.Windows.Developer - Windows developer-mode settings
  • resources/Microsoft.Windows.Setting.Accessibility - Windows accessibility settings
  • resources/Microsoft.Windows.Settings - General Windows settings resources
  • resources/Microsoft.WindowsSandbox.DSC - Windows Sandbox configuration
  • resources/NpmDsc, resources/PythonPip3Dsc, resources/RustDsc, resources/YarnDsc - Package-manager-specific resources
  • resources/Help - Generated/authored help content (synopsis + examples) for each resource
  • samples/ - Example WinGet Configuration YAML files using these resources (also published at https://aka.ms/dsc.yaml)
  • doc/ - Design docs and specs for resources

Resource Structure

Each resource module typically ships:

  • A .psd1 module manifest and .psm1/class-based implementation
  • A DSC v3 resource manifest (*.dsc.resource.json) so dsc resource list can discover it without invoking the PowerShell adapter for metadata
  • Pester tests under a tests/ folder alongside the resource

Some resources here are exploratory and may never ship to the PowerShell Gallery, may move to their own repos, or may be removed — check doc/ and open issues before assuming a resource is stable.

Building, Testing, and Running

  • These are pure PowerShell modules — no compiled build step. Import a resource directly with Import-Module .\resources\<Resource>\<Resource>.psd1 for local testing.
  • Run resource tests with Pester: Invoke-Pester from the resource's test directory.
  • Test end-to-end with winget configure and a sample from samples/, or directly with dsc resource test/get/set -r <ResourceName>.

Conventions

  • Follow the naming pattern <Vendor>.<Tool>.Dsc (e.g., NpmDsc, GitDsc) or Microsoft.<Area>.<Subarea> for Microsoft/Windows-owned settings resources.
  • Prefer adapted resource manifests (*.dsc.adaptedResource.json) for new/updated resources so DSC v3 can discover them without spawning PowerShell — see tracking issue microsoft/winget-dsc#272.
  • Keep resource Help/ content (synopsis + examples) in sync with schema/parameter changes.

Contributing

  • Review CONTRIBUTING.md (root) for workflow and CLA requirements.
  • New resources or significant changes should be discussed via an issue first, referencing doc/specs where applicable.
  • CI runs via Azure Pipelines (pipelines/).

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.

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.