Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
PluginAn toànGiao diện & thiết kếDễ cho người mới

canvas-apps-tools

ToluVictor · ToluVictor/canvas-apps-tools

Tạo mã YAML Power Apps Canvas App sẵn sàng dán từ ảnh chụp màn hình, mockup hoặc mô tả văn bản trực tiếp trong Claude Code.

AI skills for Power Apps Canvas Apps - Generate paste-ready Power Apps Canvas App YAML from screenshots, mockups, or text descriptions

139 sao28Giấy phép: MITCập nhật 6 tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Tái tạo một khung giao diện người dùng thành mã YAML Power Apps Canvas App hoạt động.
  • Hiện đại hóa các màn hình Canvas App hiện có bằng cách cải thiện khoảng cách hoặc nâng cấp điều khiển.
  • Xây dựng màn hình Power Apps mới từ mô tả văn bản mà không cần thiết kế thủ công.

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Canvas Apps Tools

Generate paste-ready Power Apps Canvas App YAML from screenshots, mockups, or text — directly inside Claude Code.

What it does

This plugin gives Claude Code a single skill — canvas-apps-ui-gen — that acts as a Power Apps Canvas App developer. Point it at a mockup, describe a screen, or paste a screenshot of an existing app and it produces YAML you can paste straight into Power Apps Studio.

  • Replicate a UI mockup or wireframe as Canvas App YAML
  • Improve an existing Canvas App screen (modernize spacing, upgrade controls, add hover/focus states)
  • Build from scratch from a text description alone
  • Enforces Power Apps YAML rules (PA2105 / PA2108 / PA1001) automatically
  • Saves output to canvas-apps-ui-gen-output/ in your current working directory and displays it inline when small (< 400 lines)

Requirements

Installation

Choose whichever method fits your workflow. Both end with the same command: /canvas-apps-ui-gen.


Method 1 — Marketplace (recommended)

Run these commands inside Claude Code:

Add this repo as a marketplace, then install the plugin:

/plugin marketplace add ToluVictor/canvas-apps-tools

Then install the plugin:

/plugin install canvas-apps-ui-gen@ToluVictor/canvas-apps-tools

Open a new Claude Code instance to activate the plugin, then run the skill:

/canvas-apps-ui-gen

Method 2 — Individual skill install (skills CLI)

If you only want this one skill without installing the full plugin, run this in your terminal:

npx skills add ToluVictor/canvas-apps-tools --skill canvas-apps-ui-gen

Then run the skill inside Claude Code:

/canvas-apps-ui-gen

This uses the skills.sh Agent Skills CLI. The skill is installed into your Claude Code skills folder and is available immediately in any new session.


Usage

Once installed, run /canvas-apps-ui-gen and Claude will ask which mode you want:

From a screenshot or mockup

Pass a file path as an argument:

/canvas-apps-ui-gen C:\path\to\mockup.png

Or paste the image directly into the chat and run /canvas-apps-ui-gen — Claude detects it automatically.

From a text description

Run /canvas-apps-ui-gen with no arguments, choose Build from scratch, and describe what you want:

"Sales order entry with a search bar, a data grid, and a totals row at the bottom"

Improve an existing screen

Paste a screenshot of your current Power Apps screen into the chat, run /canvas-apps-ui-gen, and choose Improvement. Describe the changes you want and Claude will modernize the layout, controls, and styling.

Paste into Power Apps Studio

When generation finishes, Claude shows a link to the output file and paste instructions. The general flow is:

  1. Open the generated YAML file in canvas-apps-ui-gen-output/ in your current working directory
  2. Press Ctrl+A then Ctrl+C to copy everything
  3. In Power Apps Studio, right-click the target screen or container in the tree view
  4. Select Paste code
  5. Validate and adjust as needed

How it works

The skill runs a multi-agent pipeline internally:

  1. Detects input mode and parses the image or text
  2. Describes the layout and asks a few quick questions before generating
  3. Runs three specialist agents in parallel — layout & sizing, controls, and styling
  4. An assembly agent merges their outputs, runs QA checks, and writes the final YAML

Troubleshooting

SymptomFix
/canvas-apps-ui-gen not recognizedOpen a new Claude Code instance; verify the install with /plugin → Installed tab
No output file appearsCheck canvas-apps-ui-gen-output/ in your current working directory; rerun with a clearer description or smaller scope
YAML shows errors in Power Apps StudioCopy from the file directly (do not retype); if errors persist, rerun with a simpler prompt and fewer nested controls
PA2105 version warningClaude will self-heal the version number if you mention the warning in the same session
"The function * returned a non-finite number." error banner appears after pasting YAMLThis occurs when the app contains a Gallery whose Items property could not be evaluated at paste time. Save the page, then reload Canvas App Studio — the error will clear on reload.

Contributing

  • Fork this repo
  • Add or update content under skills/canvas-apps-ui-gen/
  • Submit a pull request

License

MIT — see LICENSE


By Tolu Victor Sanwoolu

Xem mã nguồn trên GitHub