agentleFS
Microsoft AzureKnown publisherAzure/FederalAVD/.github/skills/federalavd-windows-policy-validation/SKILL.md

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.

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

    Use this workflow for Windows operating-system and Microsoft product policy settings in deployment scripts and image artifacts.

    line 9
  2. Distinctive:

    Do not infer behavior from registry value names, existing repository code, generated ARM JSON, community optimization lists, search …

    line 15
  3. Distinctive:

    If the sources conflict, are version-mismatched, or do not document the intended outcome, stop and report the uncertainty.

    line 25
  4. Distinctive:

    Check precedence and profile coverage.

    line 48
  5. Distinctive:

    Add a nearby comment naming the ADMX policy, non-obvious value semantics, supported-edition limitation, material side effect, and an …

    line 51
  6. Distinctive:

    Add focused static tests for the exact path, value, type, scope, profile coverage, and duplicate guard.

    line 54
  7. Very specific:

    Run PowerShell parser tests and the repository's ASCII-only check after every .ps1 edit.

    line 59

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. The current ADMX file and matching language ADML file from the target Windows build or installed product policy package.
  2. 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

  1. 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.
  2. Locate the policy in the target system's %SystemRoot%\PolicyDefinitions ADMX and matching locale ADML. For Edge, Office, OneDrive, or another separately serviced product, use the policy templates matching the installed product version.
  3. 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 0 means disabled or 1 means enabled.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. Run PowerShell parser tests and the repository's ASCII-only check after every .ps1 edit.
  12. 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.

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.