generate-canvas-app
Generate a complete, visually distinctive Power Apps canvas app with YAML. USE WHEN the user wants to create, build, or generate a Canvas App or pa.yaml files.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- generate-canvas-app
- author
- Microsoft Corporation (adapted for Codex by setup plan)
- version
- 2.0.0-codex
- description
- Generate a complete, visually distinctive Power Apps canvas app with YAML. USE WHEN the user wants to create, build, or generate a Canvas App or pa.yaml files.
03 SKILL.md 正文
Generate a Canvas App
Generate a complete Power Apps canvas app for the following requirements:
$ARGUMENTS
Overview
This skill uses two specialist agent definitions (read from the agents/ folder):
canvas-app-planner— discovers controls and data sources, designs the app, presents a screen plan for approval, writes a shared plan documentcanvas-screen-builder— writes exactly one screen's YAML; multiple builders run sequentially after the plan is approved
You coordinate the agents and own the compilation + error-fixing loop after all screens are written.
Plugin root: the directory containing skills/, agents/, and references/
Phase 0 — Create App Folder
- Extract the app name or a 2–4 word summary from
$ARGUMENTS - Convert to kebab-case (e.g., "Expense Tracker" →
expense-tracker) - Create the folder:
mkdir -p <folder-name> - Resolve its absolute path — this is the working directory for all subsequent phases
Phase 1 — Plan (Planner Agent)
Read these files before planning:
../../references/TechnicalGuide.md../../references/DesignGuide.md../../agents/canvas-app-planner.md
Adopt the role of the canvas-app-planner and follow every step in that file, with:
- User requirements:
$ARGUMENTS - Working directory: the absolute path resolved in Phase 0
- Plugin root: the directory containing
skills/,agents/, andreferences/
Complete ALL steps in the planner agent file, including:
- Using the already loaded
TechnicalGuide.mdandDesignGuide.md - Calling
list_controls,list_apis,list_data_sources - Presenting the screen plan to the user and waiting for approval
- Writing
canvas-app-plan.mdandApp.pa.yamlto the working directory
Do not proceed to Phase 2 until the user approves the plan.
Phase 2 — Build (Screen Builder Agent, One Screen at a Time)
After the planner completes, read canvas-app-plan.md from the working directory.
Extract the screen list from the ## Screens table.
For each screen in the list, in sequence:
- Read the builder agent definition:
../../agents/canvas-screen-builder.md - Adopt the role of
canvas-screen-builderfor this screen - Follow every step in that file with:
- Screen name
- Target file name
- Plan document:
<working-directory>/canvas-app-plan.md - Working directory: the absolute path from Phase 0
- Write
[ScreenName].pa.yamlto the working directory before moving to the next screen
Phase 3 — Validate and Fix
After all screen files are written, call compile_canvas on the working directory.
On success: Proceed to Phase 4.
On failure: For each error in the output:
- Read the referenced
.pa.yamlfile - Fix the error
- Call
compile_canvasagain
Repeat until compile_canvas reports no errors.
Phase 4 — Summary
Delete canvas-app-plan.md:
rm <working-directory>/canvas-app-plan.md
Present 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]
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.