federalavd-windows-policy-validation
Skill18 starsChanged 3 months agoMITView on GitHub
Create, modify, review, and validate Windows policy settings in FederalAVD scripts and artifacts. Use when changing Optimize-AVDImage.ps1, Registry.pol writes, policy registry values, Windows services or scheduled tasks used as policy controls, ADMX-backed settings, default-user policies, Start/Search behavior, or restricted-network Windows configuration.
In this repository9 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- avd-alert-kql-validationSkill
- federalavd-air-gapped-readinessSkill
- federalavd-artifact-authoringSkill
- federalavd-bicep-maintenanceSkill
- federalavd-compliance-reviewSkill
- federalavd-deployment-dependency-reviewSkill
- federalavd-policy-authoringSkill
- federalavd-ui-form-maintenanceSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use this workflow for Windows operating-system and Microsoft product policy settings in deployment scripts and image artifacts.
- Distinctive: line 15
Do not infer behavior from registry value names, existing repository code, generated ARM JSON, community optimization lists, search …
- Distinctive: line 25
If the sources conflict, are version-mismatched, or do not document the intended outcome, stop and report the uncertainty.
- Distinctive: line 48
Check precedence and profile coverage.
- Distinctive: line 51
Add a nearby comment naming the ADMX policy, non-obvious value semantics, supported-edition limitation, material side effect, and an …
- Distinctive: line 54
Add focused static tests for the exact path, value, type, scope, profile coverage, and duplicate guard.
- Very specific: line 59
Run PowerShell parser tests and the repository's ASCII-only check after every .ps1 edit.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
FederalAVD Windows Policy Validation
Use this workflow for Windows operating-system and Microsoft product policy settings in deployment scripts and image artifacts. It applies to ADMX-backed Registry.pol entries, direct policy-registry writes, default-user policy, and service or task changes intended to enforce policy behavior.
Evidence Standard
Do not infer behavior from registry value names, existing repository code, generated ARM JSON, community optimization lists, search results, or third-party examples. Existing code is an implementation to verify, not an authority.
A policy change requires both of these sources:
- The current ADMX file and matching language ADML file from the target Windows build or installed product policy package.
- Current official Microsoft Learn, Policy CSP, product policy, or product-group documentation.
If the sources conflict, are version-mismatched, or do not document the intended outcome, stop and report the uncertainty. Do not implement a plausible substitute. For a setting with no ADMX backing, require explicit official Microsoft or vendor registry documentation and label it as non-ADMX.
Procedure
- State the exact intended behavior and the behavior that must remain available. Identify the target Windows build, edition, optimization profile, user type, and connected or air-gapped context.
- Locate the policy in the target system's
%SystemRoot%\PolicyDefinitionsADMX and matching locale ADML. For Edge, Office, OneDrive, or another separately serviced product, use the policy templates matching the installed product version. - Record the policy friendly name, explanation text, policy class, category path, registry key,
value name, value type, enabled value, disabled value, supported-on declaration, and any option
or list elements. Do not assume that
0means disabled or1means enabled. - Corroborate the mapping and effect with current official Microsoft documentation. Prefer the generated Policy CSP reference for exact scope, edition, build, and Group Policy mappings, then use product documentation for behavior and side effects.
- Distinguish the controlling policy from adjacent policies. For example, cloud organizational search, web results, Search highlights, consumer suggestions, and Microsoft Store availability are separate controls. Do not broaden the change to make an uncertain result disappear.
- Confirm Computer versus User scope. Route Computer policy to Machine Registry.pol and User policy to User Registry.pol or the repository's established default-user mechanism. A machine value at a user-only path is not equivalent.
- Check precedence and profile coverage. Identify domain or MDM policy that can override local policy, existing duplicate writes, intentional later overrides, and every profile or air-gapped combination that should receive the setting.
- Add a nearby comment naming the ADMX policy, non-obvious value semantics, supported-edition limitation, material side effect, and an official reference. Update the owning README when the setting changes user-visible behavior or deliberately deviates from Microsoft VDI guidance.
- Add focused static tests for the exact path, value, type, scope, profile coverage, and duplicate guard. Static tests establish that the intended configuration is emitted; they do not prove the Windows client honors it as expected.
- For scripts embedded with
loadTextContent, regenerate the tracked ARM JSON from Bicep and run the repository Bicep/ARM synchronization check. Never hand-edit the embedded script in JSON. - Run PowerShell parser tests and the repository's ASCII-only check after every
.ps1edit. - Validate user-visible outcomes on a representative supported Windows build after required
restart, sign-in, or new-profile creation. Verify effective policy with
gpresult,rsop.msc, or the resulting policy registry data, then test both the blocked behavior and preserved behavior. If live validation is unavailable, state that clearly and do not claim the UX issue is fixed.
Completion Report
Report the two authoritative sources used, exact policy mapping, supported scope and editions, profiles affected, preserved behavior, executable validation, and whether live Windows behavior was verified. Separate proven configuration facts from expected client behavior.
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.

