Token导航 LogoToken导航TokenDH.com
前端设计external-servicegithub未标认证来源可访问许可证需确认审计通过

edit-canvas-app编辑画布应用程序

Agent Skill

edit-canvas-app 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

588

周安装

24

GitHub Stars

228

下载量

188
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/microsoft/power-platform-skills --skill edit-canvas-app

简介

用于 Power Platform 画布应用的编辑与结构化管理。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中处理简单控件修改或复杂界面重构。
  • 通过 YAML 文件组织应用逻辑,调用 planner 与 screen-editor 协同作业。
  • 需先创建独立文件夹隔离变更,防止误操作影响原始项目。
  • edit-canvas-app 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Edit a Canvas App

Make the following changes to the existing Canvas App:

$ARGUMENTS

Overview

This skill uses two paths depending on edit complexity:

  • Simple edits (single control/property changes, formula tweaks) — handled inline
  • Complex edits (multiple screens, new screens, structural changes, new data sources) — orchestrated via specialist agents: canvas-edit-planner + parallel canvas-screen-editor

Phase 0 — Create App Folder

Before syncing or editing, create a subfolder to contain the app's YAML files:

  1. Derive a short folder name from $ARGUMENTS — extract the app name if present, otherwise use a 2–3 word summary of what is being edited
  2. Convert to kebab-case (e.g., "Expense Tracker" → expense-tracker)
  3. Create the folder using Bash: mkdir -p <folder-name>
  4. Resolve its absolute path — this is the working directory for all subsequent phases

All file reads, writes, and syncs operate in this folder.


Phase 1 — Sync and Check

Sync the canvas app:

Call the sync_canvas MCP tool targeting the working directory. This pulls the current app state from the coauthoring session into local .pa.yaml files. Only proceed after sync_canvas completes successfully.

Check for meaningful content:

After sync_canvas completes, read the synced .pa.yaml files and check whether the app has meaningful content. An app is considered empty if:

  • No .pa.yaml files were written, or
  • The only files present contain no screens, or
  • Every screen present has no controls (only bare screen-level YAML with no children), or
  • Every screen's controls consist solely of containers (e.g., GroupContainer) with no leaf controls inside them

If the app is empty, do not proceed with the edit workflow. Instead, inform the user:

The synced app appears to be empty — no existing screens or controls were found. Switching to app generation mode to build the app from scratch.

Then follow the full generate-canvas-app workflow, using the user's original request as the generation requirements.

If the app has meaningful content, proceed to Phase 2.


Phase 2 — Assess Complexity

Read all synced .pa.yaml files. Based on $ARGUMENTS and the current app state, determine whether this is a simple or complex edit:

Simple — all of the following are true:

  • Changes affect ≤ 2 controls or properties
  • Changes are confined to ≤ 1 screen
  • No new screens are being added
  • No new data sources or connectors are needed
  • No structural layout changes (e.g., not changing ManualLayout to AutoLayout)

Examples: change a button color, update label text, fix a formula, adjust a control size.

Complex — any of the following are true:

  • Changes span multiple screens
  • One or more new screens need to be created
  • New data sources or connectors are required
  • Structural layout changes are involved
  • Significant visual redesign of a screen

Examples: add a settings screen, redesign the home screen layout, integrate a new connector, change the navigation flow across the app.

  • If simple: proceed to Phase 3a.
  • If complex: proceed to Phase 3b.

Phase 3a — Simple: Direct Edit

Read ${CLAUDE_PLUGIN_ROOT}/references/TechnicalGuide.md before making changes.

Apply the changes directly:

  1. Edit the relevant .pa.yaml files with the required changes, following conventions from TechnicalGuide.md.
  2. Validate by calling compile_canvas on the working directory after making changes. On failure, read the errors, fix with Edit, and re-compile. Iterate until clean.
  3. Present a brief summary: Edit complete. [1-2 sentence description of what was changed.] Compiled clean after [N] pass(es).

Phase 3b — Complex: Plan

Invoke the canvas-edit-planner agent using the Task tool.

Pass a prompt that includes:

  • The user's edit requirements: $ARGUMENTS
  • The working directory (absolute path where .pa.yaml files were synced)
  • The plugin root path: ${CLAUDE_PLUGIN_ROOT}
  • The list of synced .pa.yaml files found in the working directory

Example prompt:

You are the canvas-edit-planner agent. Plan the following edits to an existing Canvas App: [paste $ARGUMENTS here] Working directory: [absolute working directory path] Plugin root: ${CLAUDE_PLUGIN_ROOT} Synced files: [list of.pa.yaml filenames] Follow the instructions in your agent file. Write canvas-edit-plan.md to the working directory. Return the list of screens to modify/add and the plan document path when complete.

Wait for the planner to finish. The planner will present the edit plan to the user via plan mode and wait for approval before returning. Do not proceed to Phase 4 until the planner task completes successfully.


Phase 4 — Edit (Complex path only)

After the planner completes, read canvas-edit-plan.md from the working directory.

Extract the list of screens to modify and screens to add from the plan's tables.

Invoke one canvas-screen-editor agent per affected screen. Fire all invocations in a single message (parallel execution) — do not wait for one editor to finish before starting the next.

For each screen, pass a prompt that includes:

  • Screen name (e.g., "Home")
  • Target file name (e.g., "Home.pa.yaml")
  • Action: "Modify" (existing screen) or "Add" (new screen)
  • Absolute path to canvas-edit-plan.md
  • Working directory

Example prompt per screen:

You are the canvas-screen-editor agent. [Modify / Add] the [Screen Name] screen. - Action: [Modify / Add] - Target file: [ScreenName].pa.yaml - Plan document: [absolute path to canvas-edit-plan.md] - Working directory: [absolute working directory path] Follow the instructions in your agent file. [Edit / Write] [ScreenName].pa.yaml and return your result when done. Do not call compile_canvas — validation is handled by the skill.

Wait for all screen-editor tasks to complete before proceeding.


Phase 5 — Validate and Fix (Complex path only)

After all screen-editors have finished, call compile_canvas on the working directory.

On success: Proceed to Phase 6.

On failure: Read every error in the output. Errors will reference specific files and line numbers. For each error:

  1. Read the referenced .pa.yaml file
  2. Fix the error using Edit
  3. After fixing all errors from this pass, call compile_canvas again

Repeat until compile_canvas reports no errors. Do not give up after a single fix attempt — iterate until the entire directory compiles clean.

Track how many compile_canvas passes were needed.


Phase 6 — Summary

Delete canvas-edit-plan.md from the working directory using Bash: rm <working-directory>/canvas-edit-plan.md

Present a final summary:

Edit complete. | Action | Screen | File | Status | | --- | --- | --- | --- | | [Modify / Add] | [Screen Name] | [filename].pa.yaml | Done | Compiled clean after [N] pass(es).

If any errors remain after exhausting fixes, report them explicitly so the user knows what needs manual attention.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.67%
按下载量换算69

Claude

30.84%
按下载量换算58

Cursor

17.84%
按下载量换算34

Gemini CLI

9.42%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills