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…
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- winget-config-v2-to-v3Skill
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
- Very specific: line 31
Run resource tests with Pester: Invoke-Pester from the resource's test directory.
- Very specific: line 32
Test end-to-end with winget configure and a sample from samples/, or directly with dsc resource test/get/set -r <ResourceName>.
- Very specific: line 36
Follow the naming pattern <Vendor>.<Tool>.Dsc (e.g., NpmDsc, GitDsc) or Microsoft.<Area>.<Subarea> for Microsoft/Windows-owned settings …
- Very specific: line 37
Prefer adapted resource manifests (*.dsc.adaptedResource.json) for new/updated resources so DSC v3 can discover them without spawning …
- Very specific: line 38
Keep resource Help/ content (synopsis + examples) in sync with schema/parameter changes.
- Distinctive: line 48
Before filing an issue, search existing open and closed issues for duplicates.
- Very specific: line 49
Use the GitHub issue forms in .github/ISSUE_TEMPLATE/.
- Distinctive: line 52
Keep issue bodies concise and evidence-based.
- Very specific: line 53
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 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 resourceresources/Microsoft.DotNet.Dsc- .NET SDK/tooling resourcesresources/Microsoft.VSCode.Dsc- VS Code extension/settings resourcesresources/Microsoft.Windows.Developer- Windows developer-mode settingsresources/Microsoft.Windows.Setting.Accessibility- Windows accessibility settingsresources/Microsoft.Windows.Settings- General Windows settings resourcesresources/Microsoft.WindowsSandbox.DSC- Windows Sandbox configurationresources/NpmDsc,resources/PythonPip3Dsc,resources/RustDsc,resources/YarnDsc- Package-manager-specific resourcesresources/Help- Generated/authored help content (synopsis + examples) for each resourcesamples/- Example WinGet Configuration YAML files using these resources (also published athttps://aka.ms/dsc.yaml)doc/- Design docs and specs for resources
Resource Structure
Each resource module typically ships:
- A
.psd1module manifest and.psm1/class-based implementation - A DSC v3 resource manifest (
*.dsc.resource.json) sodsc resource listcan 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>.psd1for local testing. - Run resource tests with Pester:
Invoke-Pesterfrom the resource's test directory. - Test end-to-end with
winget configureand a sample fromsamples/, or directly withdsc resource test/get/set -r <ResourceName>.
Conventions
- Follow the naming pattern
<Vendor>.<Tool>.Dsc(e.g.,NpmDsc,GitDsc) orMicrosoft.<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/specswhere 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.
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.

