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

generate-canvas-app生成画布应用程序

Agent Skill

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

总安装

618

周安装

25

GitHub Stars

228

下载量

194
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于查找、检索和筛选相关信息,支持画布应用程序生成场景。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需确认权限和维护状态。
  • 使用前应检查是否会触发联网、命令执行或文件读写操作。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

Generate a Canvas App

Generate a complete Power Apps canvas app for the following requirements:

$ARGUMENTS

Overview

This skill orchestrates two specialist agents:

  1. canvas-app-planner — discovers available controls and data sources, designs the app, presents a screen plan for your approval, then writes a shared plan document
  2. canvas-screen-builder — writes exactly one screen's YAML; multiple builders run in parallel after the plan is approved

You (the skill) coordinate the agents and own the compilation + error-fixing loop after all screens are written.


Phase 0 — Create App Folder

Before planning, derive a short folder name from the user's requirements:

  1. Extract the app name or a 2–4 word summary from $ARGUMENTS
  2. Convert to kebab-case (e.g., "Expense Tracker" → expense-tracker, "my travel planner" → my-travel-planner)
  3. Create the folder using Bash: mkdir -p <folder-name>
  4. Resolve its absolute path — this is the working directory for all subsequent phases

Pass this absolute path as the working directory in every agent prompt below.


Phase 1 — Gather Preferences (Wizard)

Before invoking the planner, use AskUserQuestion to collect design preferences that cannot be reliably inferred from $ARGUMENTS. Parse $ARGUMENTS first to determine which questions to skip — but a short request like "visitor check-in app" or "expense tracker" leaves most preferences unspecified and you MUST ask.

Call AskUserQuestion with the applicable questions from the table below (include only the ones that need answers):

QuestionHeaderWhen to AskOptions
Who will primarily use this app, and on what device?Target Users & DeviceOnly if not clear from $ARGUMENTS*(3–4 dynamically inferred options that combine the user role with their likely device, e.g., for "visitor check-in": Front desk staff on desktop/tablet, Security team on tablet, Self-service kiosk on tablet, Visitors on their phone)*
Do you have a screenshot or mockup for reference? (paste an image or provide a file path)ReferenceOnly if user has NOT already attached/pasted an image with their requestYes I'll share one now, No just pick a direction for me
What aesthetic direction?AestheticOnly if not clear from $ARGUMENTS (skip if user already described a visual direction like "dark themed", "minimal", "corporate style", or provided a reference image)Clean & Professional (Recommended), Bold & High-Contrast, Soft & Approachable, Dense & Utilitarian
Which features do you need? (multi-select)FeaturesOnly if $ARGUMENTS is vague on features*(3–4 dynamically inferred options based on app purpose + target users)*

Rules:

  1. If the user provides a screenshot (either attached with their original request or via the wizard), examine it to extract structural cues (layout, navigation pattern) and visual cues (color palette, density, typography). Use these to inform the aesthetic direction — do not ask the aesthetic question separately.
  2. If all questions are already answered by $ARGUMENTS and any attached images, skip the wizard entirely and proceed directly to Phase 2.
  3. Ask all applicable questions in a single AskUserQuestion call — do not ask them one at a time.
  4. Store all answers for use in the planner prompt below.

Target users & device influence design decisions:

  • Desktop users → data-dense layouts, tables, keyboard-friendly, multi-column. ManualLayout acceptable for pixel-perfect dashboards.
  • Tablet users → touch-friendly targets, medium density, AutoLayout (responsive) so the app adapts to landscape/portrait.
  • Phone users → large touch targets, single-column, simplified navigation, AutoLayout (responsive), minimal typing.
  • Multi-device / unknown → AutoLayout (responsive) required.

Phase 2 — Plan

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

Pass a prompt that includes:

  • The user's requirements: $ARGUMENTS
  • The wizard answers collected in Phase 1 (target users & device, aesthetic direction, features, and any screenshot observations)
  • The working directory (the absolute path resolved in Phase 0)
  • The plugin root path: ${CLAUDE_PLUGIN_ROOT}

Example prompt:

You are the canvas-app-planner agent. Plan a Canvas App for the following requirements: [paste $ARGUMENTS here] User preferences (from wizard): - Target users & device: [answer or "not specified" — e.g., "Front desk staff on desktop/tablet"] - Aesthetic direction: [answer or "not specified"] - Features: [answer or "not specified"] - Reference image: [observations from screenshot, or "none provided"] Working directory: [absolute path from Phase 0] Plugin root: ${CLAUDE_PLUGIN_ROOT} Follow the instructions in your agent file. Write canvas-app-plan.md and App.pa.yaml to the working directory. Return the screen list and plan document path when complete.

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


Phase 3 — Build

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

Extract the screen list from the ## Screens table — collect each screen name and its target file name.

Invoke one canvas-screen-builder agent per screen. Fire all invocations in a single message (parallel execution) — do not wait for one screen 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")
  • Absolute path to canvas-app-plan.md
  • Working directory

Example prompt per screen:

You are the canvas-screen-builder agent. Implement the [Screen Name] screen. - Target file: [ScreenName].pa.yaml - Plan document: [absolute path to canvas-app-plan.md] - Working directory: [absolute path from Phase 0] Follow the instructions in your agent file. 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-builder tasks to complete before proceeding.


Phase 4 — Validate and Fix

After all screen-builders have finished writing their files, call compile_canvas on the working directory.

On success: Proceed to Phase 5.

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 5 — Summary

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

Present a final summary:

App generation complete. | Screen | File | Status | | --- | --- | --- | | [Screen Name] | [filename].pa.yaml | Written | Compiled clean after [N] pass(es). | Screens: [N] | Data: [source or collections]

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.06%
按下载量换算70

Claude

31.68%
按下载量换算61

Cursor

18.99%
按下载量换算37

Gemini CLI

9.16%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills