Token导航 LogoToken导航

Agent Skill · 研究检索

deploy-site(部署站点)

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

deploy-site 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 47,601。

总安装 727周安装 30GitHub Stars 228下载 238核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:deploy-site(部署站点)
来源仓库:https://github.com/microsoft/power-platform-skills
仓库路径:skills/deploy-site
安装命令:
npx skills add https://github.com/microsoft/power-platform-skills --skill deploy-site
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/microsoft/power-platform-skills --skill deploy-site

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

引导用户通过 PAC CLI 将 Power Pages 代码站点部署至 Power Platform 环境。适用于 Codex、Claude、Cursor、Gemini CLI 中企业级低代码站点发布,需验证工具链状态。系统性检查 PAC 可用性、认证状态与目标环境,分步执行构建与上传。

安装命令为 npx skills add https://github.com/microsoft/power-platform-skills --skill deploy-site。依赖 Microsoft 账户授权,部分操作需在 Azure 门户完成二次确认。

来源仓库内路径:skills/deploy-site

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/microsoft/power-platform-skills --skill deploy…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

deploy-site 怎么安装?

在终端执行 npx skills add https://github.com/microsoft/power-platform-skills --skill deploy-site。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

deploy-site 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

deploy-site 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

deploy-site 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

deploy-site 用的人多吗?

公开数据是累计安装 727 次,近一周安装 30 次,下载 238 次,GitHub 228 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

deploy-site 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
deploy-site

部署站点 · 本页

727228操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Plugin check: Run node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js" — if it outputs a message, show it to the user before proceeding.

Deploy Power Pages Code Site

Guide the user through deploying an existing Power Pages code site to a Power Pages environment using PAC CLI. Follow a systematic approach: verify tooling, authenticate, confirm the target environment, build and upload the site, and handle any blockers.

Core Principles

  • Verify before acting: Always confirm PAC CLI availability, authentication status, and the target environment before attempting any deployment.
  • Use TaskCreate/TaskUpdate: Track all progress throughout all phases — create the todo list upfront with all phases before starting any work.
  • Never change environment settings without consent: If deployment requires modifying environment configuration (e.g., unblocking JavaScript attachments), always explain the change and get explicit user permission first.

Initial request: $ARGUMENTS


Phase 1: Verify PAC CLI

Goal: Ensure PAC CLI is installed and available on the system PATH

Actions:

  1. Create todo list with all 6 phases (see Progress Tracking table)
  2. Run pac help to check if the PAC CLI is installed and available on the system PATH. pac help
  3. If the command succeeds: PAC CLI is installed. Proceed to Phase 2.
  4. If the command fails (command not found / not recognized):

1. Inform the user that PAC CLI is required but not installed. 2. Fetch installation instructions from https://aka.ms/PowerPlatformCLI using the following approach: - Tell the user: "PAC CLI is not installed. You can install it by running:" dotnet tool install --global Microsoft.PowerApps.CLI.Tool - If dotnet is also not available, direct the user to https://aka.ms/PowerPlatformCLI for full installation instructions including.NET SDK setup. 3. After installation, verify by running pac help again. 4. If it still fails, stop and ask the user to resolve the installation manually.

Output: PAC CLI installed and verified


Phase 2: Verify Authentication

Goal: Ensure the user is authenticated with PAC CLI and has a valid session

Actions:

  1. Run pac auth who to check the current authentication status. pac auth who
  2. If authenticated: Extract the following values from the output: Proceed to Phase 3.

- Environment name and URL - Environment ID — the GUID after Environment ID: - Cloud — the value after Cloud: (e.g., Public, UsGov, UsGovHigh, UsGovDod, China)

  1. If not authenticated:

1. Inform the user they are not authenticated with PAC CLI. 2. Use AskUserQuestion to ask for the environment URL: Question Header Options You are not authenticated with PAC CLI. Please provide your Power Pages environment URL (e.g., https://org12345.crm.dynamics.com) so I can authenticate you. Auth *(free text input via "Other")* Provide two placeholder options to guide the user: - "I'll paste the URL" (description: "Select 'Other' below and paste your environment URL") - "I don't know my URL" (description: "You can find it in the Power Platform admin center under Environments > your environment > Environment URL") 3. Once the user provides the URL, run the authentication command: pac auth create --environment "<USER_PROVIDED_URL>" This will open a browser window for the user to sign in. 4. After the command completes, verify by running pac auth who again. 5. If authentication succeeds, proceed to Phase 3. 6. If authentication fails, present the error to the user and help them troubleshoot.

Output: Authenticated PAC CLI session with environment name and URL extracted


Phase 3: Confirm Environment

Goal: Ensure the user is deploying to the correct target environment

Actions:

  1. Present the current environment information to the user and ask them to confirm. Use AskUserQuestion with the following structure: Question Header Options You are currently connected to environment: <ENV_NAME> (<ENV_URL>). Do you want to deploy to this environment? Environment Yes, use this environment, No, let me choose a different one
  2. If "Yes, use this environment": Proceed to Phase 4.
  3. If "No, let me choose a different one":

1. Run pac org list to retrieve all available environments: pac org list 2. Parse the output to extract environment names and URLs. 3. Use AskUserQuestion to present the available environments as options (pick up to 4 most relevant, or let user specify). 4. Once the user selects an environment, switch to it: pac org select --environment "<SELECTED_ENV_ID_OR_URL>" 5. Verify the switch by running pac auth who again.

Output: Confirmed target environment for deployment


Phase 4: Deploy the Code Site

Goal: Locate the project, build it, and upload to Power Pages

Actions:

4.1 Locate the Project Root

Determine the project root directory. The project root is the directory containing powerpages.config.json. Use Glob to search for it:

**/powerpages.config.json

If found in the current working directory or a subdirectory, use that directory as PROJECT_ROOT. If multiple are found, ask the user which one to deploy using AskUserQuestion.

If not found, ask the user to provide the path to the project root.

4.2 Offer Permissions Audit (Redeployments Only)

If .powerpages-site already exists (i.e., this is not the first deployment), table permissions and site settings may have drifted from the code since the last deployment. Offer to audit before deploying.

Use AskUserQuestion:

QuestionHeaderOptions
This site has been deployed before. Would you like to run a permissions audit to verify table permissions match your current code before deploying?AuditYes, audit permissions (Recommended), Skip — permissions are up to date

If "Yes": Invoke /audit-permissions to run the audit. After the audit completes, resume with Step 4.3. If "Skip": Proceed to Step 4.3.

If .powerpages-site does not exist (first deployment), skip this step — there are no existing permissions to audit.

4.3 Build the Site

Before uploading, ensure the site is built:

cd "<PROJECT_ROOT>"
npm run build

If the build fails, stop and help the user fix the build errors before retrying.

4.4 Upload to Power Pages

Run the upload command:

pac pages upload-code-site --rootPath "<PROJECT_ROOT>"

If the upload succeeds: Proceed to Phase 5 to verify the deployment.

If the upload fails: Check the error message:

  • If the failure is related to blocked JavaScript (.js) attachments → proceed to Phase 6
  • If the failure mentions .html type attachments are currently blocked → this is a misleading error. See Troubleshooting: HTML Blocked Attachment Error below
  • For other errors → present the error to the user and help them troubleshoot

Output: Site built and uploaded to Power Pages


Phase 5: Verify Deployment

Goal: Confirm the deployment was successful and handle post-deployment steps

Actions:

5.1 Verify .powerpages-site Folder

Confirm .powerpages-site exists and list its contents (web-roles/, site-settings/, table-permissions/).

5.2 Record Skill Usage

Reference: ${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md

Follow the skill tracking instructions in the reference to record this skill's usage. Use --skillName "DeploySite".

5.3 Confirm Upload Output

Review the output from the pac pages upload-code-site command in Phase 4 (or Phase 6 retry). Verify it reported a successful upload with no errors.

5.4 Commit Changes

Stage and commit deployment artifacts:

git add -A
git commit -m "Deploy site to Power Pages"

5.5 Check Activation Status

Run the activation status check:

node "${CLAUDE_PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"

Evaluate the JSON result:

  • If activated is true: Inform the user their site is already activated (show websiteUrl if present). Proceed to step 5.6, then skip to Suggest Next Steps. Do NOT ask about activation.
  • If activated is false: Proceed to step 5.5.1.
  • If error is present: Fall back to step 5.5.1. Do not block the deployment flow.
5.5.1 Ask About Activation (only if site is NOT already activated)

Ask the user if they want to activate the site using AskUserQuestion:

QuestionHeaderOptions
Site deployed successfully! Would you like to activate (provision) the site now so it gets a live URL?ActivateActivate now (Recommended) — Provision the site with a subdomain and make it live, Skip for now — I'll activate later

If "Activate now": Invoke the /activate-site skill. After activation completes, proceed to step 5.6 to clear the site cache. If "Skip for now": Suggest next steps (see Suggest Next Steps).

5.6 Clear Site Cache (Only If Activated)

After confirming the site is activated (either it was already activated in step 5.5, or the user just activated it in step 5.5.1), offer to clear the runtime cache so the deployed changes are immediately visible.

Prerequisites: The site must be activated and the project root must be known (from Phase 4.1).

Use AskUserQuestion to confirm before proceeding:

QuestionHeaderOptions
Would you like to restart the site so your latest changes are immediately visible? This may cause a brief downtime (a few seconds).RestartYes, restart site (Recommended), Skip — I'll restart later

If "Skip": Skip to Suggest Next Steps.

If "Yes": Run the cache-clearing script, passing the project root:

node "${CLAUDE_PLUGIN_ROOT}/scripts/clear-site-cache.js" --projectRoot "<PROJECT_ROOT>"

The script reads siteName from powerpages.config.json, looks up the website via the Power Platform admin API, and restarts it to flush the runtime cache.

Evaluate the result:

  • If success is true: Inform the user: "Site cache cleared — your latest changes should now be visible at ****."
  • If success is false: Warn the user that cache clearing failed and show the error, but do not block the deployment flow. The deployment itself succeeded; cache will eventually refresh on its own. Suggest the user can manually clear cache from the Power Pages admin center if needed.

Output: Deployment verified, changes committed, activation offered, cache cleared


Phase 6: Handle Blocked JavaScript

Goal: Resolve blocked JavaScript attachment errors and retry deployment

Actions:

6.1 Explain the Issue

Tell the user:

"The upload failed because JavaScript (.js) file attachments are blocked in your Power Pages environment. This is a security setting that prevents uploading.js files. To deploy a code site, this restriction needs to be relaxed for.js files."

6.2 Ask for Permission

Use AskUserQuestion:

QuestionHeaderOptions
Would you like to remove the JavaScript (.js) block from the environment's blocked attachments list? This is required to deploy code sites.Unblock JSYes, remove the.js block (Recommended), No, do not change environment settings

If "No": Stop and inform the user that the deployment cannot proceed without unblocking .js attachments.

If "Yes": Proceed to 6.3.

6.3 Update Blocked Attachments

  1. Run pac env list-settings to retrieve the current environment settings: pac env list-settings
  2. Find the blockedattachments property in the output. It will contain a semicolon-separated list of file extensions (e.g., ade;adp;app;asa;ashx;asmx;asp;bas;bat;cdx;cer;chm;class;cmd;com;config;cnt;cpl;crt;csh;der;dll;exe;fxp;hlp;hta;htr;htw;ida;idc;idq;inf;ins;isp;its;js;jse;ksh;lnk;mad;maf;mag;mam;maq;mar;mas;mat;mau;mav;maw;mda;mdb;mde;mdt;mdw;mdz;msc;msh;msh1;msh1xml;msh2;msh2xml;mshxml;msi;msp;mst;ops;pcd;pif;prf;prg;printer;pst;reg;rem;scf;scr;sct;shb;shs;shtm;shtml;soap;stm;tmp;url;vb;vbe;vbs;vsmacros;vss;vst;vsw;ws;wsc;wsf;wsh).
  3. Remove js from the list. Parse the semicolon-separated values, filter out js, and rejoin with semicolons.
  4. Update the setting: pac env update-settings --name blockedattachments --value "<UPDATED_LIST_WITHOUT_JS>"
  5. Confirm the update was successful.

6.4 Retry Upload

Run the upload command again:

pac pages upload-code-site --rootPath "<PROJECT_ROOT>"

If it succeeds: Proceed to Phase 5 to verify the deployment.

If it fails again with a different error, present the error to the user and help troubleshoot.

Output: JavaScript unblocked and site deployed successfully


Troubleshooting: HTML Blocked Attachment Error

If the upload fails with an error like:

Error: Unable to upload webfile name 'index.html' with record Id <GUID> as '.html' type attachments are currently blocked on this environment.

This error is misleading. The .html extension is not actually blocked — the real cause is a stale environment manifest file in the .powerpages-site folder. This manifest maps local files to Dataverse record IDs from a previous upload. When the mapping becomes outdated (e.g., after environment changes or record deletions), the upload fails with this confusing error.

Fix

  1. Locate the environment-specific manifest file in the .powerpages-site folder. It follows the naming pattern <environment-host>-manifest.yml (e.g., demo1.crm.dynamics.com-manifest.yml). Use your file-search tool (e.g., Glob with pattern <PROJECT_ROOT>/.powerpages-site/*-manifest.yml) to find it.
  2. Delete the manifest file at <PROJECT_ROOT>/.powerpages-site/<environment-host>-manifest.yml.
  3. Retry the upload: pac pages upload-code-site --rootPath "<PROJECT_ROOT>"

If the retry succeeds, proceed to Phase 5. If it fails with a different error, present the error to the user and help them troubleshoot.

Important: Do NOT attempt to unblock .html in the environment's blocked attachments list — the error is not caused by the attachment block setting.

Suggest Next Steps

If the user skips activation (or after activation completes), suggest:

  • /activate-site — Provision the site with a subdomain and make it live (if not already activated)
  • /test-site — Test the deployed site in the browser (verify pages load, check API calls)
  • /audit-permissions — Audit table permissions against current code (recommended after redeployments)
  • /setup-datamodel — Create Dataverse tables for dynamic content
  • /add-seo — Add meta tags, robots.txt, sitemap.xml, favicon

Important Notes

NEVER Use pac pages upload

Always use pac pages upload-code-site — never use pac pages upload. The pac pages upload command is designed for portal-studio-style sites and will corrupt code site metadata if used on a code site project. This applies to every upload step in this skill (Phase 4.4, Phase 6.4, and troubleshooting retries).

Throughout All Phases

  • Use TaskCreate/TaskUpdate to track progress at every phase
  • Ask for user confirmation at key decision points (see list below)
  • Present errors clearly — when a command fails, show the user the relevant error output and explain what went wrong before suggesting fixes

Key Decision Points (Wait for User)

  1. After Phase 2: If not authenticated, get environment URL from user
  2. At Phase 3: Confirm or switch the target environment
  3. At Phase 4.1: If multiple powerpages.config.json found, ask which project to deploy
  4. At Phase 4.2: Audit permissions now or skip (redeployments only)
  5. At Phase 5.5: Activate site now or later
  6. At Phase 6: Get permission before modifying blocked attachments setting

Progress Tracking

Before starting Phase 1, create a task list with all phases using TaskCreate:

Task subjectactiveFormDescription
Verify PAC CLI installationVerifying PAC CLICheck if PAC CLI is installed, install if missing
Verify authenticationVerifying authenticationCheck current auth status, authenticate if needed
Confirm target environmentConfirming environmentShow current environment, let user confirm or switch
Deploy the code siteDeploying siteLocate project root, build, and upload via pac pages upload-code-site
Verify deploymentVerifying deploymentConfirm.powerpages-site folder exists, review upload output, commit changes, offer activation
Handle blocked JavaScriptResolving JS blockIf upload fails due to blocked JS, offer to unblock and retry

Mark each task in_progress when starting it and completed when done via TaskUpdate. Phase 6 may be marked completed immediately if no JavaScript blocking issue is encountered. This gives the user visibility into progress and keeps the workflow deterministic.


Begin with Phase 1: Verify PAC CLI

平台分布

Codex

32.58%
按下载量换算78

Claude

32.33%
按下载量换算77

Cursor

16.86%
按下载量换算40

Gemini CLI

8.35%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills