microsoft/power-platform-skills/design-system

Claude Code and agent skill by microsoft/power-platform-skills

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Creates the Tamagui brand system for an Expo/React Native Power Apps mobile app, including design-system.md, tokens.ts, and an HTML gallery.

Install

npx vskill@latest install microsoft/power-platform-skills/design-system

SKILL.md

The same SKILL.md was published earlier as microsoft/power-platform-skills/design-system.

Plugin check: Run node "${PLUGIN_ROOT}/scripts/check-version.js" - if it outputs a message, show it to the user before proceeding.

Shared instructions: [shared-instructions.md](../../shared/shared-instructions.md) — read first.

Design System

Entry routing: use the shared App feature entry points preflight before the workflow below.

Before reading brand state, bind working_dir through app-working-directory.md. Use that root for every shell call and absolute file-tool path, including history, rollback, previews, and runtime wiring in the referenced workflows.

Read-only --history / --diff and standalone brand generation without an app remain here.

Source of truth for every screen built in a Power Apps mobile app. Produces three artifacts:

  1. brand/design-system.md — full spec (palette, typography, spacing, components, negatives)
  2. brand/tokens.ts — importable Tamagui token export
  3. brand/design-system.html — deterministic visual gallery (zero LLM cost)

Design-system and Tamagui integration are complementary, not alternatives. /design-system owns user-facing brand/design decisions and preview artifacts; /create-mobile-app Step 9.2 (screens first) or Step 9b (data model first) applies `references/tamagui-integration.md` as internal implementation plumbing so those decisions become Tamagui tokens, aliases, and provider props. The old separate tamagui-design-system skill existed before this split was clear; keeping it separate made users choose implementation details and added prompt surface. Do not reintroduce it as a user-invocable skill.

When to use

  • `/create-mobile-app` Step 9 (screens first) — auto-invoked after the preview gate, while the live web preview of the already-built screens is running; the tokens it writes restyle that preview
  • `/create-mobile-app` Step 6.75 (data model first) — auto-invoked after scaffold + pa app init, before screen builders
  • Standalone — /design-system callable any time to create or refresh a brand system
  • Refresh — /design-system --refresh <dimension> to change one aspect
  • Reskin — /design-system --reskin for full visual layer swap
  • Dark mode — /design-system --add-dark-mode to derive + wire dark theme

When NOT to use

  • Screen-level visual tweaks → use /edit-app
  • Plan-level screen changes → use /edit-app screens
  • Data model changes → use /add-dataverse or /setup-datamodel

Inputs

  • working_dir — absolute path to project root (auto-detected or passed by orchestrator)
  • Optional flags: --brand-doc, --logo, --from-url, --design-spec, --from-canvas-app, --from-code-app, --from-figma, --stylesheet, --power-pages-mode
  • Optional: --refresh <dimension> — palette | typography | components | density | negatives | motion
  • Optional: --reskin — full theme swap
  • Optional: --add-dark-mode — derive + wire dark theme
  • Optional: --add-theme <name> — add named theme variant
  • Optional: --history / --diff <ts> / --rollback <ts> — version history

References — read before executing


Sub-step 0 — Mode detection + setup

Print:

"→ [design-system] Detecting project context…"

Detect invocation mode:

1. Check MOBILE_APP_ORCHESTRATING=1 AND matching explicit caller context
→ Mode A (folded into /create-mobile-app or approved /edit-app work)
2. Check the resolved working_dir for app.config.js + tamagui.config.ts + package.json with expo deps
→ Mode B (standalone in existing project)
3. Else
→ Mode C (standalone, no project)
→ Ask: "No native project detected. Write brand/ to <working_dir>? [y/N]"

All modes retain the already resolved working_dir; do not resolve another root from the launch directory. Mode C still requires user confirmation before writes.

Write boundary (all paths): --plan-only or a planning-phase handoff returns only a proposal; do not write brand artifacts, previews, history, or memory-bank. Detect prior brand state before generating anything: an existing spec, light or dark token file, gallery, history, or record of a previously applied design makes this a rerun, not first-time generation. A new creation plan alone is not prior brand state; first-time drafts generated in this invocation remain drafts during edit/regeneration, not pre-existing approved designs. Keep proposed choices and memory-bank notes pending until approval. On reruns, do not overwrite live artifacts or existing previews during input/style selection; any comparison preview must be proposal-only. Every generation/reskin rerun uses Sub-step 3.5 before its first live write, even if its cost path or input flag skips other sub-steps. Dedicated refresh, dark-mode, and rollback commands retain their own equivalent approval/backup flows; do not add a second gate to them.

Drift detection (Mode A/B — existing brand/ present):

If brand/design-system.md AND brand/tokens.ts both exist:

  1. Parse current tokens.ts palette + typography tokens
  2. Parse current design-system.md ## Palette and ## Typography
  3. Compute diff
  4. If divergent → surface drift, ask user to resolve before proceeding (see refresh-flow.md § Drift)

Treat that resolution as a proposal until the concrete approval and backup boundary (Sub-step 3.5 for generation reruns); do not repair drift during detection.


Sub-step 1 — Brand inputs

Telemetry checkpoint: `collect_brand_inputs`

Print:

"→ [design-system] Checking for brand inputs…"

Reuse brand inputs and decisions in the approved caller scope. Ask only for missing inputs; return scope-changing choices to /edit-app rather than reopening an independent design flow. Fresh creation still owns the interactive brand selection below when those choices have not yet been made.

Ask user for optional brand input. See `references/input-modes.md` for full processing details.

You're building {{app_name}} — a {{industry}} app.
{{screen_count}} screens, {{entity_count}} entities.
Do you have any brand input? (skip with Enter):
(1) Skip — use Field/Ops industry defaults
No brand assets. I'll pick a direction from 3 visual styles (or you can skip style-picking entirely). High
contrast, large tap targets, safety-first colors.
(2) Free-text notes
> "Slate-blue accent, no orange. Must look at home next to ServiceTitan."
(3) Logo PNG / JPG
> --logo ~/Downloads/logo.png
(4) Design doc (markdown, PDF, or text)
> --brand-doc ~/projects/brand.md
> --design-spec ~/work/design-system.md
(5) More options…
> --from-url https://contoso.com (extract palette from live site)
> --from-canvas-app ~/exports/my-app.msapp (extract from canvas app)
> --from-code-app ~/projects/sibling-web (extract from code app)
> --from-figma <file-key> (extract from Figma)
Skip? [Enter to skip — same as option 1]

If flag was passed on invocation, skip asking — process directly.

On input provided: Extract palette/typography tokens immediately (~3-5k tokens). Print extracted summary:

"→ [design-system] Extracted from {{input}}: {{primary color}}, {{font family}}, {{N}} tokens."

On skip: Continue with no brand context.

Priority order when multiple inputs given:

  1. --design-spec (highest — skips style/spec generation, not Sub-step 3.5 or confirmation)
  2. --brand-doc (locks direction, skips Sub-step 3)
  3. --from-figma (locks palette + typography + components)
  4. --from-code-app (highest fidelity sibling)
  5. --from-canvas-app (locks palette + typography + conventions)
  6. --logo (extracts palette, applied as tint)
  7. --from-url / --stylesheet (palette extractors)
  8. Free-text notes (always applied as overrides on top)

Sub-step 2 — Cost picker

Telemetry checkpoint: `select_design_depth`

Print:

"→ [design-system] How much design depth do you want?"

Show the cost picker, adapting the intro and option set to brand input.

If brand input was provided, print: Brand input applied ✓ — {{primary color}}, {{font family}} extracted. Default: c.

OptionLabelBehaviorCost
aFull designSee 3 browser styles, pick one, then get component reference; brand tints all options.~3 min, ~25k tokens
bSpec + referencePick a style in chat, write full design spec, see component reference sheet.~1 min, ~8k tokens
cBrand previewApply brand to List + Form + Detail mockups; skip style picker and component sheets.~30 sec, ~2k tokens
dSkip everythingUse palette with industry defaults; no previews.<5 sec, ~0 tokens

If NO brand input, print: No brand input — defaulting to polished-inspection (white surface + Power-Platform green accent + status-stripe cards + soft-tinted pills; source: references/vibe/direction-polished-inspection.md). Default: c.

OptionLabelBehaviorCost
aFull designSee 3 browser styles, pick one, then get component reference; biggest visual quality gain.~3 min, ~30k tokens
bSpec + referencePick a style in chat, write full design spec, see component reference sheet.~1 min, ~12k tokens
cApply defaultsApply polished-inspection tokens and open a 3-screen preview. MVP-friendly zero-click default.~30 sec, ~3k tokens

Default rationale: (c) is the MVP-first-run default — Enter through every prompt and the app comes out styled with the polished-inspection direction (which fits ~70% of mobile-app traffic — inspection / field-ops / asset-tracking apps that demo to enterprise stakeholders). Users who want to compare 3 styles side-by-side opt INTO (a) explicitly. This trades "highest possible design quality on first run" (path a) for "zero clicks to a styled MVP" (path c) — the right tradeoff at MVP because the user can always re-run /design-system to upgrade later.

Outdoor-only opt-in: for true field-utility apps (full sun, full shift, gloves), pass --direction inspection to use the dark slate + safety-orange preset instead. The MVP default is light + green because that demos better and remains usable; the outdoor-dark preset is a deliberate opt-in.

Note: Option (c) "Brand preview" only appears when brand input was provided (there's nothing to preview without brand tokens).

Keep visual_companion: <yes|no|skip> pending; persist it to memory-bank.md only after the applicable approval.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 1 Oct 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
947
Repository forks
190
7-day trend score
34

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/power-platform-skills/design-system/badge)](https://verified-skill.com/skills/microsoft/power-platform-skills/design-system)

Something wrong with this skill or its page? Tell us.