Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

create-webrolescreate webroles 搜索

Agent Skill

create-webroles 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

692

周安装

28

GitHub Stars

228

下载量

217
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/microsoft/power-platform-skills --skill create-webroles

简介

用于 Power Pages 网站的 Web 角色配置,定义用户权限与访问层级。

  • 自动生成 UUID 与任务跟踪条目,确保权限模型可追溯可审计。
  • 使用时需明确角色职责与安全边界,避免过度授权导致数据泄露。
  • 建议结合 RBAC 原则设计角色树,定期审查权限分配合理性。
  • create-webroles 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

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.

Create Web Roles

Create web roles for a Power Pages code site. Web roles define the permissions and access levels for different types of site users.

Core Principles

  • Use TaskCreate/TaskUpdate: Track all progress throughout all phases — create the todo list upfront with all phases before starting any work.
  • Always use the UUID script: Never generate UUIDs manually — always use ${CLAUDE_PLUGIN_ROOT}/scripts/generate-uuid.js to produce valid UUID v4 values for each web role.
  • Preserve uniqueness constraints: Only one role can have anonymoususersrole: true and only one can have authenticatedusersrole: true. Always check existing roles before setting these flags.
Prerequisite: The site must be deployed at least once before web roles can be created, since deployment creates the .powerpages-site folder structure that stores web role definitions.

Initial request: $ARGUMENTS


Workflow

  1. Phase 1: Verify Site Structure → Check for .powerpages-site/web-roles/ directory
  2. Phase 2: Discover Existing Roles → Read current web role YAML files
  3. Phase 3: Determine New Roles → Analyze the site and ask the user what roles are needed
  4. Phase 4: Create Web Role Files → Generate YAML files with UUIDs from the Node script
  5. Phase 5: Verify Web Roles → Validate all created files exist, have valid UUIDs, and flags are correct
  6. Phase 6: Review & Deploy → Present summary and proceed to deployment

Phase 1: Verify Site Structure

Goal: Confirm the .powerpages-site/web-roles/ directory exists and is ready for web role files

Actions:

  1. Locate the project root (**/powerpages.config.json) and check for .powerpages-site/web-roles/.
  2. If .powerpages-site does NOT exist: Ask the user to deploy first via AskUserQuestion (options: "Yes, deploy now (Recommended)", "No, I'll do it later"). If yes, invoke /deploy-site then resume from Phase 2. If no, stop.
  3. If .powerpages-site exists but web-roles/ does NOT: Create the <PROJECT_ROOT>/.powerpages-site/web-roles/ directory.
  4. If both exist: Proceed to Phase 2.

Output: Confirmed .powerpages-site/web-roles/ directory exists and is ready


Phase 2: Discover Existing Roles

Goal: Identify all web roles already defined for the site

Actions:

  1. Read all YAML files in the .powerpages-site/web-roles/ directory. Each file represents one web role with this format: anonymoususersrole: false authenticatedusersrole: false id: 778fa3d0-a2ef-4d2b-98b8-e6c7d8ce1444 name: Administrators
  2. Parse each file and compile a list of existing web roles (name, id, and flags).
  3. Present the existing roles to the user: "I found the following existing web roles in your site:" Administrators (id: 778fa3d0-..., authenticated: false, anonymous: false) *(etc.)*
  4. If no roles exist yet, inform the user: "No web roles are currently defined for your site."

Output: Complete list of existing web roles with their names, IDs, and flags


Phase 3: Determine New Roles

Goal: Decide which new web roles to create based on site needs and user input

Actions:

  1. Based on the site's purpose and the existing roles, suggest appropriate web roles. Use AskUserQuestion to confirm with the user. Common web roles for Power Pages sites include:

- Administrators — Full access to site management - Authenticated Users — Default role for logged-in users (set authenticatedusersrole: true) - Anonymous Users — Default role for non-logged-in visitors (set anonymoususersrole: true) - Content Editors — Users who can edit site content - Moderators — Users who can moderate community content - Custom roles based on business needs

  1. Ask the user which roles they want to create: Question Options Which web roles would you like to create for your site? You can select from suggestions or describe custom roles. *(Provide relevant suggestions based on site context, existing roles, and business domain)* CRITICAL: Do NOT suggest roles that already exist. Filter out any existing role names before presenting options.
  2. Allow the user to specify custom role names as well.

Output: Confirmed list of new web roles to create


Phase 4: Create Web Role Files

Goal: Generate properly formatted YAML files with valid UUIDs for each new web role

Actions:

For each new web role the user approved, create a YAML file in .powerpages-site/web-roles/.

4.1 Generate UUID

For each role, generate a UUID using the Node script. NEVER generate UUIDs yourself — always use the script.

node "${CLAUDE_PLUGIN_ROOT}/scripts/generate-uuid.js"

4.2 Create the YAML File

The filename should be the role name in kebab-case with a .yml extension (e.g., Administratorsadministrators.yml, Content Editorscontent-editors.yml).

Write the file with this exact format (4 fields, no extra whitespace or comments):

anonymoususersrole: <true if this is the anonymous users role, false otherwise>
authenticatedusersrole: <true if this is the authenticated users role, false otherwise>
id: <UUID from generate-uuid.js>
name: <Role Name>

Rules:

  • Only ONE role can have anonymoususersrole: true
  • Only ONE role can have authenticatedusersrole: true
  • If an existing role already has one of these flags set to true, do not set it again on a new role
  • Each role MUST have a unique UUID generated by the script — run the script once per role

Output: All new web role YAML files created


Phase 5: Verify Web Roles

Goal: Validate that all created web role files exist, have valid format, and constraints are satisfied

Actions:

  1. List all files in .powerpages-site/web-roles/ and read each new file to confirm they were written correctly.
  2. For each new web role file, verify:

- The file exists at the expected path - The id field contains a valid UUID v4 format - The name field matches the expected role name - anonymoususersrole and authenticatedusersrole are valid booleans

  1. Verify uniqueness constraints across ALL role files (existing + new):

- At most one role has anonymoususersrole: true - At most one role has authenticatedusersrole: true - No duplicate id values exist across roles

  1. If any file fails validation, fix the issue before proceeding.

Output: All web role files validated — correct format, valid UUIDs, no constraint violations


Phase 6: Review & Deploy

Goal: Present a summary of created roles and offer deployment

Actions:

  1. 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 "CreateWebroles".
  2. Present a summary of what was created: "I've created the following new web roles:"
| Role Name | ID | Anonymous | Authenticated | | --- | --- | --- | --- | | Content Editors | a1b2c3d4-... | false | false | | *(etc.)* | | | |
  1. Then ask the user if they want to deploy the site to apply the new roles: Question Options The new web roles have been created locally. To apply them in Power Pages, the site needs to be deployed. Would you like to deploy now? Yes, deploy now (Recommended), No, I'll deploy later
  2. If "Yes, deploy now": Tell the user to invoke the deploy skill: "Please run /deploy-site to deploy your site and apply the new web roles."
  3. If "No, I'll deploy later": Acknowledge and remind them: "No problem! Remember to deploy your site using /deploy-site when you're ready to apply the new web roles to your Power Pages environment."

Output: Summary presented and deployment offered


Important Notes

Key Decision Points (Wait for User)

  1. After Phase 1: Confirm deployment if .powerpages-site is missing
  2. After Phase 3: Confirm which roles to create
  3. After Phase 6: Deploy or skip

Progress Tracking

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

Task subjectactiveFormDescription
Verify site structureVerifying site structureCheck for .powerpages-site/web-roles/ directory, create if needed
Discover existing rolesDiscovering existing rolesRead current web role YAML files and compile list of existing roles
Determine new rolesDetermining new rolesAnalyze site needs and ask user which roles to create
Create web role filesCreating web role filesGenerate YAML files with UUIDs from the Node script for each new role
Verify web rolesVerifying web rolesValidate all files exist, have valid UUIDs, and uniqueness constraints are satisfied
Review and deployReviewing and deployingPresent summary of created roles and offer deployment

Mark each task in_progress when starting it and completed when done via TaskUpdate. This gives the user visibility into progress and keeps the workflow deterministic.


Begin with Phase 1: Verify Site Structure

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.94%
按下载量换算76

Claude

28.14%
按下载量换算61

Cursor

18.75%
按下载量换算41

Gemini CLI

9.07%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills