[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699VQYTG82RXA5QNWFJEZD9":3,"skill-same:01M699VQYTG82RXA5QNWFJEZD9":114},{"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},"01M699VQYTG82RXA5QNWFJEZD9","scan-site","Power Pages 站点安全扫描","Runs a security scan on a deployed Power Pages site, fetches the latest scan report, and produces a plain-language summary. Scans the live site's public surface for vulnerabilities and surfaces issues by severity. Use when the user wants to scan, check, test, audit, or assess a published site, find vulnerabilities on production, view the latest scan report, see previous scan results, run a security audit, or asks \"how safe is my live site?\", \"is my site vulnerable?\", \"audit my production site\" — even if they say \"find issues\" or \"check for problems\" without mentioning \"scan\" or \"security\".","对已部署的 Power Pages 站点执行安全扫描，获取最新扫描报告，并生成通俗易懂的摘要。扫描线上站点的公开攻击面以发现漏洞，并按严重程度呈现问题。当用户想要扫描、检查、测试、审计或评估已发布站点，查找生产环境漏洞，查看最新扫描报告或历史扫描结果，执行安全审计，或提出「我的线上站点有多安全？」「我的站点有漏洞吗？」「审计我的生产站点」等问题时使用——即使用户只说「找问题」或「检查问题」而未提及「扫描」或「安全」。","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\u002Fscan-site\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],"scan","scan site","site","security audit","when","my","live","surfaces","power","write","read","Bash","how","review","audit","security scan","issues","run","power pages","test","vulnerabilities","security","safe","2026-11-10 10:12:30",false,"---\nname: scan-site\ndescription: >-\n  Runs a security scan on a deployed Power Pages site, fetches the latest\n  scan report, and produces a plain-language summary. Scans the live site's\n  public surface for vulnerabilities and surfaces issues by severity. Use\n  when the user wants to scan, check, test, audit, or assess a published\n  site, find vulnerabilities on production, view the latest scan report,\n  see previous scan results, run a security audit, or asks \"how safe is\n  my live site?\", \"is my site vulnerable?\", \"audit my production site\" —\n  even if they say \"find issues\" or \"check for problems\" without mentioning\n  \"scan\" or \"security\".\nuser-invocable: true\nargument-hint: \"[optional: --review \u003Cout-dir>]\"\nallowed-tools: Read, Write, 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# Scan Site\n\nRun a security scan on a deployed Power Pages site, fetch the latest scan report, and surface findings in a plain-language summary. The scan runs server-side; duration depends on site size — small sites finish in minutes, large sites can take hours.\n\nThis skill scans the live deployed site, not local source code.\n\n**Initial request:** $ARGUMENTS\n\n## Gotchas\n\n- **Website record id vs portal id.** `.powerpages-site\u002Fwebsite.yml` stores the website record id, not the portal id. Every script takes `--portalId`. Resolve once via `website.js --websiteId` during prerequisites.\n- **Never resolve by name.** Site names can duplicate inside an environment; only the website record id is safe.\n- **`null` from the resolver** means the site is not deployed, or the authenticated profile points at a different environment.\n- **Scans are long-running.** Duration depends on site size — small sites finish in minutes, large sites can take hours. Poll in the background and increase `--timeoutMinutes` for large sites.\n- **Only one scan per site at a time.** A start while a scan is running returns `Z003` — `start-deep-scan.js` reports it as `{ \"status\": \"already-running\" }` (exit 0).\n- **Rate limits may apply.** The service may throttle repeated scans on the same site. When throttled, wait and retry later.\n- **No completed scan yet.** A fresh site or a site mid-scan has no completed report — `get-latest-report.js` returns `{ \"status\": \"empty\" }`.\n\n## Workflow\n\n1. **Prerequisites** — Locate project, confirm sign-in, identify site\n2. **Check scan state** — Detect whether a scan is currently running\n3. **Choose an action** — Context-aware recommendation (run new scan \u002F show latest)\n4. **Run the scan** — Start and poll for completion\n5. **Fetch and summarize** — Get the report, present findings\n6. **Walk through follow-ups** — Route issues to the right downstream skill (only if the report contains issues)\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 | Check scan state · Choose an action (skip in review mode) |\n| 3 | After user confirms an action (or in review mode) | Run the scan (skip only if the user chose to view latest results in interactive mode) · Fetch and summarize (always) |\n| 4 | After fetch and summarize | Walk through follow-ups (only if the report contains issues AND not in review mode) |\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 — Step 3 (choose an action) is skipped, Step 4 (run scan) executes automatically (start a fresh scan or attach to a running one), Step 5 writes JSON only, and Step 6 (follow-ups) is skipped.\n\n### 1.2 Resolve site identifiers\n\nRead `.powerpages-site\u002Fwebsite.yml` → extract `id` field → that is `\u003CWEBSITE_ID>`.\n\nIf missing, the site has not been deployed. Tell the user and recommend `\u002Fdeploy-site`. Stop. Do **not** resolve by name or URL.\n\nResolve to portalId:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fscripts\u002Fwebsite.js\" --websiteId \"\u003CWEBSITE_ID>\"\n```\n\nCapture `Id` (portalId), `Type`, `Name`, `WebsiteUrl`. If exit code `2` → sign-in required (`pac auth create` or `az login`). If `null` → site not found in this environment. Stop in either case.\n\n---\n\n## 2. Check scan state\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fscan-site\u002Fscripts\u002Fpoll-deep-scan.js\" --portalId \"\u003CPORTAL_ID>\" --once\n```\n\n`--once` does a single status check, exits 0, and prints:\n\n- `{ \"status\": \"ongoing\" }` → a scan is currently running.\n- `{ \"status\": \"idle\" }` → no scan running.\n\nThen call `get-latest-report.js` to know whether a completed report exists:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fscan-site\u002Fscripts\u002Fget-latest-report.js\" --portalId \"\u003CPORTAL_ID>\"\n```\n\n`{ \"status\": \"ok\" }` means a report is available. `{ \"status\": \"empty\" }` means no completed scan exists.\n\n---\n\n## 3. Choose an action\n\nSkip in **review mode** — go straight to Step 4 (which always runs in review mode).\n\nMUST use plain language only. Never use words like CSP, CORS, OWASP, hardening, or scan profile.\n\n### Default approach\n\n\u003C!-- gate: scan-site:3.action-choice | category=plan | cancel-leaves=nothing -->\n\n> ? **Gate (plan · scan-site:3.action-choice):** Recommend an action based on the site's scan state (running, idle, has report, no report), then ask the user to accept or choose differently. Starting a new scan triggers a multi-minute backend run; using an existing report is free.\n>\n> **Trigger:** Phase 3 entry (interactive mode only — review mode bypasses to step 4).\n> **Why we ask:** Auto-starting a new scan wastes minutes if a recent report already answers the question; auto-using a stale report misses recent findings.\n> **Cancel leaves:** Nothing — no scan triggered, no report consumed.\n\nAnalyze the site's current state and **recommend the single most relevant action** via `AskUserQuestion`:\n\n- Scan running, no completed report → recommend waiting for the running scan to finish.\n- Scan running, report exists → recommend showing the latest results while the new scan continues.\n- Idle, no completed report → recommend running a new scan.\n- Idle, recent report exists → ask whether to use the existing report or run a fresh scan.\n\nIf the site's state does not warrant a specific recommendation, do not force one — ask what the user wants to do.\n\n### Option rules\n\n\u003C!-- not-a-gate: meta-documentation describing how to structure `AskUserQuestion` options in this skill — not a literal call site. The actual prompt (\"use existing report \u002F run a fresh scan\") fires dynamically in §3 Default approach. See approval-gates.md §6.24a + §6.27. -->\n\nWhen presenting options via `AskUserQuestion`:\n- Keep `label` to 1–5 words. Include `description` on every option.\n- For options that trigger a new scan, surface the relevant caveats inside that option's `description` so the user has them at decision time. Do not ask a separate confirmation question after the user picks the option.\n- Include `preview` only when the option represents a concrete change (starting a new scan). Do not add `preview` to \"show latest\" or informational choices.\n- Only show options that are actionable given the current state. If a scan is already running, do not offer \"Start a new scan\".\n- Mark \"(Recommended)\" only when the site's state justifies it.\n\n---\n\n## 4. Run the scan\n\nIn **review mode**, always execute this step: if a scan is already running, attach to it and poll; otherwise start a fresh scan and poll. Do not ask — review mode runs end-to-end without user interaction.\n\nIn interactive mode, skip if the user chose to view the latest results.\n\nStart the scan:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fscan-site\u002Fscripts\u002Fstart-deep-scan.js\" --portalId \"\u003CPORTAL_ID>\"\n```\n\nIf stdout is `{ \"status\": \"already-running\" }`, skip ahead to polling — there is already a scan in progress.\n\nThen poll for completion:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fscan-site\u002Fscripts\u002Fpoll-deep-scan.js\" --portalId \"\u003CPORTAL_ID>\"\n```\n\nRun polling with `run_in_background: true` so the user can keep working. The script exits when the scan finishes or the timeout passes (default 20 minutes). If it times out, fetch whatever report is available and note the timeout in the summary.\n\n---\n\n## 5. Fetch and summarize\n\n### 5.1 Fetch and transform the report\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fscan-site\u002Fscripts\u002Ftransform-report.js\" --portalId \"\u003CPORTAL_ID>\"\n```\n\nParse the stdout JSON. The status field can be:\n\n- `ok` — a normal report with `findings` and `details`.\n- `empty` — no completed scan exists for this site (e.g., fresh site or scan still running). Record a single `info` finding explaining this and continue.\n- `malformed` — the API returned a response missing the `Rules` array. The transform emits a single `warning` finding describing this; surface it to the user and recommend re-running the scan.\n\nSee `references\u002Fscan-reference.md` for the `Risk` → severity mapping the script applies.\n\n### 5.2 Review mode\n\nIn **review mode**, skip the HTML report and write the transform stdout to `\u003CREVIEW_DIR>\u002Fscan-site.json`. Then stop. The transform emits `{ status, findings, details }`; the orchestrating skill handles presentation.\n\n### 5.3 Render HTML report\n\nSkip in **review mode**.\n\nRender uses the same shared template as the consolidated security review. Build a single-section review-data payload, then render:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fscripts\u002Fbuild-review-data.js\" \\\n  --reportName \"Site Scan\" \\\n  --inputDir \"\u003CTEMP_DIR>\" \\\n  --siteName \"\u003CSITE_NAME>\" \\\n  --goalLabel \"Live Site Scan\" \\\n  --scopeLabel \"\u003CSCOPE_LABEL>\" \\\n  --summary \"\u003CSUMMARY_TEXT>\" \\\n  --output \"\u003CTEMP_DIR>\u002Fdata.json\"\n\nnode \"${PLUGIN_ROOT}\u002Fscripts\u002Frender-review.js\" \\\n  --data \"\u003CTEMP_DIR>\u002Fdata.json\" \\\n  --output \"\u003CPROJECT_ROOT>\u002Fdocs\u002Fsite-scan-\u003CYYYY-MM-DD-HHMMSS>.html\"\n```\n\n`\u003CTEMP_DIR>` should contain only `scan-site.json` (the transform output from Step 5.1) — `build-review-data.js` ignores intermediate files. The filename **must** include the local timestamp (e.g., `site-scan-2026-05-14-053805.html`). Delete `\u003CTEMP_DIR>` after the render succeeds. Open the rendered HTML in the browser.\n\n### 5.4 Present summary\n\nPlain-language summary in the chat: total findings, count by severity, and what changed since the last scan if available. Do not lead with technical names.\n\n### 5.5 Record skill usage\n\n> Reference: `${PLUGIN_ROOT}\u002Freferences\u002Fskill-tracking-reference.md`\n>\n> Use `--skillName \"ScanSite\"`.\n\n---\n\n## 6. Walk through follow-ups\n\nSkip in **review mode**. Skip if the report has no issues.\n\nGroup findings by which downstream skill can help:\n\n- Header \u002F cookie issues → `\u002Fmanage-headers`\n- WAF \u002F firewall issues (block bots, rate-limit pages, restrict IPs\u002Fcountries) → `\u002Fmanage-firewall`\n- Permission issues → `\u002Faudit-permissions` to review existing table permissions, and\u002For `\u002Fcreate-webroles` to set up role-based access\n- Login or external identity issues → `\u002Fsetup-auth`\n- Code-level issues (exposed debug pages, information leakage, source visible publicly) → suggest a manual code fix; there is no routed skill for these findings\n\nSuggest only the skills that match findings actually present in the report. If a finding does not map to any skill, surface it as a manual follow-up the user can act on. If no meaningful follow-up exists, end the skill — do not ask just to ask.\n\n---\n\n## Constraints\n\n- **Plain language** — MUST NOT use technical jargon with the user. Use everyday language; explain the technical name only when asked.\n- **Read-only** — this skill only runs scans and reads results. It never enables WAF, deletes scans, or changes site configuration.\n- **Background long-running calls** — start the scan, then poll via `run_in_background: true` so the user can continue working.\n- **Context-aware interactions** — every recommendation MUST reflect the site's current state:\n  - Never offer \"Start a new scan\" while one is already running.\n  - Never offer \"Show latest results\" when no completed report exists.\n  - Mark \"(Recommended)\" only when the state justifies it.\n- **Preview is for change review only** — include `preview` only on options that start a new scan. Do not add to navigation or informational choices.\n\n## References\n\n- `references\u002Fcommands.md` — script flags, response shapes, error catalogue, operating notes. Read § \"Common error catalogue\" when a script returns a non-zero exit code.\n- `references\u002Fscan-reference.md` — field-level schema for the deep-scan report, alert risk values, rule statuses, and severity mapping. Read when normalizing findings.\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# Scan Site\n\nRun a security scan on a deployed Power Pages site, fetch the latest scan report, and surface findings in a plain-language summary. The scan runs server-side; duration depends on site size — small sites finish in minutes, large sites can take hours.\n\nThis skill scans the live deployed site, not local source code.\n\n**Initial request:** $ARGUMENTS\n\n## Gotchas\n\n- **Website record id vs portal id.** `.powerpages-site\u002Fwebsite.yml` stores the website record id, not the portal id. Every script takes `--portalId`. Resolve once via `website.js --websiteId` during prerequisites.\n- **Never resolve by name.** Site names can duplicate inside an environment; only the website record id is safe.\n- **`null` from the resolver** means the site is not deployed, or the authenticated profile points at a different environment.\n- **Scans are long-running.** Duration depends on site size — small sites finish in minutes, large sites can take hours. Poll in the background and increase `--timeoutMinutes` for large sites.\n- **Only one scan per site at a time.** A start while a scan is running returns `Z003` — `start-deep-scan.js` reports it as `{ \"status\": \"already-running\" }` (exit 0).\n- **Rate limits may apply.** The service may throttle repeated scans on the same site. When throttled, wait and retry later.\n- **No completed scan yet.** A fresh site or a site mid-scan has no completed report — `get-latest-report.js` returns `{ \"status\": \"empty\" }`.\n\n## Workflow\n\n1. **Prerequisites** — Locate project, confirm sign-in, identify site\n2. **Check scan state** — Detect whether a scan is currently running\n3. **Choose an action** — Context-aware recommendation (run new scan \u002F show latest)\n4. **Run the scan** — Start and poll for completion\n5. **Fetch and summarize** — Get the report, present findings\n6. **Walk through follow-ups** — Route issues to the right downstream skill (only if the report contains issues)\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 | Check scan state · Choose an action (skip in review mode) |\n| 3 | After user confirms an action (or in review mode) | Run the scan (skip only if the user chose to view latest results in interactive mode) · Fetch and summarize (always) |\n| 4 | After fetch and summarize | Walk through follow-ups (only if the report contains issues AND not in review mode) |\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 — Step 3 (choose an action) is skipped, Step 4 (run scan) executes automatically (start a fresh scan or attach to a running one), Step 5 writes JSON only, and Step 6 (follow-ups) is skipped.\n\n### 1.2 Resolve site identifiers\n\nRead `.powerpages-site\u002Fwebsite.yml` → extract `id` field → that is `\u003CWEBSITE_ID>`.\n\nIf missing, the site has not been deployed. Tell the user and recommend `\u002Fdeploy-site`. Stop. Do **not** resolve by name or URL.\n\nResolve to portalId:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fscripts\u002Fwebsite.js\" --websiteId \"\u003CWEBSITE_ID>\"\n```\n\nCapture `Id` (portalId), `Type`, `Name`, `WebsiteUrl`. If exit code `2` → sign-in required (`pac auth create` or `az login`). If `null` → site not found in this environment. Stop in either case.\n\n---\n\n## 2. Check scan state\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fscan-site\u002Fscripts\u002Fpoll-deep-scan.js\" --portalId \"\u003CPORTAL_ID>\" --once\n```\n\n`--once` does a single status check, exits 0, and prints:\n\n- `{ \"status\": \"ongoing\" }` → a scan is currently running.\n- `{ \"status\": \"idle\" }` → no scan running.\n\nThen call `get-latest-report.js` to know whether a completed report exists:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fscan-site\u002Fscripts\u002Fget-latest-report.js\" --portalId \"\u003CPORTAL_ID>\"\n```\n\n`{ \"status\": \"ok\" }` means a report is available. `{ \"status\": \"empty\" }` means no completed scan exists.\n\n---\n\n## 3. Choose an action\n\nSkip in **review mode** — go straight to Step 4 (which always runs in review mode).\n\nMUST use plain language only. Never use words like CSP, CORS, OWASP, hardening, or scan profile.\n\n### Default approach\n\n\u003C!-- gate: scan-site:3.action-choice | category=plan | cancel-leaves=nothing -->\n\n> ? **Gate (plan · scan-site:3.action-choice):** Recommend an action based on the site's scan state (running, idle, has report, no report), then ask the user to accept or choose differently. Starting a new scan triggers a multi-minute backend run; using an existing report is free.\n>\n> **Trigger:** Phase 3 entry (interactive mode only — review mode bypasses to step 4).\n> **Why we ask:** Auto-starting a new scan wastes minutes if a recent report already answers the question; auto-using a stale report misses recent findings.\n> **Cancel leaves:** Nothing — no scan triggered, no report consumed.\n\nAnalyze the site's current state and **recommend the single most relevant action** via `AskUserQuestion`:\n\n- Scan running, no completed report → recommend waiting for the running scan to finish.\n- Scan running, report exists → recommend showing the latest results while the new scan continues.\n- Idle, no completed report → recommend running a new scan.\n- Idle, recent report exists → ask whether to use the existing report or run a fresh scan.\n\nIf the site's state does not warrant a specific recommendation, do not force one — ask what the user wants to do.\n\n### Option rules\n\n\u003C!-- not-a-gate: meta-documentation describing how to structure `AskUserQuestion` options in this skill — not a literal call site. The actual prompt (\"use existing report \u002F run a fresh scan\") fires dynamically in §3 Default approach. See approval-gates.md §6.24a + §6.27. -->\n\nWhen presenting options via `AskUserQuestion`:\n- Keep `label` to 1–5 words. Include `description` on every option.\n- For options that trigger a new scan, surface the relevant caveats inside that option's `description` so the user has them at decision time. Do not ask a separate confirmation question after the user picks the option.\n- Include `preview` only when the option represents a concrete change (starting a new scan). Do not add `preview` to \"show latest\" or informational choices.\n- Only show options that are actionable given the current state. If a scan is already running, do not offer \"Start a new scan\".\n- Mark \"(Recommended)\" only when the site's state justifies it.\n\n---\n\n## 4. Run the scan\n\nIn **review mode**, always execute this step: if a scan is already running, attach to it and poll; otherwise start a fresh scan and poll. Do not ask — review mode runs end-to-end without user interaction.\n\nIn interactive mode, skip if the user chose to view the latest results.\n\nStart the scan:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fscan-site\u002Fscripts\u002Fstart-deep-scan.js\" --portalId \"\u003CPORTAL_ID>\"\n```\n\nIf stdout is `{ \"status\": \"already-running\" }`, skip ahead to polling — there is already a scan in progress.\n\nThen poll for completion:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fscan-site\u002Fscripts\u002Fpoll-deep-scan.js\" --portalId \"\u003CPORTAL_ID>\"\n```\n\nRun polling with `run_in_background: true` so the user can keep working. The script exits when the scan finishes or the timeout passes (default 20 minutes). If it times out, fetch whatever report is available and note the timeout in the summary.\n\n---\n\n## 5. Fetch and summarize\n\n### 5.1 Fetch and transform the report\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fskills\u002Fscan-site\u002Fscripts\u002Ftransform-report.js\" --portalId \"\u003CPORTAL_ID>\"\n```\n\nParse the stdout JSON. The status field can be:\n\n- `ok` — a normal report with `findings` and `details`.\n- `empty` — no completed scan exists for this site (e.g., fresh site or scan still running). Record a single `info` finding explaining this and continue.\n- `malformed` — the API returned a response missing the `Rules` array. The transform emits a single `warning` finding describing this; surface it to the user and recommend re-running the scan.\n\nSee `references\u002Fscan-reference.md` for the `Risk` → severity mapping the script applies.\n\n### 5.2 Review mode\n\nIn **review mode**, skip the HTML report and write the transform stdout to `\u003CREVIEW_DIR>\u002Fscan-site.json`. Then stop. The transform emits `{ status, findings, details }`; the orchestrating skill handles presentation.\n\n### 5.3 Render HTML report\n\nSkip in **review mode**.\n\nRender uses the same shared template as the consolidated security review. Build a single-section review-data payload, then render:\n\n```bash\nnode \"${PLUGIN_ROOT}\u002Fscripts\u002Fbuild-review-data.js\" \\\n  --reportName \"Site Scan\" \\\n  --inputDir \"\u003CTEMP_DIR>\" \\\n  --siteName \"\u003CSITE_NAME>\" \\\n  --goalLabel \"Live Site Scan\" \\\n  --scopeLabel \"\u003CSCOPE_LABEL>\" \\\n  --summary \"\u003CSUMMARY_TEXT>\" \\\n  --output \"\u003CTEMP_DIR>\u002Fdata.json\"\n\nnode \"${PLUGIN_ROOT}\u002Fscripts\u002Frender-review.js\" \\\n  --data \"\u003CTEMP_DIR>\u002Fdata.json\" \\\n  --output \"\u003CPROJECT_ROOT>\u002Fdocs\u002Fsite-scan-\u003CYYYY-MM-DD-HHMMSS>.html\"\n```\n\n`\u003CTEMP_DIR>` should contain only `scan-site.json` (the transform output from Step 5.1) — `build-review-data.js` ignores intermediate files. The filename **must** include the local timestamp (e.g., `site-scan-2026-05-14-053805.html`). Delete `\u003CTEMP_DIR>` after the render succeeds. Open the rendered HTML in the browser.\n\n### 5.4 Present summary\n\nPlain-language summary in the chat: total findings, count by severity, and what changed since the last scan if available. Do not lead with technical names.\n\n### 5.5 Record skill usage\n\n> Reference: `${PLUGIN_ROOT}\u002Freferences\u002Fskill-tracking-reference.md`\n>\n> Use `--skillName \"ScanSite\"`.\n\n---\n\n## 6. Walk through follow-ups\n\nSkip in **review mode**. Skip if the report has no issues.\n\nGroup findings by which downstream skill can help:\n\n- Header \u002F cookie issues → `\u002Fmanage-headers`\n- WAF \u002F firewall issues (block bots, rate-limit pages, restrict IPs\u002Fcountries) → `\u002Fmanage-firewall`\n- Permission issues → `\u002Faudit-permissions` to review existing table permissions, and\u002For `\u002Fcreate-webroles` to set up role-based access\n- Login or external identity issues → `\u002Fsetup-auth`\n- Code-level issues (exposed debug pages, information leakage, source visible publicly) → suggest a manual code fix; there is no routed skill for these findings\n\nSuggest only the skills that match findings actually present in the report. If a finding does not map to any skill, surface it as a manual follow-up the user can act on. If no meaningful follow-up exists, end the skill — do not ask just to ask.\n\n---\n\n## Constraints\n\n- **Plain language** — MUST NOT use technical jargon with the user. Use everyday language; explain the technical name only when asked.\n- **Read-only** — this skill only runs scans and reads results. It never enables WAF, deletes scans, or changes site configuration.\n- **Background long-running calls** — start the scan, then poll via `run_in_background: true` so the user can continue working.\n- **Context-aware interactions** — every recommendation MUST reflect the site's current state:\n  - Never offer \"Start a new scan\" while one is already running.\n  - Never offer \"Show latest results\" when no completed report exists.\n  - Mark \"(Recommended)\" only when the state justifies it.\n- **Preview is for change review only** — include `preview` only on options that start a new scan. Do not add to navigation or informational choices.\n\n## References\n\n- `references\u002Fcommands.md` — script flags, response shapes, error catalogue, operating notes. Read § \"Common error catalogue\" when a script returns a non-zero exit code.\n- `references\u002Fscan-reference.md` — field-level schema for the deep-scan report, alert risk values, rule statuses, and severity mapping. Read when normalizing findings.\n",{"name":5,"model":59,"description":7,"allowed-tools":60,"argument-hint":61,"user-invocable":62},"opus","Read, Write, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate, TaskList","[optional: --review \u003Cout-dir>]",true,"main","0a55a88fa2855404029d1e5450faf92878baf763","plugins\u002Fpower-pages\u002Fskills\u002Fscan-site",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 scan-site",{"tool":79,"command":80},"bunx","bunx skills add microsoft\u002Fpower-platform-skills --skill scan-site",{"tool":82,"command":83},"pnpm","pnpm dlx skills add microsoft\u002Fpower-platform-skills --skill scan-site","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fscan-site\u002FSKILL.md",[86,92,96,102,106,110],{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fcommands.md","REFERENCE","参考文档",10895,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fscan-site\u002Freferences\u002Fcommands.md",{"path":93,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fscan-reference.md",4707,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fscan-site\u002Freferences\u002Fscan-reference.md",{"path":97,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fget-latest-report.js","SCRIPT","脚本",1643,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fscan-site\u002Fscripts\u002Fget-latest-report.js",{"path":103,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fpoll-deep-scan.js",3797,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fscan-site\u002Fscripts\u002Fpoll-deep-scan.js",{"path":107,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Fstart-deep-scan.js",1512,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fscan-site\u002Fscripts\u002Fstart-deep-scan.js",{"path":111,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Ftransform-report.js",7502,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fscan-site\u002Fscripts\u002Ftransform-report.js",[115,123,150,176,200,218],{"skillNo":116,"name":117,"nameZh":17,"description":118,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":122},"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":124,"name":125,"nameZh":126,"description":127,"descriptionZh":128,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":129,"categories":130,"keywords":137,"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",[131,134],{"categoryNo":132,"categoryName":133,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":135,"categoryName":136,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[125,138,139,140,141,142,35,143,144,145,42,146,147,148,41,149],"configuration","diagnostics","error","environment","cloud","connection","authentication","use","recovery","process","sign","intelligence",{"skillNo":151,"name":152,"nameZh":153,"description":154,"descriptionZh":155,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":156,"categories":157,"keywords":164,"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",[158,161],{"categoryNo":159,"categoryName":160,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",{"categoryNo":162,"categoryName":163,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查",[165,166,167,168,145,35,169,170,147,171,149,172,173,174,175],"issue","report","report issue","bug-report","operation","draft","bug","summary","user","for","support",{"skillNo":177,"name":178,"nameZh":179,"description":180,"descriptionZh":181,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":182,"categories":183,"keywords":188,"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",[184,187],{"categoryNo":185,"categoryName":186,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":159,"categoryName":160,"taxonomyType":23,"taxonomyTypeDesc":24},[189,147,190,191,145,192,193,35,194,195,196,41,197,198,199],"investigate","investigate process","question","process mining","business","across","perspectives","mining","pattern","investigation","analytical",{"skillNo":201,"name":202,"nameZh":203,"description":204,"descriptionZh":205,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":206,"categories":207,"keywords":210,"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",[208,209],{"categoryNo":185,"categoryName":186,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":159,"categoryName":160,"taxonomyType":23,"taxonomyTypeDesc":24},[211,212,213,214,215,216,145,35,217,41],"metric","derive metric","missing","formula","custom","reuse","saved",{"skillNo":219,"name":220,"nameZh":221,"description":222,"descriptionZh":223,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":224,"categories":225,"keywords":228,"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",[226,227],{"categoryNo":185,"categoryName":186,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":159,"categoryName":160,"taxonomyType":23,"taxonomyTypeDesc":24},[229,230,145,35,231,147,41],"compare","compare cohorts","results"]