---
name: mobile-prototype
description: Turn mobile UX, wireframe, UI, and platform contracts into a testable interaction prototype plan, a standalone browser review runner, or an implementation handoff. Use when Codex needs navigation transitions, gestures, motion, feedback, failure injection, runtime test cases, or an executable prototype scope.
title: mobile-prototype
canonical_url: https://skilld.dev/gh/xinvtech/mobile-design-os/mobile-prototype
last_updated: 2026-09-27T12:08:49.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [agents/openai.yaml](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/agents/openai.yaml), [assets/prototype-map-template.md](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/assets/prototype-map-template.md), [assets/prototype-template.json](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/assets/prototype-template.json), [assets/prototype-test-plan-template.md](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/assets/prototype-test-plan-template.md), [references/prototype-rules.md](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/references/prototype-rules.md), [references/prototype-schema.md](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/references/prototype-schema.md), [scripts/render_prototype_html.py](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/scripts/render_prototype_html.py), [scripts/validate_prototype_runner.py](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/scripts/validate_prototype_runner.py), [scripts/validate_prototype.py](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/scripts/validate_prototype.py), [scripts/validate_ui_prototype_alignment.py](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/scripts/validate_ui_prototype_alignment.py).
>
> If the user asked to install this Skill, run `npx skilld install xinvtech/mobile-design-os/mobile-prototype`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/mobile-prototype`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/xinvtech/mobile-design-os/mobile-prototype) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/mobile-prototype`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/mobile-prototype --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/mobile-prototype --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Mobile Prototype

Make the core task observable in motion and runtime. Treat a prototype as a behavior test surface, not as a collection of clickable pictures.

## Choose the prototype target

- **Behavior prototype**: define screens, states, transitions, feedback, interruption, and test cases for a tool such as Figma, ProtoPie, or a native prototype.
- **Browser review runner**: render a self-contained HTML design prototype from `prototype.json`, a UI Design contract, and an optional Design System contract. The default URL is a clean product preview; append `?inspect=1` for state continuity, contract edges, and deterministic failure review before production implementation.
- **Executable spike**: create or hand off a narrow runnable prototype with real text, persistence boundaries, platform surfaces, and deterministic failure hooks.
- **Validation pass**: execute the prototype test matrix and record evidence, limitations, and regressions.

Prefer `mobile-wireframe` before this Skill and `mobile-design-to-code` when the user wants framework code. Preserve upstream Screen, State, Flow, Requirement, Token, and Component IDs.

## Define the runtime contract

1. Select one critical task and one high-risk recovery path.
2. Map each screen/state node to its entry, exit, action, system response, and durable result.
3. Define animation, gesture, haptic, sound, and announcement behavior with a reduced-motion and nonvisual equivalent.
4. Add interruption, background/termination, offline, duplicate submission, permission denial, and destructive recovery where applicable.
5. Define deterministic failure hooks for persistence, network, indexing, permission, and system-surface cases instead of relying on luck.
6. Keep prototype status honest: a plan or static render is not runtime evidence.

Read [references/prototype-rules.md](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/references/prototype-rules.md) and [references/prototype-schema.md](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/references/prototype-schema.md) before creating structured output.

## Produce and validate

Create:

- `prototype-map.md` using [assets/prototype-map-template.md](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/assets/prototype-map-template.md).
- `prototype.json` using [assets/prototype-template.json](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/assets/prototype-template.json).
- `prototype-test-plan.md` using [assets/prototype-test-plan-template.md](https://skilld.dev/api/skills-raw/xinvtech/mobile-design-os/mobile-prototype/assets/prototype-test-plan-template.md).

Run `python3 scripts/validate_prototype.py <path-to-prototype.json>`. Use the resulting `not-tested` records to drive implementation and device QA; do not convert them to `pass` without evidence.

When the prototype follows UI Design, also run `python3 scripts/validate_ui_prototype_alignment.py --ui-design <path-to-ui-design.json> --prototype <path-to-prototype.json>`. This catches missing state nodes, unmapped explicit interactions, and high-risk states without a recovery hook.

For a clickable design-review surface, run the following after the contract checks. The supplied Design System must contain a locked visual direction copied from `ui-design.json`; an unlocked or legacy theme is a hard stop.

```bash
python3 scripts/render_prototype_html.py \
  --ui-design <path-to-ui-design.json> \
  --design-system <path-to-design-system.json> \
  --prototype <path-to-prototype.json> \
  --output <output-dir>/prototype-runner/index.html
python3 scripts/validate_prototype_runner.py \
  --html <output-dir>/prototype-runner/index.html \
  --prototype <path-to-prototype.json>
```

The default runner URL must show only the product preview: no QA header, inspector, evidence badge, or debug phone chrome. The inspector remains available at `?inspect=1`. The renderer must consume the locked visual fingerprint and semantic UI/Design System tokens for surface, text, action, border, typography, spacing, radius, color hierarchy, and module rhythm; do not reintroduce a generic card-stack, pill-button shell, or a legacy Margin theme. The runner must expose the product's primary task, state jump, outgoing contract edges, and deterministic failure switches for applicable persistence/index/permission/destructive paths in inspect mode. Its report remains `runtimeEvidence: not-tested` until browser, accessibility, interruption, and device evidence exists. A browser runner is a UI/prototype artifact, not production Flutter code.

## Enforce the output order

1. Prototype scope and evidence status.
2. Screen/state nodes and transitions.
3. Feedback, motion, gesture, system-surface, and interruption rules.
4. Failure hooks and test matrix.
5. Implementation handoff, evidence, and open risks.

Do not finish with a happy-path click-through that cannot show recovery, state continuity, accessibility pressure, or system behavior.
