Index of every page on this site: llms.txt
All skills
xinvtech avatar

/mobile-prototype

@0672be6
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/xinvtech/mobile-design-os/mobile-prototype

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈82 tokens for metadata: the name and description. ≈1.2k when used: this file. ≈1.3k more on demand in 6 files.

Description uses 4.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈328 characters, or 4.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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 and references/prototype-schema.md before creating structured output.

Produce and validate

Create:

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.

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.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides a structured framework for creating and validating mobile interaction prototypes and review runners. The included scripts perform data validation and generate a self-contained HTML review surface based on user-supplied design contracts.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 0672be6. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 4 months ago

README badge

README badge for xinvtech/mobile-design-os/mobile-prototype