AGENT SKILL

edit-canvas-app

Edit an existing Power Apps canvas app. USE WHEN the user wants to modify, update, change, or edit an existing Canvas App or pa.yaml files.

使用场景视觉设计
License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 1.6k
Forks
491

01 前言 Front Matter

name
edit-canvas-app
author
Microsoft Corporation (adapted for Codex by setup plan)
version
2.0.0-codex
description
Edit an existing Power Apps canvas app. USE WHEN the user wants to modify, update, change, or edit an existing Canvas App or pa.yaml files.

03 SKILL.md 正文

Edit a Canvas App

Make the following changes to the existing Canvas App:

$ARGUMENTS

Overview

Two paths depending on edit complexity:

  • Simple edits (≤2 controls, ≤1 screen, no new screens/data) — handled inline
  • Complex edits (multiple screens, new screens, structural changes) — via planner + editor agents

Plugin root: the directory containing skills/, agents/, and references/


Phase 0 — Create App Folder

  1. Derive a short folder name from $ARGUMENTS — extract the app name or use a 2–3 word summary
  2. Convert to kebab-case
  3. Create the folder: mkdir -p <folder-name>
  4. Resolve its absolute path — this is the working directory

Phase 1 — Sync and Check

Call sync_canvas targeting the working directory. This pulls the current app state from the coauthoring session into local .pa.yaml files.

After sync, read the files and check if the app has meaningful content. An app is empty if:

  • No .pa.yaml files were written, or
  • No screens with actual controls (non-container children) exist

If empty, inform the user and switch to the full generate-canvas-app workflow.


Phase 2 — Assess Complexity

Simple — ALL of these are true:

  • Changes affect ≤2 controls or properties
  • Changes are confined to ≤1 screen
  • No new screens, data sources, or structural layout changes

Complex — ANY of these are true:

  • Changes span multiple screens
  • New screens need to be created
  • New data sources or connectors are required
  • Structural layout changes involved

Phase 3a — Simple: Direct Edit

Read ../../references/TechnicalGuide.md.

Apply changes directly to the relevant .pa.yaml files.

Call compile_canvas on the working directory. Iterate until clean.

Present summary:

Edit complete. [1-2 sentence description.] Compiled clean after [N] pass(es).


Phase 3b — Complex: Plan (Edit Planner Agent)

Read the edit planner agent definition:

  • ../../references/TechnicalGuide.md
  • ../../references/DesignGuide.md
  • ../../agents/canvas-edit-planner.md

Adopt the role of canvas-edit-planner and follow every step in that file with:

  • Edit requirements: $ARGUMENTS
  • Working directory: the absolute path from Phase 0
  • Plugin root: the directory containing skills/, agents/, and references/
  • List of synced .pa.yaml files

Do not proceed to Phase 4 until the user approves the plan.


Phase 4 — Edit (Complex path only, Screen Editor Agent)

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

Extract screens to modify and screens to add.

For each affected screen, in sequence:

  1. Read the editor agent definition: ../../agents/canvas-screen-editor.md
  2. Adopt the role of canvas-screen-editor for this screen
  3. Follow every step in that file with:
    • Screen name and action (Modify / Add)
    • Target file name
    • Plan document path
    • Working directory

Phase 5 — Validate and Fix (Complex path only)

Call compile_canvas on the working directory. Iterate until clean.


Phase 6 — Summary

Delete canvas-edit-plan.md:

rm <working-directory>/canvas-edit-plan.md

Present final summary table of all screens modified/added, compilation passes, any remaining errors.

04 同仓库更多 Skills

hashgraph-online
hashgraph-online/awesome-codex-plugins

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.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

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.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

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.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

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.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

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.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

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.

★ 1.6k