[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699V8HPSMW5J79D9S6GKJG0":3,"skill-same:01M699V8HPSMW5J79D9S6GKJG0":120},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":54,"linkOnly":55,"markdownContent":56,"markdownBody":57,"frontMatter":58,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":68,"ownerHtmlUrl":69,"ownerBlogUrl":70,"ownerDescription":71,"updatedAt":72,"install":73,"resources":85},"01M699V8HPSMW5J79D9S6GKJG0","manage-headers","网站安全响应头管理","Inspects and configures the security headers a Power Pages site sends to browsers — Content Security Policy, frame and clickjacking protection, cross-origin sharing, cookie behavior, and related site settings. Identifies gaps and walks the user through fixes. Use when the user wants to review headers, fix CSP errors, allow embedding in another site, control cross-origin access, harden cookie settings, or asks \"are my browser settings safe?\", \"fix my CSP\", \"set up CORS\" — even if they only mention a specific header name without saying \"security headers\".","检查并配置 Power Pages 站点发送给浏览器的安全头——内容安全策略（Content Security Policy）、帧与点击劫持防护、跨域共享、Cookie 行为以及相关站点设置。识别差距并引导用户进行修复。当用户想要查看安全头、修复 CSP 错误、允许嵌入到其他站点、控制跨域访问、加固 Cookie 设置，或询问“我的浏览器设置安全吗？”“修复我的 CSP”“设置 CORS”时使用——即使用户只提到某个具体的头名称而未说“安全头”。","microsoft\u002Fpower-platform-skills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699JVYJFB75D9JM70BN4H0Q",1149,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fmanage-headers\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BXREJNJE7HY785DVVKG7CW","Web应用安全防护","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],"headers","manage headers","manage","write","when","my","errors","embedding","up","only","power","fix","edit","review","read","access","Bash","SET","browser","power pages","policy","security","safe","2026-11-10 10:12:30",false,"---\nname: manage-headers\ndescription: >-\n  Inspects and configures the security headers a Power Pages site sends\n  to browsers — Content Security Policy, frame and clickjacking protection,\n  cross-origin sharing, cookie behavior, and related site settings.\n  Identifies gaps and walks the user through fixes. Use when the user\n  wants to review headers, fix CSP errors, allow embedding in another site,\n  control cross-origin access, harden cookie settings, or asks \"are my\n  browser settings safe?\", \"fix my CSP\", \"set up CORS\" — even if they only\n  mention a specific header name without saying \"security headers\".\nuser-invocable: true\nargument-hint: \"[optional: --review \u003Cout-dir>]\"\nallowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate, TaskList\nmodel: opus\n---\n\n> **Plugin check**: Run `node \"${PLUGIN_ROOT}\u002Fscripts\u002Fcheck-version.js\"` — if it outputs a message, show it to the user before proceeding.\n\n# Manage Headers\n\nInspect and configure the HTTP security headers for a Power Pages site. Headers are configured as `HTTP\u002F*` site settings stored in `.powerpages-site\u002Fsite-settings\u002F` YAML files.\n\n**Initial request:** $ARGUMENTS\n\n## Gotchas\n\n- **Site settings are YAML files.** Each header is a separate `.yml` file in `.powerpages-site\u002Fsite-settings\u002F`. The file name uses `-` instead of `\u002F` (e.g., `HTTP\u002FX-Frame-Options` → `http-x-frame-options.sitesetting.yml`).\n- **Absent = no header.** When a site setting is absent, the runtime omits that header entirely (except CSP on new sites — see headers-reference.md).\n- **HSTS and Cache-Control are platform-managed.** Do not try to set `HTTP\u002FStrict-Transport-Security` — the runtime does not recognize it and the setting has no effect.\n- **Maker-mode bypasses headers.** Requests from Power Pages Studio skip all `HTTP\u002F*` header emission. Verify headers in an incognito tab, not the studio preview.\n- **CSP is pass-through.** The runtime emits the value verbatim — it does NOT merge runtime sources automatically. The CSP MUST include Power Pages runtime hosts or the site breaks.\n- **CSP nonce.** When `script-src` contains `'nonce'`, the runtime replaces it per-request with `'nonce-\u003Crandom>'` and auto-hashes inline event handlers. Scripts created dynamically via `document.createElement` do NOT receive the nonce.\n- **`SameSite=None` requires HTTPS.** The runtime sets `Secure` on every cookie over HTTPS automatically.\n- **CORS `*` is auto-specialized.** The runtime replaces `*` per-request with the specific requesting Origin — the browser sees a single-origin header, not a wildcard.\n\n## Workflow\n\n1. **Prerequisites** — Locate project, confirm site-settings directory exists\n2. **Inspect current headers** — Read site-setting YAML files, identify configured and missing headers\n3. **Assess and plan** — Identify gaps, present recommendations\n4. **Apply changes** — Edit existing settings or create new ones\n5. **Summarize** — Present results, record usage, offer follow-ups\n\n## Task Tracking\n\nCreate tasks in four groups. Mark each `in_progress` when starting, `completed` when done.\n\n| Group | When to create | Tasks |\n|-------|----------------|-------|\n| 1 | At start | Check prerequisites |\n| 2 | After prerequisites pass | Inspect current headers · Assess and plan (skip \"Assess and plan\" in review mode) |\n| 3 | After user approves changes | Apply changes (skip in review mode OR if no changes were accepted) |\n| 4 | After apply or assess | Summarize (always) |\n\n---\n\n## 1. Prerequisites\n\n### 1.1 Locate the project, detect review mode\n\nUse `Glob` to find `**\u002Fpowerpages.config.json`. If `$ARGUMENTS` contains `--review \u003Cout-dir>`, remember the output directory — Steps 3–4 are skipped and Step 5 writes JSON only.\n\n### 1.2 Verify site-settings directory\n\nCheck that `.powerpages-site\u002Fsite-settings\u002F` exists. If not, the site has not been deployed yet — tell the user and recommend `\u002Fdeploy-site`. Stop.\n\n---\n\n## 2. Inspect current headers\n\nUse `Glob` to find all `*.yml` files in `.powerpages-site\u002Fsite-settings\u002F`. Use `Read` to read each file and extract the `name` and `value` fields. Identify all settings with an `HTTP\u002F` prefix — these are the configured headers.\n\nCompare against the recognized header catalogue in `references\u002Fheaders-reference.md`. For each header in the catalogue:\n- **Present** — record its current value.\n- **Missing** — record it as absent and note the recommended value from headers-reference.md.\n\nFor CSP specifically: if `HTTP\u002FContent-Security-Policy` is present, scan the project's source files using `Glob` + `Read` to find external URLs and check whether they are covered by the policy. Identify the site's cloud environment via `pac auth who` to determine the correct Power Pages runtime host (see headers-reference.md § \"Power-Pages-runtime sources a CSP must allow\").\n\n---\n\n## 3. Assess and plan\n\nSkip in **review mode**.\n\nMUST use plain language only. Never lead with words like CSP, CORS, HSTS, or MIME sniffing — explain using everyday language:\n\n| Header concept | Plain-language name |\n|----------------|---------------------|\n| Content-Security-Policy | \"which scripts and resources the browser is allowed to load\" |\n| X-Frame-Options \u002F frame-ancestors | \"whether other websites can put your site inside a frame\" |\n| X-Content-Type-Options | \"stop the browser from guessing file types\" |\n| CORS headers | \"which other websites can call your site's data\" |\n| SameSite cookies | \"when the browser sends your sign-in cookie\" |\n\n### Default approach\n\nRead `references\u002Fheaders-reference.md` for recommended values and guidance. **Present the most important gaps first** — headers that are missing or misconfigured relative to the recommended values.\n\n\u003C!-- gate: manage-headers:3.per-finding | category=plan | cancel-leaves=nothing -->\n\n> ? **Gate (plan · manage-headers:3.per-finding):** Per-finding loop — for each header gap, prompt accept \u002F customize \u002F skip. Fires PER FINDING in the loop; skipped findings leave the header at its current value, accepted\u002Fcustomized findings get an Edit \u002F create-script call in Phase 4.\n>\n> **Trigger:** Phase 3 entry has tallied header gaps against `references\u002Fheaders-reference.md`.\n> **Why we ask:** Auto-accepting can apply CSP\u002FCORS values that break the site (legitimate scripts blocked, third-party widgets refused); auto-skipping leaves the site missing important headers.\n> **Cancel leaves:** Nothing — Phase 4's Edit \u002F create-script call only fires on accepted findings.\n\nFor each finding, present via `AskUserQuestion`:\n- A plain-language explanation of why the change matters\n- The recommended value\n- Options: accept the recommendation, customize, or skip\n\nDo NOT present all headers at once — present the important gaps first. For headers already set to recommended values, mention them in the summary without requiring action.\n\n### CSP composition\n\nWhen the user needs a CSP (missing or incomplete), compose one using:\n1. The starter template from headers-reference.md\n2. The correct cloud-specific runtime host\n3. External URLs discovered from the project's source files — scan ALL source files, templates, scripts, etc.\n4. The `'nonce'` keyword for inline scripts\n\nWhen reviewing an existing CSP, validate:\n- All external URLs actually loaded by the site are covered in the policy\n- Runtime hosts are included for the site's cloud\n\nPresent the composed or corrected CSP for review. Recommend starting in report-only mode (`HTTP\u002FContent-Security-Policy-Report-Only`) before enforcing.\n\n---\n\n## 4. Apply changes\n\nSkip in **review mode**.\n\nFor **existing** settings: use `Edit` on the YAML file directly — change the `value` field.\n\nFor **new** settings: use the shared create script:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fscripts\u002Fcreate-site-setting.js\" \\\n  --projectRoot \"\u003CPROJECT_ROOT>\" \\\n  --name \"\u003Csetting-name>\" \\\n  --value \"\u003Cvalue>\" \\\n  --description \"\u003Cdescription>\"\n```\n\nSee `references\u002Fcommands.md` for details.\n\nAfter all changes are applied, offer to deploy: \"Ready to deploy these changes? They take effect after the next deploy.\" If yes, invoke `\u002Fdeploy-site`.\n\n---\n\n## 5. Summarize\n\n### 5.1 Review mode\n\nFirst, read the configured `HTTP\u002F*` site settings (from Step 2 — you already have them). Then write `\u003CREVIEW_DIR>\u002Fheader-annotations.json` with a plain-language description for each header and, when the configured value has a genuine issue (missing critical directive, weak value), a suggested fix. The transform script no longer hardcodes header descriptions — they come from you.\n\n```json\n{\n  \"headers\": {\n    \"HTTP\u002F\u003CHeaderName>\": { \"description\": \"What this header does, in plain language.\", \"fix\": \"Optional fix if the configured value has a genuine issue.\" }\n  }\n}\n```\n\nUse `references\u002Fheaders-reference.md` for authoritative descriptions and validation rules. Surface a `fix` **only** when the value has a real problem — do not editorialize on every header.\n\nThen run the transform:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fmanage-headers\u002Fscripts\u002Ftransform-headers.js\" \\\n  --projectRoot \"\u003CPROJECT_ROOT>\" \\\n  --annotations \"\u003CREVIEW_DIR>\u002Fheader-annotations.json\"\n```\n\nWrite the stdout to `\u003CREVIEW_DIR>\u002Fmanage-headers.json` and stop. The transform emits `{ status, findings, details }`; the orchestrating skill handles presentation.\n\n### 5.2 Present summary\n\nSkip in **review mode**.\n\nPlain-language summary: what was changed, what gaps remain, and what is already well-configured.\n\n### 5.3 Record skill usage\n\n> Reference: `${PLUGIN_ROOT}\u002Freferences\u002Fskill-tracking-reference.md`\n>\n> Use `--skillName \"ManageHeaders\"`.\n\n### 5.4 Offer follow-ups\n\nIf a natural follow-up exists based on findings, suggest it. If no meaningful follow-up exists, end the skill.\n\n---\n\n## Constraints\n\n- **Plain language** — MUST NOT use technical jargon with the user. Explain header names using everyday language.\n- **headers-reference.md is the source of truth** — recommended values and the recognized header catalogue live there. Read it before assessing.\n- **Context-aware interactions** — every recommendation MUST reflect the site's actual configuration and usage:\n  - Read the site's source files, integrations, and auth setup before recommending any value.\n  - Never recommend a value without verifying it will not break the site's functionality (see the \"Context to verify\" column in headers-reference.md).\n  - Acknowledge existing values when proposing changes — they may be intentional.\n  - For CSP, reference actual external URLs found in the project's source files.\n  - For CORS, verify the site's actual cross-origin consumers before scoping.\n  - For Cross-Origin-Opener-Policy, verify whether the site uses popup-based auth.\n  - For Cross-Origin-Resource-Policy, verify whether the site hosts Azure AD B2C custom login pages, is embedded cross-origin, or has integrations that load its resources. Leave absent or use `cross-origin` when unsure.\n- **Preview is for change review only** — include `preview` only on options that modify a setting value. Do not add to informational choices.\n- **Recommendations MUST NOT break the site** — before recommending a value, consider whether it would block resources the site actually uses. For CSP, always verify that runtime sources and project external URLs are included. For CORS, verify the site's actual cross-origin needs. When unsure, recommend report-only mode first.\n- **NEVER recommend broadening an existing policy** — if the user already has a tight CSP, CORS scope, or restrictive header value, do not suggest making it less restrictive. A working tight policy is better than a broad one. Never recommend `https:` wildcards in CSP directives — list specific hosts instead.\n- **Deploy after changes** — header changes only take effect after deploying. Always offer `\u002Fdeploy-site` after applying changes.\n\n## References\n\n- `references\u002Fheaders-reference.md` — recognized header catalogue, recommended values, CSP composition rules, runtime sources. Read before Step 2 (inspect) and Step 3 (assess) in **interactive** mode.\n- `references\u002Fcommands.md` — shared `create-site-setting.js` usage. Read at Step 4 (apply) when creating new settings.\n","> **Plugin check**: Run `node \"${PLUGIN_ROOT}\u002Fscripts\u002Fcheck-version.js\"` — if it outputs a message, show it to the user before proceeding.\n\n# Manage Headers\n\nInspect and configure the HTTP security headers for a Power Pages site. Headers are configured as `HTTP\u002F*` site settings stored in `.powerpages-site\u002Fsite-settings\u002F` YAML files.\n\n**Initial request:** $ARGUMENTS\n\n## Gotchas\n\n- **Site settings are YAML files.** Each header is a separate `.yml` file in `.powerpages-site\u002Fsite-settings\u002F`. The file name uses `-` instead of `\u002F` (e.g., `HTTP\u002FX-Frame-Options` → `http-x-frame-options.sitesetting.yml`).\n- **Absent = no header.** When a site setting is absent, the runtime omits that header entirely (except CSP on new sites — see headers-reference.md).\n- **HSTS and Cache-Control are platform-managed.** Do not try to set `HTTP\u002FStrict-Transport-Security` — the runtime does not recognize it and the setting has no effect.\n- **Maker-mode bypasses headers.** Requests from Power Pages Studio skip all `HTTP\u002F*` header emission. Verify headers in an incognito tab, not the studio preview.\n- **CSP is pass-through.** The runtime emits the value verbatim — it does NOT merge runtime sources automatically. The CSP MUST include Power Pages runtime hosts or the site breaks.\n- **CSP nonce.** When `script-src` contains `'nonce'`, the runtime replaces it per-request with `'nonce-\u003Crandom>'` and auto-hashes inline event handlers. Scripts created dynamically via `document.createElement` do NOT receive the nonce.\n- **`SameSite=None` requires HTTPS.** The runtime sets `Secure` on every cookie over HTTPS automatically.\n- **CORS `*` is auto-specialized.** The runtime replaces `*` per-request with the specific requesting Origin — the browser sees a single-origin header, not a wildcard.\n\n## Workflow\n\n1. **Prerequisites** — Locate project, confirm site-settings directory exists\n2. **Inspect current headers** — Read site-setting YAML files, identify configured and missing headers\n3. **Assess and plan** — Identify gaps, present recommendations\n4. **Apply changes** — Edit existing settings or create new ones\n5. **Summarize** — Present results, record usage, offer follow-ups\n\n## Task Tracking\n\nCreate tasks in four groups. Mark each `in_progress` when starting, `completed` when done.\n\n| Group | When to create | Tasks |\n|-------|----------------|-------|\n| 1 | At start | Check prerequisites |\n| 2 | After prerequisites pass | Inspect current headers · Assess and plan (skip \"Assess and plan\" in review mode) |\n| 3 | After user approves changes | Apply changes (skip in review mode OR if no changes were accepted) |\n| 4 | After apply or assess | Summarize (always) |\n\n---\n\n## 1. Prerequisites\n\n### 1.1 Locate the project, detect review mode\n\nUse `Glob` to find `**\u002Fpowerpages.config.json`. If `$ARGUMENTS` contains `--review \u003Cout-dir>`, remember the output directory — Steps 3–4 are skipped and Step 5 writes JSON only.\n\n### 1.2 Verify site-settings directory\n\nCheck that `.powerpages-site\u002Fsite-settings\u002F` exists. If not, the site has not been deployed yet — tell the user and recommend `\u002Fdeploy-site`. Stop.\n\n---\n\n## 2. Inspect current headers\n\nUse `Glob` to find all `*.yml` files in `.powerpages-site\u002Fsite-settings\u002F`. Use `Read` to read each file and extract the `name` and `value` fields. Identify all settings with an `HTTP\u002F` prefix — these are the configured headers.\n\nCompare against the recognized header catalogue in `references\u002Fheaders-reference.md`. For each header in the catalogue:\n- **Present** — record its current value.\n- **Missing** — record it as absent and note the recommended value from headers-reference.md.\n\nFor CSP specifically: if `HTTP\u002FContent-Security-Policy` is present, scan the project's source files using `Glob` + `Read` to find external URLs and check whether they are covered by the policy. Identify the site's cloud environment via `pac auth who` to determine the correct Power Pages runtime host (see headers-reference.md § \"Power-Pages-runtime sources a CSP must allow\").\n\n---\n\n## 3. Assess and plan\n\nSkip in **review mode**.\n\nMUST use plain language only. Never lead with words like CSP, CORS, HSTS, or MIME sniffing — explain using everyday language:\n\n| Header concept | Plain-language name |\n|----------------|---------------------|\n| Content-Security-Policy | \"which scripts and resources the browser is allowed to load\" |\n| X-Frame-Options \u002F frame-ancestors | \"whether other websites can put your site inside a frame\" |\n| X-Content-Type-Options | \"stop the browser from guessing file types\" |\n| CORS headers | \"which other websites can call your site's data\" |\n| SameSite cookies | \"when the browser sends your sign-in cookie\" |\n\n### Default approach\n\nRead `references\u002Fheaders-reference.md` for recommended values and guidance. **Present the most important gaps first** — headers that are missing or misconfigured relative to the recommended values.\n\n\u003C!-- gate: manage-headers:3.per-finding | category=plan | cancel-leaves=nothing -->\n\n> ? **Gate (plan · manage-headers:3.per-finding):** Per-finding loop — for each header gap, prompt accept \u002F customize \u002F skip. Fires PER FINDING in the loop; skipped findings leave the header at its current value, accepted\u002Fcustomized findings get an Edit \u002F create-script call in Phase 4.\n>\n> **Trigger:** Phase 3 entry has tallied header gaps against `references\u002Fheaders-reference.md`.\n> **Why we ask:** Auto-accepting can apply CSP\u002FCORS values that break the site (legitimate scripts blocked, third-party widgets refused); auto-skipping leaves the site missing important headers.\n> **Cancel leaves:** Nothing — Phase 4's Edit \u002F create-script call only fires on accepted findings.\n\nFor each finding, present via `AskUserQuestion`:\n- A plain-language explanation of why the change matters\n- The recommended value\n- Options: accept the recommendation, customize, or skip\n\nDo NOT present all headers at once — present the important gaps first. For headers already set to recommended values, mention them in the summary without requiring action.\n\n### CSP composition\n\nWhen the user needs a CSP (missing or incomplete), compose one using:\n1. The starter template from headers-reference.md\n2. The correct cloud-specific runtime host\n3. External URLs discovered from the project's source files — scan ALL source files, templates, scripts, etc.\n4. The `'nonce'` keyword for inline scripts\n\nWhen reviewing an existing CSP, validate:\n- All external URLs actually loaded by the site are covered in the policy\n- Runtime hosts are included for the site's cloud\n\nPresent the composed or corrected CSP for review. Recommend starting in report-only mode (`HTTP\u002FContent-Security-Policy-Report-Only`) before enforcing.\n\n---\n\n## 4. Apply changes\n\nSkip in **review mode**.\n\nFor **existing** settings: use `Edit` on the YAML file directly — change the `value` field.\n\nFor **new** settings: use the shared create script:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fscripts\u002Fcreate-site-setting.js\" \\\n  --projectRoot \"\u003CPROJECT_ROOT>\" \\\n  --name \"\u003Csetting-name>\" \\\n  --value \"\u003Cvalue>\" \\\n  --description \"\u003Cdescription>\"\n```\n\nSee `references\u002Fcommands.md` for details.\n\nAfter all changes are applied, offer to deploy: \"Ready to deploy these changes? They take effect after the next deploy.\" If yes, invoke `\u002Fdeploy-site`.\n\n---\n\n## 5. Summarize\n\n### 5.1 Review mode\n\nFirst, read the configured `HTTP\u002F*` site settings (from Step 2 — you already have them). Then write `\u003CREVIEW_DIR>\u002Fheader-annotations.json` with a plain-language description for each header and, when the configured value has a genuine issue (missing critical directive, weak value), a suggested fix. The transform script no longer hardcodes header descriptions — they come from you.\n\n```json\n{\n  \"headers\": {\n    \"HTTP\u002F\u003CHeaderName>\": { \"description\": \"What this header does, in plain language.\", \"fix\": \"Optional fix if the configured value has a genuine issue.\" }\n  }\n}\n```\n\nUse `references\u002Fheaders-reference.md` for authoritative descriptions and validation rules. Surface a `fix` **only** when the value has a real problem — do not editorialize on every header.\n\nThen run the transform:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fmanage-headers\u002Fscripts\u002Ftransform-headers.js\" \\\n  --projectRoot \"\u003CPROJECT_ROOT>\" \\\n  --annotations \"\u003CREVIEW_DIR>\u002Fheader-annotations.json\"\n```\n\nWrite the stdout to `\u003CREVIEW_DIR>\u002Fmanage-headers.json` and stop. The transform emits `{ status, findings, details }`; the orchestrating skill handles presentation.\n\n### 5.2 Present summary\n\nSkip in **review mode**.\n\nPlain-language summary: what was changed, what gaps remain, and what is already well-configured.\n\n### 5.3 Record skill usage\n\n> Reference: `${PLUGIN_ROOT}\u002Freferences\u002Fskill-tracking-reference.md`\n>\n> Use `--skillName \"ManageHeaders\"`.\n\n### 5.4 Offer follow-ups\n\nIf a natural follow-up exists based on findings, suggest it. If no meaningful follow-up exists, end the skill.\n\n---\n\n## Constraints\n\n- **Plain language** — MUST NOT use technical jargon with the user. Explain header names using everyday language.\n- **headers-reference.md is the source of truth** — recommended values and the recognized header catalogue live there. Read it before assessing.\n- **Context-aware interactions** — every recommendation MUST reflect the site's actual configuration and usage:\n  - Read the site's source files, integrations, and auth setup before recommending any value.\n  - Never recommend a value without verifying it will not break the site's functionality (see the \"Context to verify\" column in headers-reference.md).\n  - Acknowledge existing values when proposing changes — they may be intentional.\n  - For CSP, reference actual external URLs found in the project's source files.\n  - For CORS, verify the site's actual cross-origin consumers before scoping.\n  - For Cross-Origin-Opener-Policy, verify whether the site uses popup-based auth.\n  - For Cross-Origin-Resource-Policy, verify whether the site hosts Azure AD B2C custom login pages, is embedded cross-origin, or has integrations that load its resources. Leave absent or use `cross-origin` when unsure.\n- **Preview is for change review only** — include `preview` only on options that modify a setting value. Do not add to informational choices.\n- **Recommendations MUST NOT break the site** — before recommending a value, consider whether it would block resources the site actually uses. For CSP, always verify that runtime sources and project external URLs are included. For CORS, verify the site's actual cross-origin needs. When unsure, recommend report-only mode first.\n- **NEVER recommend broadening an existing policy** — if the user already has a tight CSP, CORS scope, or restrictive header value, do not suggest making it less restrictive. A working tight policy is better than a broad one. Never recommend `https:` wildcards in CSP directives — list specific hosts instead.\n- **Deploy after changes** — header changes only take effect after deploying. Always offer `\u002Fdeploy-site` after applying changes.\n\n## References\n\n- `references\u002Fheaders-reference.md` — recognized header catalogue, recommended values, CSP composition rules, runtime sources. Read before Step 2 (inspect) and Step 3 (assess) in **interactive** mode.\n- `references\u002Fcommands.md` — shared `create-site-setting.js` usage. Read at Step 4 (apply) when creating new settings.\n",{"name":5,"model":59,"description":7,"allowed-tools":60,"argument-hint":61,"user-invocable":62},"opus","Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate, TaskList","[optional: --review \u003Cout-dir>]",true,"main","0a55a88fa2855404029d1e5450faf92878baf763","plugins\u002Fpower-pages\u002Fskills\u002Fmanage-headers",232,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills","https:\u002F\u002Fmicrosoft.github.io\u002Fpower-platform-skills\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 21:46:39",{"source":9,"skillName":5,"commands":74,"prompt":84,"zipAvailable":62},[75,78,81],{"tool":76,"command":77},"npx","npx skills add microsoft\u002Fpower-platform-skills --skill manage-headers",{"tool":79,"command":80},"bunx","bunx skills add microsoft\u002Fpower-platform-skills --skill manage-headers",{"tool":82,"command":83},"pnpm","pnpm dlx skills add microsoft\u002Fpower-platform-skills --skill manage-headers","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fmanage-headers\u002FSKILL.md",[86,92,98,104,108,112,116],{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"assets\u002Fapi-design-checklist.md","ASSET","资产文件",3865,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fplugins\u002Fbackend-development\u002Fskills\u002Fapi-design-principles\u002Fassets\u002Fapi-design-checklist.md",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"assets\u002Frest-api-template.py","SCRIPT","脚本",5323,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fplugins\u002Fbackend-development\u002Fskills\u002Fapi-design-principles\u002Fassets\u002Frest-api-template.py",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fcommands.md","REFERENCE","参考文档",2679,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fmanage-headers\u002Freferences\u002Fcommands.md",{"path":105,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fgraphql-schema-design.md",9029,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fplugins\u002Fbackend-development\u002Fskills\u002Fapi-design-principles\u002Freferences\u002Fgraphql-schema-design.md",{"path":109,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Fheaders-reference.md",9858,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fmanage-headers\u002Freferences\u002Fheaders-reference.md",{"path":113,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Frest-best-practices.md",7548,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fplugins\u002Fbackend-development\u002Fskills\u002Fapi-design-principles\u002Freferences\u002Frest-best-practices.md",{"path":117,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":118,"sourceHtmlUrl":119},"scripts\u002Ftransform-headers.js",4007,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fmanage-headers\u002Fscripts\u002Ftransform-headers.js",[121,129,156,182,206,224],{"skillNo":122,"name":123,"nameZh":17,"description":124,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":128},"01M78JN2BFRRV1J54Q6WKZQ08D","compare-site-configurations","Compare Power Pages site configurations between two environments, such as dev, test and production, or between a local download and the live site, and explain which differences change site behavior. Use when a site works in one environment but not another (for example, works in dev but fails in test), to check configuration drift before promoting or deploying, or to see what changed between two sites. Produces a shareable HTML report and a JSON file that VS Code can import.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fcompare-site-configurations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":130,"name":131,"nameZh":132,"description":133,"descriptionZh":134,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":135,"categories":136,"keywords":143,"publishedAt":54},"01M699WVHX0XN59EPBTTPEKYPG","setup","Process Intelligence 配置与登录","Use when Process Intelligence needs building, explicit cloud\u002Faccount\u002Fenvironment configuration, sign-in, connection diagnostics, or recovery from an authentication error.","当 Process Intelligence 需要搭建、显式的云\u002F账户\u002F环境配置、登录、连接诊断，或从认证错误中恢复时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Fsetup\u002FSKILL.md",[137,140],{"categoryNo":138,"categoryName":139,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":141,"categoryName":142,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[131,144,145,146,147,148,35,149,150,151,47,152,153,154,45,155],"configuration","diagnostics","error","environment","cloud","connection","authentication","use","recovery","process","sign","intelligence",{"skillNo":157,"name":158,"nameZh":159,"description":160,"descriptionZh":161,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":162,"categories":163,"keywords":170,"publishedAt":54},"01M699WSR9EX55YY1WD9J22FEG","report-issue","流程智能问题报告撰写","Use when the user wants a Process Intelligence bug-report draft or support summary for a failed operation.","当用户需要针对失败操作起草流程智能（Process Intelligence）缺陷报告或支持摘要时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Freport-issue\u002FSKILL.md",[164,167],{"categoryNo":165,"categoryName":166,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",{"categoryNo":168,"categoryName":169,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查",[171,172,173,174,151,35,175,176,153,177,155,178,179,180,181],"issue","report","report issue","bug-report","operation","draft","bug","summary","user","for","support",{"skillNo":183,"name":184,"nameZh":185,"description":186,"descriptionZh":187,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":188,"categories":189,"keywords":194,"publishedAt":54},"01M699WR26YQ9Q21KE6MJF5B2G","investigate-process","流程挖掘问题调查","Use when a broad Process Mining business question, observed pattern or competing explanation needs investigation across analytical perspectives.","当需要从多个分析视角调查宽泛的流程挖掘（Process Mining）业务问题、观察到的模式或相互竞争的解释时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Finvestigate-process\u002FSKILL.md",[190,193],{"categoryNo":191,"categoryName":192,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":165,"categoryName":166,"taxonomyType":23,"taxonomyTypeDesc":24},[195,153,196,197,151,198,199,35,200,201,202,45,203,204,205],"investigate","investigate process","question","process mining","business","across","perspectives","mining","pattern","investigation","analytical",{"skillNo":207,"name":208,"nameZh":209,"description":210,"descriptionZh":211,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":212,"categories":213,"keywords":216,"publishedAt":54},"01M699WP9SDG5ZR12P8VYNXKTN","derive-metric","派生指标计算","Use when a requested measure is missing, a saved custom metric needs reuse, or an ephemeral formula or derived scalar is needed.","当所需的度量指标缺失、需要复用已保存的自定义指标，或需要临时公式或派生标量时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Fderive-metric\u002FSKILL.md",[214,215],{"categoryNo":191,"categoryName":192,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":165,"categoryName":166,"taxonomyType":23,"taxonomyTypeDesc":24},[217,218,219,220,221,222,151,35,223,45],"metric","derive metric","missing","formula","custom","reuse","saved",{"skillNo":225,"name":226,"nameZh":227,"description":228,"descriptionZh":229,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":230,"categories":231,"keywords":234,"publishedAt":54},"01M699WMG5R8P6SMTDAS1TKF9E","compare-cohorts","流程队列对比分析","Use when comparing process cohorts, departments, periods or before-and-after results under matched definitions.","用于在统一的定义下比较流程队列（cohort）、部门、时间段或前后结果。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Fcompare-cohorts\u002FSKILL.md",[232,233],{"categoryNo":191,"categoryName":192,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":165,"categoryName":166,"taxonomyType":23,"taxonomyTypeDesc":24},[235,236,151,35,237,153,45],"compare","compare cohorts","results"]