policy-and-managed-settings

Route enterprise Copilot controls to runtime managed settings, VS Code policies, or extension policies.

Updated Apr 28, 2026
Ready to run
npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill policy-and-managed-settings-cokistudios
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: policy-and-managed-settings
Source: https://github.com/CokiStudios/cokistudios.github.io/tree/main/vscode-src/.github/skills/policy-and-managed-settings
Command: npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill policy-and-managed-settings-cokistudios

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Deciding where a new enterprise control for Copilot, agents, LLMs, tools, permissions, sandboxes, MCP, or telemetry belongs is error-prone: controls can live in the SDK/runtime managed-settings contract, VS Code configuration policy, extension policy, or a split implementation, and choosing wrong leads to duplicated enforcement or silently ignored settings. ## Core Features & Use Cases - Policy Destination Routing: A decision flowchart routes any new enterprise control to the correct implementation channel based on where the governed behavior executes. - Managed Settings Guidance: Documents the canonical dot-path bag, three delivery channels (native MDM, server, file-based) with per-key precedence, structured JSON-string encoding, and the managedSettingValue helper pattern. - Export & Testing Workflow: Prescribes the canonical npm run export-policy-data procedure, policyData.jsonc verification, and local testing via the mock policy server. - Use Case: When adding a new Copilot permission control, use this Skill to determine it belongs in the runtime managed-settings schema, declare the key constant, attach it to a policy, and export the policy catalog correctly. ## Quick Start Ask the assistant to use the policy-and-managed-settings skill to decide where a new enterprise control for Copilot agent behavior should be implemented.

Frequently Asked Questions about policy-and-managed-settings

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add an enterprise policy for a Copilot feature in VS Code?▼

First decide where the governed behavior is implemented: runtime behavior goes in the SDK/runtime managed-settings contract, editor behavior gets a VS Code configuration policy with a policy field, and extension settings use extensionConfigurationPolicy in vscode-distro product.json. Then run npm run export-policy-data and verify policyData.jsonc.

What is the difference between VS Code configuration policy and Copilot managed settings?▼

VS Code configuration policy governs editor and workbench behavior delivered via OS policy or account data. Copilot managed settings are a canonical dot-path bag delivered through native MDM, the GitHub server, or a file, enforced by the runtime, and are the required channel for new Copilot enterprise controls.

How do managed settings precedence rules work across MDM, server, and file channels?▼

Precedence is resolved per key by pickManagedSettings: native MDM wins over the server-delivered channel, which wins over the file-based channel. Keys left unset by higher-precedence channels are still filled in by lower ones, and the merged bag is projected onto declared policy keys.

Why is my managed setting silently ignored in VS Code?▼

projectManagedSettings drops undeclared keys and type mismatches without coercion. Structured object or array values must be declared as type string carrying JSON; declaring number or boolean compiles but fails the runtime typeof check, so the key is dropped and never applies.

Can I add a new policy field to the GitHub token account policy data?▼

No. GitHub token/account policy data on IPolicyData is deprecated for new controls and closed to new properties. New Copilot enterprise controls must use managed settings with runtime/SDK enforcement instead of token entitlement fields.

How do I test Copilot policy responses locally?▼

Use the mock policy server under scripts/mock-policy-server, started with npm run mock-policy-server. It mocks the defaultChatAgent endpoints, supports presets and a JSON control API, and you apply responses in the client via Developer: Sync Account Policy.