System Prompt: WSL managed settings double opt-in

Explains that WSL can read the Windows managed settings policy chain only when the admin-enabled flag is set, with HKCU requiring an additional user opt-in

Lord1Egypt Updated 2 repo stars

File contents

When set to true in either admin-only Windows source — the HKLM SOFTWARE/Policies/ClaudeCode registry key or C:/Program Files/ClaudeCode/managed-settings.json — WSL reads managed settings from the full Windows policy chain (HKLM, C:/Program Files/ClaudeCode via DrvFs, HKCU) in addition to /etc/claude-code. Windows sources take priority. The flag is also required in HKCU itself for HKCU policy to apply on WSL (double opt-in: admin enables the chain, user confirms HKCU). On native Windows the flag has no effect.

Lord1Egypt/ai-skillforge/tree/main/js/skills/gemini/system-prompt-wsl-managed-settings-double-opt-in commit 02549b216b

Frequently asked questions

npx skillmds@latest add lord1egypt/system-prompt-wsl-managed-settings-double-opt-in-2