Back to skills
SKILL.md
Xcloom Ui Qa
ASecurityRuns deterministic iOS, iPadOS, and iPhone Duo UI QA by pairing XCLoom simulator matrix sweeps, visual/layout diff-ui gates, runtime feel probes, and stateful APFS CoW ux session exploration with agent-driven user-journey testing, visual triage, and dead-tap calibration. Use when auditing a screen or PR for layout regressions, Dark Mode, Dynamic Type AX-XXXL, RTL, iPhone Duo crease occlusion, hitches, flicker, crashes, or broken flows.
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added December 6, 2026
Works with
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add xcloom/xcloom --skill xcloom-ui-qa --agent claude-codeAre you the author of Xcloom Ui Qa?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/xcloom-xcloom-ui-qa)---
name: xcloom-ui-qa
description: "Runs deterministic iOS, iPadOS, and iPhone Duo UI QA by pairing XCLoom simulator matrix sweeps, visual/layout diff-ui gates, runtime feel probes, and stateful APFS CoW ux session exploration with agent-driven user-journey testing, visual triage, and dead-tap calibration. Use when auditing a screen or PR for layout regressions, Dark Mode, Dynamic Type AX-XXXL, RTL, iPhone Duo crease occlusion, hitches, flicker, crashes, or broken flows."
---
# UI, Layout, Feel, and Interactive Flow QA (`xcloom-ui-qa`)
Use XCLoom CLI tools as deterministic eyes, ruler, and hands (`matrix`, `diff-ui`, `feel`, `ux session`, `sim`), while the agent supplies user-journey intent, visual judgment, and regression triage. Use `xcloom ux session` as the primary interactive exploration loop; treat `xcloom ux explore` as the unattended CI smoke-crawl floor.
Run QA in three ordered phases: collect machine-verified visual, layout, feel, and interaction evidence first, load the matching triage references to calibrate findings against source, and emit a severity-ranked report backed by exact screenshots, node/edge IDs, codes, or `file:line` evidence.
## Phase 1: Collect Deterministic UI, Layout, and Runtime Evidence
Gather machine-verified artifacts before judging screens or editing code. Pass `--json` on every command so findings cite concrete codes, paths, and counts.
```sh
# 1. Standalone 4-state, RTL, iPhone Duo, or multi-device layout and screenshot sweep (optional --upload [--build-id <id>] for hosted /a/<id>)
xcloom matrix --app <App.app> --states light,dark,compact,dark-ax-xxxl --out ./matrix-out [--upload [--build-id <id>]] --json
# Add RTL or iPhone Duo coverage as needed (at most 4 states per sweep):
xcloom matrix --app <App.app> --states light,rtl,compact,dark-ax-xxxl --out ./matrix-rtl --json
xcloom matrix --app <App.app> --states duo --device-type iphone-duo --out ./matrix-duo --json
# 2. Visual, layout, feel, and binary-size regression diff vs a base ref or artifact dir (optional --upload [--build-id <id>])
xcloom diff-ui main..HEAD [--baseline-config ./.xcloom-ui-baseline.json] --out-dir ./diff-out --out-md ./ui-diff.md [--upload [--build-id <id>]] --json
xcloom diff-ui --base-dir ./artifacts/base --head-dir ./artifacts/head --out-dir ./diff-out --json
# 3. Primary Agent-driven interactive flow loop (APFS CoW checkpoints + per-step diffs/audits)
xcloom ux session start --session-dir ./ux-session --bundle-id <bundle_id> [--app <App.app>] [--udid <UUID>] [--dsym <App.dSYM>] --json
xcloom ux session checkpoint --session-dir ./ux-session before_branch --json
xcloom ux session step --session-dir ./ux-session tap "id:continue_btn" --json
xcloom ux session step --session-dir ./ux-session type "qa@example.com" --target "id:email_field" --json
xcloom ux session backtrack --session-dir ./ux-session before_branch --json
xcloom ux session stop --session-dir ./ux-session --restore-root --json
xcloom ux report ./ux-session/ux-graph.json --out ./ux-report --repro-pack ./ux-report/run.uxpack.tar.gz --json
xcloom ux verify-pack ./ux-report/run.uxpack.tar.gz --json
# 4. Unattended CI smoke-crawl floor (bounded BFS/DFS over interactive controls)
xcloom ux explore --bundle-id <bundle_id> [--app <App.app>] --out ./ux-explore --strategy bfs \
--max-depth 3 --max-nodes 24 --max-edges 64 --max-seconds 120 --check-variants dark,ax-xxxl,duo-unfolded --json
# 5. Runtime hitch, luminance flicker, and feel telemetry (explicit simulator UUID required for launch-instrumented)
xcloom feel build-probe --out ./libXCLoomFeelProbe.dylib --platform ios-simulator --json
xcloom sim launch-instrumented --udid <UUID> --bundle-id <bundle_id> --dylib ./libXCLoomFeelProbe.dylib \
--env XCLOOM_FEEL_LOG=/tmp/feel.jsonl --terminate-existing --json
xcloom feel inspect-report /tmp/feel.jsonl [--sixty-hz] --json
xcloom feel audit-frames ./frames_dir --fps 120 --json
# 6. Targeted simulator inspection, logs, and symbolicated crash reports
xcloom sim snapshot --udid <UUID> --json
xcloom sim assert --udid <UUID> --exists "label:Continue" --no-crashes --no-error-logs --app <bundle_id> --json
xcloom logs --udid <UUID> --bundle-id <bundle_id> --since 5m --json
xcloom crash latest --bundle-id <bundle_id> --dsym <App.dSYM> --json
# 7. Optional: Canvas layout audit (macOS NSHostingView preview host) or matrix-act (booted iOS Simulator with probe)
xcloom canvas audit --node <node_id> --json
xcloom canvas matrix-act --node <node_id> [--udid <UUID> --bundle-id <bundle_id> | --probe-port <port>] [--op tap --target "@e2"] --out-png ./canvas-matrix.png --json
```
Record exact scope and preserve every unverified signal honestly:
- `xcloom matrix`: exits non-zero (`matrix_layout_errors`) when any cell emits an `error` finding (`VIEWPORT_OVERFLOW`); warnings (`TEXT_TRUNCATION`, `HIG_TAP_TARGET_TOO_SMALL`, `CONTROL_OVERLAPS_TEXT`, `CHILD_BOUNDS_OVERFLOW`) do not fail the exit code. The in-process probe checks `UILabel`s directly and `matrix` supplements `screen` cells with Vision OCR for SwiftUI `Text`/`Control`; still inspect `truncation_unchecked_text_count` per cell because `offscreen` cells or text OCR could not read remain unchecked.
- `xcloom diff-ui`: auto-discovers `.xcloom-ui-baseline.json`, enforces a default `0.5%` changed-pixel failure budget unless overridden or `--no-pixel-budget` is passed, and fails closed on `missing_in_head`.
- `xcloom ux session`: records every step into incremental `ux-graph.json` with tree diff, PNG diff, `DEAD_TAP`, `APP_CRASH`, `OSLOG_ERROR`, and layout findings. `backtrack` exits non-zero (`ux_backtrack_diverged`) if the restored screen diverges. Always stop sessions cleanly so leased simulators are released and shut down.
- `xcloom feel`: preserve `"unavailable"` and `"partial"` `MetricState` entries as unverified rather than passing them. `feel audit-frames` reports `stable_scope: "flicker_only"` and `jitter_state: "unavailable"` on raw PNG sequences.
- Any Phase 1 command not run (for example, no built `.app`, no booted simulator, or no probe capture) MUST be listed as `UNVERIFIED` in the report. Never report an unrun check as passed.
## Phase 2: Triage Visual, Layout, Feel, and Flow Evidence
Load only the reference files needed for the surfaces under test, then inspect the screenshots and matching SwiftUI/UIKit source before raising any issue:
| Reference File | Load When Auditing | Topics Covered |
| --- | --- | --- |
| [references/matrix-and-diff-ui.md](references/matrix-and-diff-ui.md) | Any screen layout check, Dark Mode, Dynamic Type `AX-XXXL`, RTL, `iPhone Duo`, or PR visual diff | `matrix` capture modes and finding codes, `truncation_unchecked_text_count`, `iPhone Duo` crease and letterbox checks, `.xcloom-ui-baseline.json` masks and `diff-ui` verdicts |
| [references/feel-and-ux-session.md](references/feel-and-ux-session.md) | Interactive journeys, dead-tap triage, animations, scrolling, hitches, flicker, crashes, or repro packs | `ux session` vs `ux explore`, dead-tap false-positive calibration, `feel` `MetricState` and budget violations, hitch/flicker source attribution, OSLog/crash symbolication, `repro-flows/*.yaml` |
Inspect the actual PNG artifacts (`composite.png`, `diff-matrix.png`, `ux session` `assets/*.png`, and `ux explore` `nodes/*.png` / `edges/*.png`) alongside the JSON output. Automated geometry checks catch overflow, overlap, and hit-target bounds, while visual inspection catches clipped SwiftUI `Text`, broken contrast in Dark Mode, unflipped directional icons in RTL, and missing states.
## Phase 3: Calibrated Severity Report and Reproducible Verification
Apply these anti-false-positive rules before emitting any finding:
1. Cite direct evidence for every finding: an artifact path (`composite.png`, `assets/n0.png`, `assets/e1_after.png`, `nodes/n3.png`, `edges/e4.png`), node/edge ID, exact machine code (`VIEWPORT_OVERFLOW`, `DEAD_TAP`, `MAIN_THREAD_HITCH`, `DUO_HINGE_CREASE_OCCLUSION`), or source location (`path/to/View.swift:42`). Drop items without direct evidence.
2. Calibrate `DEAD_TAP` and `TEXT_TRUNCATION` before flagging: confirm a dead tap is not a slow async network call exceeding `--settle-ms`, a disabled control, an already-selected tab, or an informational label; confirm ellipsis text is not intentional copy (`Loading...`, `More...`).
3. Verify system exclusions: do not blame private UIKit/keyboard chrome, system standard control bounds (`UISwitch`, `UISlider`, `UIStepper`), or `sim assert --no-truncation` `not_checked` counts on app bugs without inspecting the screenshot.
4. Separate findings into three severities:
- `BLOCKER`: crash (`APP_CRASH`), broken primary flow, confirmed dead CTA (`DEAD_TAP`), horizontal `VIEWPORT_OVERFLOW`, severe unreadable/unusable layout in Dark/`AX-XXXL`/RTL/`iPhone Duo`, or hard `diff-ui` / `feel` budget regression.
- `WARNING`: non-blocking layout defect (`HIG_TAP_TARGET_TOO_SMALL`, `TEXT_TRUNCATION`, `CONTROL_OVERLAPS_TEXT`, `SIBLING_OVERLAP`, `DUO_HINGE_CREASE_OCCLUSION`, `DUO_LETTERBOX_FIXED_WIDTH`), `OSLOG_ERROR`, or elevated hitch/body-eval churn requiring confirmation.
- `INFO`: hygiene note, non-blocking visual delta within tolerance, or `UNVERIFIED` / `unavailable` telemetry gap.
5. Re-verify failing flows with deterministic replay before closing: run generated `repro-flows/*.yaml` via `xcloom e2e run <flow.yaml> --json` (note `ux report` skips tap-only YAML generation for nodes with `has_non_tap_ancestry: true`) and confirm archive integrity with `xcloom ux verify-pack <pack.tar.gz> --json`.
### Report Structure
Output the QA audit in four compact sections:
1. **Evidence Summary**: commands run, app/build/device/runtime tested, `ux-graph.json` or `diff-ui-report.json` verdicts, and explicit `UNVERIFIED` / `unavailable` gaps.
2. **BLOCKER Findings**: `Code / Category | Evidence (artifact, node/edge, file:line) | Mechanism | Concrete Fix`.
3. **WARNING Findings**: same four columns.
4. **INFO, Repro Artifacts, and Next Checks**: paths to `index.html`, `repro-flows/*.yaml`, `.uxpack.tar.gz`, `diff-matrix.png`, and any manual checks still needed (such as physical-device gestures or live backend states).
```text
## UI QA Summary — <App Name> (<Build / Git Ref>, <Device / OS>)
- Matrix: <ok|FAILED|UNVERIFIED> (<states>; composite: <path>; unchecked SwiftUI Text count: <N>)
- diff-ui: <PASS|WARN|FAIL|UNVERIFIED> (max changed: <pct>; new critical layout: <N>; diff-matrix: <path>)
- UX Session / Explore: <PASS|FAIL|UNVERIFIED> (<nodes> nodes, <edges> edges; graph: <path>)
- Feel Probe / Frames: <PASS|FAIL|UNVERIFIED> (unavailable domains: <list>)
### BLOCKER | WARNING
| Code / Category | Evidence | Mechanism | Concrete Fix |
| --- | --- | --- | --- |
| `<CODE>` | `<png / node / edge / File.swift:line>` | `<root cause>` | `<exact change + replay check>` |
```
Files in this skill
- SKILL.md
- references/feel-and-ux-session.md
- references/matrix-and-diff-ui.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.