Mockups
Use when the visual identity of the Power Apps app is approved and it is time for stage 4 of the pipeline: the Image Mockups Agent lists every screen, the navigation, loading, errors and empty states, and, with the user's authorization, the script generates one image per screen through the OpenAI API. Also redoes only the affected screens when the prototype came back with an adjustment. Do not use before /pp-en:design, or to draw a screen in YAML (use `powerapps-canvas`).
ByBrunoPower Platform developer- name:
- mockups
- description:
- Use when the visual identity of the Power Apps app is approved and it is time for stage 4 of the pipeline: the Image Mockups Agent lists every screen, the navigation, loading, errors and empty states, and, with the user's authorization, the script generates one image per screen through the OpenAI API. Also redoes only the affected screens when the prototype came back with an adjustment. Do not use before /pp-en:design, or to draw a screen in YAML (use `powerapps-canvas`).
/pp-en:mockups — Image Mockups Agent
Stage 4 of the pipeline, block 2. Identity and experience. The pp-en:mockups-agent agent builds the
screen inventory and the image spec; you check, ask for authorization and generate the images.
Generating images costs money and sends the screen text to OpenAI: only with the user's "go ahead".
KIT = ${CLAUDE_PLUGIN_ROOT}. Output format: KIT/skills/power-platform/references/output-format.md.
State script: python "${CLAUDE_PLUGIN_ROOT}/skills/power-platform/scripts/estado.py".
Models: python "${CLAUDE_PLUGIN_ROOT}/skills/power-platform/scripts/modelos.py".
Image script: python "${CLAUDE_PLUGIN_ROOT}/skills/power-platform/scripts/desenhar-mockups.py".
Key, model and error details: KIT/skills/power-platform/references/mockups.md.
Before starting
estado.py comecar mockups. Exit 1: show the output and stop.- Check that
docs/planning/prd.mdandux-design-system.mdexist, with hex in section 3. - Mode:
- new:
docs/planning/mockups/mockups.jsondoes not exist; - resume: the spec exists and the inventory was already checked ("Inventory checked" line in
screen-inventory.md), but images are missing (e.g. the session stopped to set the key): go straight to step 4; - adjustment: the stage is reopened and the open round of
prototype-adjustments.mdhasscreenitems. With noscreenitems, just confirm, go to the gate and close with the note "no screen change".
- new:
Steps
- Agent. Show
◆ Calling the Image Mockups Agent...and call the subagentpp-en:mockups-agent(model:modelos.py de mockups-agent; empty line, do not passmodel) passing:RAIZ: the project root;KIT: the value of${CLAUDE_PLUGIN_ROOT};MODO:neworadjustment, and inadjustmentthe round'sscreenitems.
- Judge the deliverable (
KIT/skills/power-platform/references/subagents.md, "Judging the deliverable"):desenhar-mockups.py docs/planning/mockups/mockups.json --simularmust end in0 error(s)(the agent does not run scripts: the proof is yours);- every P0
FR-xxinprd.mdappears in at least one screen in the table; - the frame follows the navigation in section 2.1 of
ux-design-system.md. Error or gap: revision, with the--simularoutput or the requirement with no screen. Record it withestado.py veredito mockups --agente mockups-agent --resultado <...> --motivo "...".
- Screen review (checkpoint): show the screen table the agent returned (id, screen, roles,
priority) and the frame in up to 8 lines. "Is any screen or state missing? Type 'approved'
or say what to change." Change: call the agent again with the request. Approved: write
"Inventory checked: <date>" in
screen-inventory.md. - Decision to generate (checkpoint,
AskUserQuestion). First, read inbrainstorm.mdthe answer about sending the screen description to OpenAI: if it was "no", skip to option 3 without asking. Show the# model · size · qualityline and the total of images from--simular:- "Generate all N images (Recommended)";
- "Generate only the P0 screens (M images)";
- "Don't generate: go to the prototype without images". Say along with it: it costs per image (price on OpenAI's page) and the screen text goes out to OpenAI, with no real data.
- Key. Check without showing it:
python -c "import os; print('set' if os.environ.get('OPENAI_API_KEY') else 'missing')". Missing:Action in the environmentcheckpoint with the step by step fromKIT/skills/power-platform/references/mockups.md§2 (setx OPENAI_API_KEY "<your-key>"on Windows,exporton macOS/Linux). Say that they must close and reopen Claude Code in a new terminal and run/pp-en:mockupsagain: the work done so far stays on disk. Never ask for the key in the conversation. Stop here. - Generate:
desenhar-mockups.py docs/planning/mockups/mockups.json(P0 only:--telaswith the ids; adjustment:--telas <ids> --sobrescrever). Read the last line:N error(s). ErrorM101: table in section 6 of the samemockups.md. - Image review (checkpoint): ask them to open
docs/planning/mockups/mockups.md. An image is not a source of color or measurement: judge structure and flow. Adjusting one screen: edit the item in the spec and generate only that one (--telas <id> --sobrescrever).
Exit gate
-
screen-inventory.mdwith frame, navigation map and every P0 screen, checked by the user. -
--simularwith0 error(s)(paste the last line in the summary). - Images generated or the decision not to generate recorded in the inventory (who decided, why, date).
Closing
estado.py concluir mockups --nota "<N> screens, <M> images"(without images:"<N> screens; images waived: <reason>").- Commit if
git_commit_por_etapa:pp(mockups): screen inventory and mockups. The images go in the commit; the key never. - Summary and the "Next step" block the script printed.
More in this playbook
Safe to turn on
Use this skill when an agent or person is about to create, change or enable an automation inside someone else's account or a shared environment: "create this workflow", "build it in the customer's account", "turn it on", "go live", "deploy this automation". Produces a proposal the human approves, an automation created in the off state, and a short list of what only the human can finish.
Workflow buildingMITn8n agents
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.
Workflow buildingMITn8n agents
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.

